/* Professional SaaS Theme */
:root {
    --primary-color: #0f172a;
    /* Slate 900 */
    --primary-light: #1e293b;
    /* Slate 800 */
    --accent-color: #3b82f6;
    /* Blue 500 */
    --accent-hover: #2563eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --bg-light: #f8fafc;
    --text-dark: #334155;
    --text-muted: #64748b;
    --card-radius: 16px;
    --shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Timeline Components */
.timeline-steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    min-width: 200px;
    /* Ensure stacking on small screens */
    margin-bottom: 2rem;
}

/* Connector Line */
.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    width: 100%;
    height: 3px;
    background-color: #e2e8f0;
    z-index: -1;
    transform: translateX(50%);
    /* Start from center of this step to next */
}

.timeline-point {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-step:hover .timeline-point {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.timeline-content {
    padding: 0 1rem;
}

/* Mobile Responsiveness for Timeline */
@media (max-width: 768px) {
    .timeline-steps {
        flex-direction: column;
        align-items: center;
    }

    .timeline-step {
        width: 100%;
        margin-bottom: 3rem;
    }

    .timeline-step:not(:last-child)::after {
        width: 3px;
        height: 100%;
        top: 50px;
        left: 50%;
        transform: translateX(-50%);
    }
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Nav */
.navbar-brand {
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    position: relative;
    padding-top: 80px;
    /* Space for fixed nav */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    z-index: 1;
}

/* Features */
.icon-box {
    width: 64px;
    height: 64px;
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover) !important;
}

/* Inputs & Form */
.page-section-bg {
    background-color: #f1f5f9;
}

.card {
    box-shadow: var(--shadow-soft);
    border: none;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control,
.form-select {
    border: 1px solid #cbd5e1;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Glassy Result Card */
#resultCard {
    background: linear-gradient(145deg, var(--primary-color), #334155);
    color: white;
}

#totalCostDisplayName {
    letter-spacing: -2px;
}

.x-small {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Admin Dashboard */
#adminDashboardSection {
    position: relative;
    z-index: 1050;
    /* Above nav if open, or just high z-index */
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.5);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.anim-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.anim-slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

.anim-float {
    animation: float 3s ease-in-out infinite;
}

/* Glassmorphism */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border-radius: var(--card-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
}

/* Admin Specifics */
.admin-bg {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    /* Warm gradient */
    min-height: 100vh;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card-modern {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
}

.btn-modern {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-modern:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.form-floating-custom>label {
    color: var(--text-muted);
}

.form-control-glass {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.form-control-glass:focus {
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
    border-color: white;
}

.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Print Styles */
@media print {

    .navbar,
    .hero-section,
    #features,
    #adminDashboardSection,
    footer,
    .btn-warning,
    .accordion-button {
        display: none !important;
    }

    .accordion-collapse {
        display: block !important;
    }

    body,
    .page-section-bg {
        background: white !important;
        padding: 0 !important;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
    }

    #calculator {
        padding-top: 0 !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    #resultCard {
        background: none !important;
        color: black !important;
        border: 2px solid #000 !important;
    }

    #resultCard * {
        color: black !important;
    }

    .badge {
        border: 1px solid #000;
        color: #000 !important;
    }
}