/* Base styles and variables for Light Theme */
:root {
    --bg-color: #f8fafc;
    /* Light gray-blue */
    --text-primary: #0f172a;
    /* Slate 900 */
    --text-secondary: #475569;
    /* Slate 600 */
    --primary-color: #6d28d9;
    /* Deep purple */
    --primary-hover: #5b21b6;
    --secondary-color: #3b82f6;
    /* Blue */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
    --success-color: #10b981;
    --danger-color: #ef4444;
    --border-radius: 16px;
    --transition: all 0.3s ease;
    --font-main: 'Outfit', sans-serif;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image:
        radial-gradient(at 0% 0%, rgba(109, 40, 217, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(59, 130, 246, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(109, 40, 217, 0.05) 0px, transparent 50%);
}

.hidden {
    display: none !important;
}

/* Utilities */
.fw-bold {
    font-weight: 700;
}

.text-primary {
    color: var(--primary-color);
}

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

.text-danger {
    color: var(--danger-color);
}

.text-green {
    color: var(--success-color);
}

/* Background Animated Blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: blobBounce 20s infinite alternate;
}

.blob-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: rgba(109, 40, 217, 0.2);
}

.blob-2 {
    bottom: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.15);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: rgba(236, 72, 153, 0.1);
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes blobBounce {
    0% {
        transform: scale(1) translate(0, 0);
    }

    33% {
        transform: scale(1.1) translate(30px, -50px);
    }

    66% {
        transform: scale(0.9) translate(-20px, 20px);
    }

    100% {
        transform: scale(1) translate(0, 0);
    }
}

/* Typography & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.app-logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #1e293b;
    line-height: 1.1;
}

.app-logo .highlight {
    color: var(--primary-color);
}

.powered-by {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    line-height: 1;
}

.mlvizz-logo {
    height: 20px;
    margin-top: 4px;
    /* Since we are in light theme, the black MLVizz logo will show perfectly. */
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.credits-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(109, 40, 217, 0.1);
    border: 1px solid rgba(109, 40, 217, 0.2);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.credits-badge i {
    color: #fbbf24;
}

.btn-primary,
.btn-secondary,
.btn-google {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 14px 0 rgba(109, 40, 217, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 40, 217, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: #f1f5f9;
}

.btn-google {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-google img {
    height: 18px;
}

.btn-google:hover {
    background: #f8fafc;
}

.full-width {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

/* Avatar & Dropdown */
.avatar {
    position: relative;
}

.avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.avatar img:hover {
    border-color: var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 180px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 200;
}

.dropdown-trigger:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: #f8fafc;
    color: var(--primary-color);
}

.dropdown-menu a.text-danger:hover {
    color: var(--danger-color);
    background: #fef2f2;
}


/* Hero Section */
.hero {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* View Sections */
.view-section {
    width: 100%;
    animation: fadeIn 0.4s ease forwards;
    display: none;
}

.view-section.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Converter Card */
.converter-card {
    width: 100%;
    max-width: 700px;
    padding: 40px;
    margin-bottom: 80px;
    background: white;
    /* Stronger background for main card */
}

/* Steps Indicator */
.steps-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.step {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.step.active {
    color: var(--primary-color);
}

.step-connector {
    flex: 1;
    height: 2px;
    background: var(--border-color);
    margin: 0 16px;
    position: relative;
}

.step-connector::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0%;
    background: var(--primary-color);
    transition: width 0.5s ease;
}

.step.active~.step-connector::after {
    width: 0%;
}

.step.active+.step-connector::after {
    width: 100%;
}

/* Step Contents */
.step-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(109, 40, 217, 0.02);
}

.upload-zone:hover,
.upload-zone.dragover {
    background: rgba(109, 40, 217, 0.06);
}

.upload-icon {
    font-size: 48px;
    color: var(--secondary-color);
    /* Blue for Informatica */
    margin-bottom: 20px;
}

.upload-zone h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.upload-zone p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.file-hint {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Processing Zone */
.processing-zone {
    text-align: center;
    padding: 60px 20px;
}

.spinner-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

.magic-icon {
    font-size: 32px;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
}

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

.processing-text {
    font-size: 18px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.progress-bar-container {
    width: 80%;
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Success Zone */
.success-zone {
    text-align: center;
    padding: 40px 20px;
}

.success-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-zone h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.success-zone p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.download-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.pbix-icon {
    font-size: 28px;
    color: #ff6b00;
    /* DBT Orange */
}

#final-filename {
    flex: 1;
    font-weight: 600;
    text-align: left;
    color: var(--text-primary);
}

.file-size {
    font-size: 13px;
    color: var(--text-secondary);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Dashboard & Database Mock Views */
.profile-header {
    text-align: left;
    width: 100%;
    max-width: 1000px;
    margin-top: 40px;
    margin-bottom: 30px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 80px;
}

/* Profile Sidebar */
.profile-card {
    background: white;
    padding: 24px;
    text-align: center;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 16px;
    border: 3px solid var(--border-color);
}

.profile-card-header h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.profile-card-header p {
    font-size: 14px;
    margin-bottom: 24px;
}

.profile-card-body {
    text-align: left;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.info-row:last-child {
    margin-bottom: 0;
}

/* Dashboard Main */
.history-panel {
    background: white;
    padding: 24px;
    min-height: 400px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.data-table th {
    font-weight: 600;
    color: var(--text-secondary);
    background: #f8fafc;
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

.badge-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-success {
    background: #d1fae5;
    color: #065f46;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-failed {
    background: #fee2e2;
    color: #991b1b;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    color: var(--border-color);
    margin-bottom: 16px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    width: 90%;
    max-width: 600px;
    padding: 40px;
    background: white;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-sm {
    max-width: 400px;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--text-primary);
}

.modal-title {
    font-size: 28px;
    margin-bottom: 8px;
    text-align: center;
    color: var(--text-primary);
}

.modal-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 24px;
}

/* Form */
.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    background: #f8fafc;
}

.form-group input:focus {
    border-color: var(--primary-color);
    background: white;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 10px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

/* Pricing Cards */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.pricing-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    border-color: var(--secondary-color);
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pricing-card.selected {
    border-color: var(--primary-color);
    background: rgba(109, 40, 217, 0.05);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.pricing-card h4 {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.pricing-card .price {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.pricing-card .credits-amount {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}

.pricing-card .badge {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1000px;
}

.feature-card {
    background: white;
    padding: 32px 24px;
    text-align: center;
    border-radius: 12px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(109, 40, 217, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}


@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}