/* style.css */
/* Base Styles */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #10b981;
    --secondary-dark: #0d9488;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f1f5f9;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dark body {
    background-color: #0f172a;
    color: #f8fafc;
}

/* Auth Modal */
#auth-modal {
    z-index: 100;
}

.auth-tab {
    transition: all 0.2s ease;
}

.auth-form input {
    transition: all 0.2s ease;
}

/* Sidebar */
.sidebar {
    transition: all 0.3s ease;
    z-index: 40;
}

.dark .sidebar {
    background-color: #1e293b;
    border-color: #334155;
}

/* Cards */
.card {
    transition: all 0.3s ease;
    background-color: white;
    border-radius: 0.75rem;
}

.dark .card {
    background-color: #1e293b;
    border-color: #334155;
}

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

/* Progress Bars */
.progress-bar {
    height: 0.375rem;
    border-radius: 0.25rem;
    overflow: hidden;
}

.progress-bar div {
    transition: width 0.3s ease;
}

/* Tab Content */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Data Tables */
.data-table {
    max-height: 24rem;
    overflow-y: auto;
}

.data-table table {
    min-width: 100%;
}

.data-table th {
    position: sticky;
    top: 0;
    background-color: #f8fafc;
    z-index: 10;
}

.dark .data-table th {
    background-color: #1e293b;
}

/* Charts */
.chart-container {
    position: relative;
    height: 18rem;
}

/* Forms */
.dark input,
.dark select,
.dark textarea {
    background-color: #334155;
    border-color: #475569;
    color: #f8fafc;
}

.dark input:focus,
.dark select:focus,
.dark textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 1px #6366f1;
}

/* Profile Image */
.profile-img-container {
    transition: all 0.3s ease;
}

.profile-img-container:hover {
    transform: scale(1.05);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Buttons */
.btn {
    transition: all 0.2s ease;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(0.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Notifications */
.notification {
    animation: fadeIn 0.3s ease forwards;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 0.5rem;
    height: 0.5rem;
}

::-webkit-scrollbar-track {
    background: #e2e8f0;
}

.dark ::-webkit-scrollbar-track {
    background: #334155;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 0.25rem;
}

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: static;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .data-table {
        max-height: 20rem;
    }
}
