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

:root {
    --bg-dark: #f8fafc; /* Light Slate Background */
    --text-primary: #0f172a; /* Dark Slate Text */
    --text-secondary: #475569; /* Slate 600 */
    --text-muted: #94a3b8; /* Slate 400 */
    --border-color: rgba(15, 23, 42, 0.08);
    
    --primary: #059669; /* Emerald Green */
    --primary-glow: rgba(5, 150, 105, 0.08);
    
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Ambient Background Lights - Ultra soft for light theme */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    z-index: -2;
    pointer-events: none;
    filter: blur(150px);
    opacity: 0.04;
}
.bg-glow-1 {
    top: -150px;
    left: -150px;
    background: var(--primary);
    animation: floatGlow1 20s infinite alternate ease-in-out;
}
.bg-glow-2 {
    bottom: -150px;
    right: -150px;
    background: #3b82f6; /* Soft Blue */
    animation: floatGlow2 20s infinite alternate ease-in-out;
}

@keyframes floatGlow1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 50px) scale(1.1); }
}
@keyframes floatGlow2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-80px, -50px) scale(1.1); }
}

/* Header style */
.header {
    background: transparent;
    border-bottom: none;
    padding: 3rem 0 1.5rem;
}
.title {
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #0f172a 40%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Form and Sections */
.form-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
    transition: var(--transition-smooth);
}
.form-section:hover {
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
}

h2.text-primary {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    border-left: 3px solid var(--primary);
    padding-left: 0.75rem;
    margin-bottom: 1.5rem !important;
}

/* Form Controls */
.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}
.form-control {
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    transition: var(--transition-smooth);
}
.form-control:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
    color: var(--text-primary);
}
.form-text {
    font-size: 0.75rem;
    color: var(--text-secondary) !important;
    opacity: 0.8;
    margin-top: 0.3rem;
}

/* Custom Input Groups */
.input-group {
    border-radius: 10px;
    overflow: hidden;
}
.input-group-text {
    background-color: #f1f5f9;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-right: none;
    color: var(--text-secondary);
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
}
.input-group .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Dashboard Side Card */
.dashboard-card {
    position: sticky;
    top: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(248, 250, 252, 0.85) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.05);
    transition: var(--transition-smooth);
}
.dashboard-card:hover {
    border-color: rgba(5, 150, 105, 0.15);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
}

.cost-display-container {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}
.cost-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}
.cost-val {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(5, 150, 105, 0.05);
    font-family: 'Roboto Mono', monospace;
    transition: var(--transition-smooth);
}

/* Breakdown styles */
.breakdown-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}
.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 1.5rem;
}
.breakdown-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.breakdown-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
}
.breakdown-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}
.breakdown-val {
    color: var(--text-secondary);
}
.progress-thin {
    height: 5px;
    background-color: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}
.progress-bar-glow {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stat Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    padding-top: 1.5rem;
}
.stat-box {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 12px;
    padding: 0.85rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.01);
}
.stat-box small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.15rem;
}
.stat-box span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Roboto Mono', monospace;
}

/* Save Button */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    transition: var(--transition-smooth);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #047857 !important;
    border-color: #047857 !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px var(--primary-glow) !important;
    transform: translateY(-1px);
}

/* Scroll adjustments */
@media (min-width: 992px) {
    main.container {
        padding-bottom: 3rem;
    }
}
@media (max-width: 991.98px) {
    .dashboard-card {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        z-index: 1000;
        border-radius: 20px 20px 0 0;
        padding: 1.25rem 1.5rem;
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid rgba(5, 150, 105, 0.15);
        box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.05);
    }
    .cost-display-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: none;
    }
    .cost-label {
        margin-bottom: 0;
    }
    .cost-val {
        font-size: 2.2rem;
    }
    .breakdown-title, .breakdown-list, .stats-grid {
        display: none;
    }
    main.container {
        padding-bottom: 120px !important;
    }
}
