/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --primary-600: #6366f1;
    --primary-700: #4f46e5;
    --primary-800: #4338ca;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);

    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;

    /* Accent Colors */
    --purple-500: #8b5cf6;
    --purple-600: #7c3aed;
    --blue-500: #3b82f6;
    --green-500: #10b981;
    --yellow-500: #f59e0b;

    /* Semantic Colors */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--gray-900);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== SCREEN MANAGEMENT ===== */
.screen {
    display: none;
    min-height: 100vh;
    animation: fadeIn var(--transition-base);
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== AUTH SCREEN ===== */
.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background: white;
}

.auth-left {
    background: var(--primary-gradient);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-20px, 20px) rotate(5deg);
    }
}

.auth-branding {
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.logo {
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.auth-branding h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.tagline {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 400;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
}

.feature-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature-item p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

.auth-right {
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
}

.auth-form-container {
    width: 100%;
    max-width: 440px;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: white;
    padding: 6px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.auth-tab {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.auth-tab.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.auth-form {
    display: none;
    background: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.auth-form.active {
    display: block;
    animation: slideUp var(--transition-base);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.form-subtitle {
    color: var(--gray-600);
    margin-bottom: 32px;
    font-size: 15px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    transition: all var(--transition-base);
    background: var(--gray-50);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-600);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn svg {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-danger {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.btn-danger:hover {
    background: #fecaca;
    color: #b91c1c;
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-700);
}

.btn-ghost:hover {
    background: var(--gray-100);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
}

/* ===== NAVBAR ===== */
.navbar {
    background: white;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-small {
    width: 32px;
    height: 32px;
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}

.breadcrumb {
    color: var(--gray-600);
    font-size: 14px;
}

.user-email {
    color: var(--gray-600);
    font-size: 14px;
}

/* ===== DASHBOARD SCREEN ===== */
#dashboard-screen {
    background: var(--gray-50);
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 32px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 60px;
}

.dashboard-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.dashboard-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

.path-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.path-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.path-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-600);
}

.path-card-icon {
    font-size: 64px;
    margin-bottom: 24px;
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.path-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.path-card p {
    color: var(--gray-600);
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.6;
}

.path-features {
    list-style: none;
    margin-bottom: 32px;
}

.path-features li {
    padding: 12px 0;
    color: var(--gray-700);
    font-size: 15px;
    position: relative;
    padding-left: 28px;
}

.path-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green-500);
    font-weight: 700;
    font-size: 18px;
}

/* ===== FORM SELECTION SCREEN ===== */
#form-screen {
    background: var(--gray-50);
}

.form-selection-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 32px;
}

.form-selection-header {
    text-align: center;
    margin-bottom: 60px;
}

.form-selection-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.form-selection-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

.form-options {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.form-option-card {
    background: white;
    padding: 48px 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.form-option-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.form-option-icon {
    font-size: 72px;
    margin-bottom: 24px;
}

.form-option-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.form-option-card p {
    color: var(--gray-600);
    margin-bottom: 32px;
    font-size: 15px;
}

.divider-or {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.divider-or span {
    background: var(--gray-50);
    padding: 12px 20px;
    border-radius: 50%;
    border: 3px solid white;
    font-weight: 700;
    color: var(--gray-500);
    box-shadow: var(--shadow-md);
}

.continue-section {
    text-align: center;
}

/* ===== AI TOOLS SCREEN ===== */
#ai-tools-screen {
    background: var(--gray-50);
}

.ai-tools-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    height: calc(100vh - 64px);
    overflow: hidden;
}

.ai-tools-sidebar {
    background: white;
    padding: 32px 24px;
    border-right: 1px solid var(--gray-200);
}

.ai-tools-sidebar h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.tool-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-item {
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--gray-50);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.tool-item:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.tool-item.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.ai-tools-main {
    padding: 24px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    height: calc(100vh - 64px);
}

.tool-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.tool-header p {
    font-size: 16px;
    color: var(--gray-600);
}

.tool-content {
    background: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.empty-state {
    text-align: center;
    padding: 80px 40px;
}

.empty-state svg {
    margin-bottom: 24px;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.empty-state p {
    color: var(--gray-500);
    font-size: 16px;
}

.input-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.input-group input,
.input-group textarea,
.input-group select {
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    transition: all var(--transition-base);
    background: var(--gray-50);
}

.input-group textarea {
    min-height: 100px;
    resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-600);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-group small {
    color: var(--gray-500);
    font-size: 13px;
}

.output-panel {
    background: white;
    padding: 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    margin-top: 0;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.output-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}

.output-content {
    background: transparent;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-800);
}

.output-placeholder {
    color: var(--gray-400);
    text-align: center;
    padding: 40px 20px;
}

.output-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.output-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.output-item h4 {
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: 8px;
    font-size: 16px;
}

.output-item p {
    color: var(--gray-700);
    line-height: 1.6;
}

/* Sectioned Output Cards */
.output-section-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    transition: all var(--transition-base);
}

.output-section-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-300);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.section-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
}

.section-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-700);
}

.copy-section-btn {
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.copy-section-btn:hover {
    background: var(--primary-50);
    color: var(--primary-600);
    border-color: var(--primary-200);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary-600);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-left {
        display: none;
    }

    .path-cards {
        grid-template-columns: 1fr;
    }

    .ai-tools-container {
        grid-template-columns: 1fr;
    }

    .ai-tools-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
}

@media (max-width: 768px) {
    .form-options {
        grid-template-columns: 1fr;
    }

    .divider-or {
        display: none;
    }

    .dashboard-header h1 {
        font-size: 36px;
    }

    .auth-form h2 {
        font-size: 28px;
    }
}