:root {
    --primary-color: #4a6bff;
    --secondary-color: #6c5ce7;
    --accent-color: #00cec9;
    --background-color: #f8f9fa;
    --card-color: #ffffff;
    --text-color: #2d3436;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 600;
}

.controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    background-color: var(--card-color);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.control-group {
    margin-bottom: 1rem;
}

.control-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.control-group input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    outline: none;
    margin-bottom: 0.5rem;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.control-group span {
    display: inline-block;
    font-weight: 600;
    color: var(--secondary-color);
}

.chart-container {
    background-color: var(--card-color);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    position: relative;
    height: 400px;
}

.timeline-container {
    background-color: var(--card-color);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.timeline-container input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    outline: none;
}

.timeline-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .controls {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 1rem;
    }
}


/* Pie chart specific styles */
.chart-switch {
    text-align: center;
    margin-bottom: 1.5rem;
}

.chart-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.chart-switch a:hover {
    text-decoration: underline;
}

.summary {
    background-color: var(--card-color);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.summary h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-item {
    padding: 0.75rem;
    border-radius: 8px;
    background-color: rgba(74, 107, 255, 0.05);
}

.summary-item.total {
    background-color: rgba(0, 206, 201, 0.1);
    grid-column: 1 / -1;
    text-align: center;
    padding: 1rem;
}

.summary-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.summary-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.summary-item.total .summary-value {
    font-size: 1.3rem;
    color: var(--accent-color);
}

/* Modern Navbar Styles */
/* Modern Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4a6bff 0%, #6c5ce7 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: white;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        position: relative;
    }
    
    .navbar-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #4a6bff 0%, #6c5ce7 100%);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-links.active {
        max-height: 300px;
        padding: 1rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 2rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: none;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .navbar-toggle.active {
        transform: rotate(90deg);
    }
}

/* Report Button Styles */
.report-btn {
    background: linear-gradient(135deg, #4a6bff 0%, #6c5ce7 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    margin-right: 1rem;
}

.report-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.report-btn i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .report-btn {
        margin: 0.5rem 0;
        width: 100%;
        justify-content: center;
    }
}


.currency-selector {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
  }
  
  .radio-inputs {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    border-radius: 0.5rem;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0.25rem;
    width: fit-content;
    font-size: 14px;
  }
  
  .radio-inputs .radio {
    flex: 1 1 auto;
    text-align: center;
    position: relative;
    z-index: 2;
  }
  
  .radio-inputs .radio input {
    display: none; /* Hide the actual radio buttons */
  }
  
  .radio-inputs .radio .name {
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: none;
    padding: 0.5rem 1rem;
    color: #666;
    transition: all 0.15s ease-in-out;
  }
  
  .radio-inputs .radio input:checked + .name {
    color: #4a6bff;
    font-weight: 500;
  }
  
  .radio-inputs .selection {
    display: block;
    position: absolute;
    z-index: 1;
    border-radius: 0.5rem;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: calc(100% - 0.5rem);
    top: 0.25rem;
  }
  
  /* Animate selection indicator */
  .radio-inputs .radio:nth-child(1) input:checked ~ .selection {
    transform: translateX(0);
    width: calc(33.333% - 0.5rem);
    margin-left: 0.25rem;
  }
  
  .radio-inputs .radio:nth-child(2) input:checked ~ .selection {
    transform: translateX(100%);
    width: calc(33.333% - 0.5rem);
    margin-left: 0.25rem;
  }
  
  .radio-inputs .radio:nth-child(3) input:checked ~ .selection {
    transform: translateX(200%);
    width: calc(33.333% - 0.5rem);
    margin-left: 0.25rem;
  }

  /* Add these to your existing CSS */
.radio-inputs {
    --highlight-color: #4a6bff;
    --text-color: #444;
    --transition-speed: 0.3s;
  }
  
  .radio-inputs .name {
    transition: 
      color var(--transition-speed) ease,
      transform 0.1s ease;
  }
  
  .radio-inputs .name:hover {
    color: var(--highlight-color);
    transform: translateY(-2px);
  }
  
  .radio-inputs .selection {
    box-shadow: 
      0 2px 8px rgba(0, 0, 0, 0.1),
      0 0 0 1px rgba(74, 107, 255, 0.1);
  }