/* Modern UI Enhancements */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #f5f6fa;
    --text-color: #2d3436;
    --transition-speed: 0.3s;
}

/* Modern Card Styles */
.modern-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Animated Buttons */
.btn-modern {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed);
}

.btn-modern::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.5s;
}

.btn-modern:hover::after {
    left: 100%;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Toast Notification */
.toast-modern {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Dark Mode */
[data-theme="dark"] {
    --primary-color: #6c5ce7;
    --secondary-color: #2d3436;
    --text-color: #f5f6fa;
    background-color: #1a1a1a;
    color: var(--text-color);
}

/* Smooth Scrolling Container */
.scroll-container {
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

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

::-webkit-scrollbar-track {
    background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Dashboard Stats Card */
.stats-card {
    background: linear-gradient(135deg, var(--primary-color), #a8c0ff);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all var(--transition-speed);
}

.stats-card:hover {
    transform: scale(1.02);
}

/* Interactive Table */
.table-modern {
    border-collapse: separate;
    border-spacing: 0 8px;
    width: 100%;
}

.table-modern tr {
    transition: transform var(--transition-speed);
}

.table-modern tr:hover {
    transform: scale(1.01);
    background-color: rgba(74, 144, 226, 0.1);
}

/* Chart Container */
.chart-container {
    position: relative;
    margin: auto;
    padding: 1rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed);
}

.chart-container:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Grid */
.grid-modern {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
