/* style.css */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --accent: #f59e0b;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --border: #475569;
    --success: #22c55e;
    --error: #ef4444;
  }
  
  body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1e1b4b 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 1rem;
    overflow-x: hidden;
    padding-bottom: 4rem;
    transition: opacity 0.5s ease;
  }
  
  .container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    min-height: calc(100vh - 2rem);
  }
  
  .header {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
  }
  
  @keyframes glow {
    from { filter: drop-shadow(0 0 5px rgba(99,102,241,0.3)); }
    to { filter: drop-shadow(0 0 20px rgba(99,102,241,0.6)); }
  }
  
  .header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
  }
  
  .form-section,
  .output-section {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
  }
  
  .form-section { animation: slideInLeft 0.8s ease-out; }
  .output-section { animation: slideInRight 0.8s ease-out; display: flex; flex-direction: column; }
  
  @keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
  }
  
  @keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
  }
  
  .form-group { margin-bottom: 1.5rem; }
  
  label { font-weight: 600; margin-bottom: 0.5rem; display: block; color: var(--text-primary); font-size: 0.95rem; }
  
  .input-wrapper input,
  .input-wrapper select,
  .static-config input,
  .static-config select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
  }
  
  input:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
  }
  
  input::placeholder { color: var(--text-secondary); }
  
  .toggle-section { max-height: 0; overflow: hidden; transition: all 0.5s ease; opacity: 0; }
  .toggle-section.show { max-height: 1000px; opacity: 1; margin-top: 1rem; }
  
  .static-config {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1rem;
  }
  
  .generate-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
  }
  
  .generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
  }
  
  .generate-btn:active { transform: translateY(0); }
  
  .generate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
  }
  
  .generate-btn:hover::before { left: 100%; }
  
  .output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
  }
  
  .copy-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
  }
  
  .output-textarea {
    flex: 1;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    color: var(--text-primary);
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    resize: none;
    outline: none;
  }
  
  .output-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  }
  
  .notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--success);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
  }
  
  .notification.show { transform: translateX(0); }
  
  .loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  .floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
  }
  
  .shape {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
  }
  
  .shape1 { top: 20%; left: 10%; width: 100px; height: 100px; background: linear-gradient(45deg, var(--primary), var(--accent)); border-radius: 50%; animation-delay: 0s; }
  .shape2 { top: 60%; right: 10%; width: 80px; height: 80px; background: linear-gradient(45deg, var(--secondary), var(--primary)); border-radius: 20px; animation-delay: 2s; }
  .shape3 { bottom: 20%; left: 20%; width: 60px; height: 60px; background: linear-gradient(45deg, var(--accent), var(--secondary)); border-radius: 50%; animation-delay: 4s; }
  
  @keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
  }
  
  footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    z-index: 100;
  }
  
  footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
  }
  
  footer a:hover {
    border-bottom-color: var(--primary);
    color: var(--accent);
  }
  
  @keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
  }