/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0f0f0f;
    color: #ffffff;
    overflow-x: hidden;
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    height: 100vh;
    background-color: #0f0f0f;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: #1a1a1a;
    border-right: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
}

.user-avatar {
    width: 40px;
    height: 40px;
}

.avatar {
    width: 100%;
    height: 100%;
    background-color: #4a5568;
    border-radius: 50%;
    border: 2px solid #6b7280;
}

/* Search Bar */
.search-bar {
    padding: 20px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
}

.search-bar input::placeholder {
    color: #6b7280;
}

.search-icon {
    position: absolute;
    right: 32px;
    top: 32px;
    color: #6b7280;
    font-size: 16px;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 0 20px;
}

.nav-group {
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item:hover {
    background-color: #2a2a2a;
}

.nav-item.active {
    background-color: #8b5cf6;
    color: #ffffff;
}

.nav-icon {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.nav-item span {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-arrow {
    font-size: 12px;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.dropdown-arrow.rotated {
    transform: rotate(180deg);
}

/* Submenu */
.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-left: 32px;
}

.nav-submenu.active {
    max-height: 200px;
}

.nav-subitem {
    padding: 8px 16px;
    font-size: 13px;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 4px;
}

.nav-subitem:hover {
    background-color: #2a2a2a;
    color: #ffffff;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #2a2a2a;
}

.footer-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    color: #9ca3af;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-item:hover {
    color: #ffffff;
}

.footer-icon {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.app-version {
    font-size: 12px;
    color: #6b7280;
    margin-top: 16px;
    margin-bottom: 16px;
}

/* Import Issues Card */
.import-issues-card {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    margin-top: 16px;
}

.card-close {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}

.card-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.card-description {
    color: #e0e7ff;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.card-button {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.card-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Main Content */
.main-content {
    flex: 1;
    background-color: #0f0f0f;
    overflow-y: auto;
    padding: 20px;
}

/* Content Header */
.content-header {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    gap: 20px;
}

.back-button {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.back-button:hover {
    background-color: #2a2a2a;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-right: auto;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 4px;
}

.toggle-btn {
    padding: 8px 16px;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.toggle-btn.active {
    background-color: #8b5cf6;
    color: #ffffff;
}

/* Date Picker */
.date-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #2a2a2a;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
}

.calendar-icon {
    font-size: 16px;
}

/* Dropdown */
.dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #2a2a2a;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 12px;
    color: #6b7280;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.metric-card {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.metric-card:hover {
    border-color: #3a3a3a;
    transform: translateY(-2px);
}

.metric-label {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 8px;
}

.metric-value {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Chart Section */
.chart-section {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 24px;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #9ca3af;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.red { background-color: #ef4444; }
.legend-dot.blue { background-color: #3b82f6; }
.legend-dot.light-blue { background-color: #06b6d4; }
.legend-dot.green { background-color: #10b981; }
.legend-dot.dark-blue { background-color: #1e40af; }
.legend-dot.purple { background-color: #8b5cf6; }
.legend-dot.pink { background-color: #ec4899; }

/* Chart Container */
.chart-container {
    position: relative;
}

.chart-area {
    display: none; /* hide legacy DOM bars */
}

#mainChart {
    width: 100% !important;
    height: 300px !important;
}

.y-axis {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    height: 100%;
    margin-right: 16px;
    width: 40px;
}

.y-label {
    font-size: 12px;
    color: #6b7280;
    text-align: right;
}

.chart-bars {
    flex: 1;
    display: flex;
    align-items: end;
    gap: 8px;
    height: 100%;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column-reverse;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.chart-bar:hover {
    opacity: 0.8;
}

.bar-segment {
    width: 100%;
    border-radius: 2px;
}

.bar-segment.red { background-color: #ef4444; }
.bar-segment.blue { background-color: #3b82f6; }
.bar-segment.light-blue { background-color: #06b6d4; }
.bar-segment.green { background-color: #10b981; }
.bar-segment.dark-blue { background-color: #1e40af; }
.bar-segment.purple { background-color: #8b5cf6; }
.bar-segment.pink { background-color: #ec4899; }

.x-axis { display: none; }

.x-label {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    flex: 1;
}

/* Chart Tooltip */
.chart-tooltip { display: none !important; }

.tooltip-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.tooltip-date {
    color: #e0e7ff;
    font-size: 12px;
    margin-bottom: 12px;
}

.tooltip-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tooltip-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.tooltip-item.highlight {
    font-weight: 600;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #2a2a2a;
    }
    
    /* Make the drawer menu vertical with inline submenus */
    .sidebar-nav {
        display: block;
        overflow-x: visible;
        padding: 10px 20px 16px;
    }
    
    .nav-group {
        margin-right: 0;
        margin-bottom: 8px;
        min-width: auto;
        position: relative;
    }
    
    .nav-submenu {
        position: static;
        background-color: transparent;
        border-radius: 0;
        box-shadow: none;
        z-index: auto;
        margin-left: 0;
        width: auto;
        padding-left: 8px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-submenu.active {
        max-height: 500px; /* enough room for items */
    }
    
    .main-content {
        padding: 16px;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .header-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .chart-legend {
        flex-direction: column;
        gap: 8px;
    }
    
    .chart-area {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .sidebar-nav {
        flex-direction: column;
        overflow-x: visible;
    }
    
    .nav-group {
        margin-right: 0;
        margin-bottom: 8px;
        min-width: auto;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .metric-card {
        padding: 16px;
    }
    
    .chart-section {
        padding: 16px;
    }
    
    .chart-area {
        height: 200px;
    }
    
    .chart-bars {
        gap: 4px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Animation for smooth transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.metric-card {
    animation: fadeIn 0.3s ease-out;
}

.chart-section {
    animation: fadeIn 0.5s ease-out;
}

/* Focus states for accessibility */
button:focus,
input:focus {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .sidebar {
        border-right-color: #ffffff;
    }
    
    .metric-card {
        border-color: #ffffff;
    }
    
    .chart-section {
        border-color: #ffffff;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 0;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1a1a;
}

.modal-header h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    color: #9ca3af;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 32px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #2a2a2a;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
    position: relative;
}

.tab-btn.active {
    color: #8b5cf6;
    background-color: rgba(139, 92, 246, 0.1);
}

.tab-btn:hover:not(.active) {
    color: #ffffff;
    background-color: #2a2a2a;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Detail Metrics */
.detail-metrics {
    display: grid;
    gap: 20px;
}

.detail-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #2a2a2a;
    border-radius: 12px;
    border: 1px solid #3a3a3a;
}

.metric-name {
    color: #9ca3af;
    font-size: 14px;
}

.metric-value {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
}

.metric-change {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.metric-change.positive {
    color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
}

.metric-change.negative {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

/* Chart Containers */
.breakdown-chart,
.trends-chart {
    padding: 20px;
    background-color: #2a2a2a;
    border-radius: 12px;
    border: 1px solid #3a3a3a;
}

/* Filter Modal */
.filter-section {
    margin-bottom: 32px;
}

.filter-section h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.filter-row label {
    color: #9ca3af;
    font-size: 14px;
    min-width: 60px;
}

.filter-row input[type="date"] {
    padding: 8px 12px;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
}

.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 14px;
    cursor: pointer;
}

.filter-checkboxes input[type="checkbox"] {
    accent-color: #8b5cf6;
}

#customerSegment {
    padding: 8px 12px;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    width: 100%;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #2a2a2a;
}

/* Calendar Modal */
.calendar-modal {
    max-width: 400px;
}

.calendar-container {
    text-align: center;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.calendar-header h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.calendar-nav {
    background: none;
    border: none;
    color: #8b5cf6;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.calendar-nav:hover {
    background-color: rgba(139, 92, 246, 0.1);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 24px;
}

.calendar-day-header {
    padding: 8px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.calendar-day {
    padding: 12px 8px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-align: center;
}

.calendar-day:hover {
    background-color: #2a2a2a;
}

.calendar-day.selected {
    background-color: #8b5cf6;
    color: #ffffff;
}

.calendar-day.empty {
    color: transparent;
    cursor: default;
}

.calendar-day.empty:hover {
    background-color: transparent;
}

.calendar-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Mobile Responsive Modals */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 20px;
    }
    
    .modal-header {
        padding: 20px 24px;
    }
    
    .modal-body {
        padding: 24px;
    }
    
    .modal-tabs {
        flex-wrap: wrap;
    }
    
    .detail-metrics {
        gap: 16px;
    }
    
    .detail-metric {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        text-align: left;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .filter-row label {
        min-width: auto;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .calendar-grid {
        gap: 2px;
    }
    
    .calendar-day {
        padding: 8px 4px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .detail-metric {
        padding: 16px;
    }
    
    .metric-value {
        font-size: 1.2rem;
    }
    
    .calendar-day {
        padding: 6px 2px;
        font-size: 11px;
    }
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1500;
    background-color: #8b5cf6;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.mobile-nav-toggle:hover {
    background-color: #7c3aed;
    transform: scale(1.05);
}

.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    cursor: pointer;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.3s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

.hamburger.active span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.active span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Mobile Menu States */
body.mobile-menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .sidebar.mobile-hidden {
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
        padding-left: 20px;
        padding-top: 70px;
        transition: padding-left 0.3s ease;
    }
    
    .content-header {
        margin-bottom: 20px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .metric-card {
        padding: 16px;
    }
    
    .chart-section {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .mobile-nav-toggle {
        top: 15px;
        left: 15px;
        padding: 10px;
    }
    
    .hamburger {
        width: 20px;
        height: 15px;
    }
    
    .hamburger span:nth-child(2) {
        top: 7px;
    }
    
    .hamburger span:nth-child(3) {
        top: 14px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .header-controls {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .toggle-switch {
        width: 100%;
        justify-content: center;
    }
    
    .date-picker,
    .dropdown {
        width: 100%;
        justify-content: center;
    }
}

/* Enhanced Chart Interactions */
.chart-bar {
    position: relative;
}

.chart-bar:hover::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #8b5cf6;
    border-radius: 4px;
    pointer-events: none;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #8b5cf6;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Tooltip */
.chart-tooltip {
    font-family: 'Inter', sans-serif;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Button Enhancements */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .modal {
        animation: none;
    }
    
    .modal-content {
        animation: none;
    }
    
    .tab-content.active {
        animation: none;
    }
}