/* Base styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #2d3748;
}

::-webkit-scrollbar-thumb {
    background: #4c51bf;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #667eea;
}
/* Enhanced chart styling */
.chart-container {
    position: relative;
    height: 100%;
    width: 100%;
    min-height: 250px;
}

/* Impact metrics cards */
.impact-card {
    transition: all 0.3s ease;
    border-left: 4px solid #4c51bf;
}

.impact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.impact-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sidebar enhancements */
.sidebar-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #374151;
}

.sidebar-section:last-child {
    border-bottom: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .grid-cols-1 {
        grid-template-columns: 1fr;
    }
    
    .lg\:col-span-3 {
        grid-column: span 1;
    }
    
    .lg\:col-span-9 {
        grid-column: span 1;
    }
}
/* Table row hover effect */
tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: #2d3748;
}

/* Custom toggle switch */
.toggle-checkbox:checked {
    right: 0;
    border-color: #4c51bf;
}

.toggle-checkbox:checked + .toggle-label {
    background-color: #4c51bf;
}
/* File upload styles */
.file-upload-label {
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.file-upload-label:active {
    transform: translateY(0);
}

/* Input focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 81, 191, 0.5);
}

/* Animation for cards */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-animation {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Responsive table */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Button hover effects */
.button-hover-effect {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-hover-effect:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}