@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0067a2;
    --primary-dark: #004d7a;
    --primary-light: #e3f2fd;
    --accent: #7c3aed;
    --success: #10b981;
    --danger: #dc2626;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 88px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header {
    background: linear-gradient(135deg, #0067a2 0%, #004d7a 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-md);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    min-height: var(--header-height);
    padding: 0 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
}

.header-logo {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    z-index: 2;
}

.logo-image {
    height: 55px;
    width: auto;
    filter: brightness(1.1);
    transition: var(--transition);
}

.logo-image:hover {
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
}

.header-title {
    width: 100%;
    text-align: center;
    color: #ffffff;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.4px;
    line-height: 1.2;
    margin: 0;
    padding: 0 120px;
}

.page-wrapper {
    flex: 1;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
    width: 100%;
}

.hero-subtitle {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-subtitle p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.form-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-xl);
padding: 1.5rem;
box-shadow: var(--shadow-xl);
max-width: 1000px;
margin: 0 auto;
}

.section-heading {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-heading svg {
    width: 20px;
    height: 20px;
}

.section-blue {
    color: var(--primary);
}

.section-purple {
    color: #7c3aed;
}

.section-green {
    color: #059669;
}

.field-label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.45rem;
}

.field-input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.field-input::placeholder {
    color: #94a3b8;
}

.field-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 103, 162, 0.10);
}

.field-input.input-purple:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.10);
}

.field-input.input-green:focus {
    border-color: #059669;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.10);
}

.error-msg {
    color: var(--danger);
    font-size: 0.75rem;
    margin-top: 0.35rem;
}

.generate-btn {
    width: 100%;
    padding: 0.95rem 1.5rem;
    margin-top: 0.5rem;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.generate-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.status-box {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 0.92rem;
    font-weight: 600;
}

.status-loading {
    color: var(--text-secondary);
}

.status-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.status-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

footer {
    background: white;
    border-top: 1px solid var(--border);
    padding: 1.5rem 1.25rem;
    margin-top: auto;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.02);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-content img {
    height: 70px;
    width: auto;
}

.hidden {
    display: none !important;
}

.spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid #bfdbfe;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .header-title {
        font-size: 1.45rem;
        padding: 0 90px;
    }

    .logo-image {
        height: 48px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem 2rem;
    }

    .form-card {
        padding: 1.25rem;
    }

    .header-content {
        min-height: auto;
        padding: 1rem;
        flex-direction: column;
        justify-content: center;
        gap: 0.75rem;
    }

    .header-logo {
        position: static;
        transform: none;
    }

    .header-title {
        padding: 0;
        font-size: 1.35rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-content img {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1.15rem;
    }

    .hero-subtitle p {
        font-size: 0.92rem;
    }

    .logo-image {
        height: 40px;
    }

    .footer-content img {
        height: 52px;
    }
}