/* Custom Styles for RupeeLens - Gold Finance Theme */

:root {
    /* Primary Teal/Green Palette */
    --primary-color: #1e5854;
    --primary-dark: #143d3a;
    --primary-light: #2a7871;
    
    /* Accent Colors */
    --accent-peach: #f4a261;
    --accent-gold: #d4a574;
    --accent-cream: #fef6e9;
    
    /* Semantic Colors */
    --success-color: #2a9d8f;
    --warning-color: #f4a261;
    --danger-color: #e76f51;
    --info-color: #4a9aa5;
    
    /* Neutral Colors */
    --bg-light: #f5f7f7;
    --bg-card: #ffffff;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --border-color: #dfe6e9;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(30, 88, 84, 0.08);
    --shadow-md: 0 4px 16px rgba(30, 88, 84, 0.12);
    --shadow-lg: 0 8px 24px rgba(30, 88, 84, 0.16);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, rgba(254, 246, 233, 0.6) 0%, rgba(245, 247, 247, 0.9) 100%),
                url('../assets/gold-background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    line-height: 1.6;
}

/* Subtle pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(244, 162, 97, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 88, 84, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(212, 165, 116, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

.container {
    flex: 1;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Header Color Variants */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-success {
    background-color: var(--success-color) !important;
}

.bg-info {
    background-color: var(--info-color) !important;
}

.bg-warning {
    background-color: var(--warning-color) !important;
}

.bg-danger {
    background-color: var(--danger-color) !important;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #d35f43;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* Form Controls */
.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 88, 84, 0.1);
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.25rem;
    animation: slideDown 0.3s ease-out;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.alert-info {
    background: linear-gradient(135deg, rgba(232, 245, 247, 0.95) 0%, rgba(232, 245, 247, 0.98) 100%);
    color: #0c5460;
    border-left: 4px solid var(--info-color);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(255, 229, 225, 0.95) 0%, rgba(255, 229, 225, 0.98) 100%);
    color: #9b3729;
    border-left: 4px solid var(--danger-color);
}

/* Tables */
.table {
    color: var(--text-primary);
}

.table thead th {
    background-color: var(--bg-light);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    padding: 1rem 0.75rem;
}

.table tbody td {
    padding: 1rem 0.75rem;
    border-color: var(--border-color);
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(30, 88, 84, 0.04);
    cursor: pointer;
}

.table-bordered {
    border-color: var(--border-color);
}

.table-light {
    background-color: var(--bg-light);
}

/* Summary Cards */
.row.text-center h6 {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.row.text-center h4, .row.text-center h3 {
    color: var(--text-primary);
    font-weight: 700;
    margin: 0;
}

/* Premium Impact Styling */
#eli5Section {rgba(254, 246, 233, 0.95) 0%, rgba(255, 248, 232, 0.98) 100%);
    backdrop-filter: blur(10px
    background: linear-gradient(135deg, var(--accent-cream) 0%, #fff8e8 100%);
    border-radius: 12px;
    border-left-width: 5px !important;
    box-shadow: var(--shadow-sm);
}

.card.bg-light {
    background: var(--bg-light) !important;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.card.bg-light .card-body {
    padding: 1.5rem 1rem;
}

.card.bg-light h6 {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card.bg-light h3 {
    font-weight: 700;
    margin: 0.5rem 0;
}

/* Text Colors */
.text-positive {
    color: var(--success-color);
    font-weight: 700;
}

.text-negative {
    color: var(--danger-color);
    font-weight: 700;
}

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

.chart-container {
    position: relative;
    height: 400px;
    margin-top: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1rem;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Navigation */
.navbar {
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(5px);
    background: url('../assets/gold-background.png') center/cover !important;
    position: relative;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 88, 84, 0.75) 0%, rgba(20, 61, 58, 0.80) 100%);
    pointer-events: none;
    z-index: 0;
}

.navbar > * {
    position: relative;
    z-index: 2;
}

.navbar .container {
    position: relative;
    z-index: 2;
}

.navbar-text {
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.navbar-brand {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.form-select-sm {
    border-radius: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.form-select-sm:focus {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-select-sm option {
    background-color: var(--primary-color);
    color: white;
    text-shadow: none;
}

/* Typography Enhancements */
h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.3px;
}

h3 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Icon Enhancements */
.bi {
    vertical-align: middle;
}

/* Hero Section */
.hero-section {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(254, 246, 233, 0.80) 100%),
        url('../assets/gold-background.png') center/cover;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(212, 165, 116, 0.4);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 20%, rgba(212, 165, 116, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(244, 162, 97, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-section .card-body {
    position:2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -1px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8)-1px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-features {
    max-width: 900px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    background: rgba(245, 247, 247, 0.5);
    border-radius: 12px;
}

.feature-item {
    padding: 0.5rem;
}

.feature-item i {
    font-size: 1.5rem;
    vertical-align: middle;
}

.feature-item strong {
    font-size: 1rem;
    color: var(--text-primary);
}

/* Rbody {
        background-attachment: scroll;
    }
    
    esponsive adjustments */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
    
    .chart-container {
        height: 300px;
        padding: 0.5rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .row.text-center h4 {
        font-size: 1.25rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-features {
        padding: 1rem;
    }
    
    .feature-item {
        text-align: center;
        margin-bottom: 1rem;
    }
}

/* Footer styling */
footer {
    margin-top: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 50%);
    backdrop-filter: blur(10px
    padding: 1.5rem 0;
    background-color: var(--bg-card);
    border-top: 2px solid var(--border-color);
}

/* Projection Chart Styling */
.projections-chart-wrapper {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* Badge Styling */
.badge {
    border-radius: 6px;
    padding: 0.5em 0.75em;
    font-weight: 600;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
a:focus, button:focus, input:focus, select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar, footer, .btn, #purchaseForm {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

