/**
 * AKLMS - AKMEDIA Learning Management System
 * Main Stylesheet
 * 
 * Development & Programming Rights: M2 Service - https://m2.ist
 * Company: AKMEDIA
 * Brand Color: #205c5e
 */

:root {
    --primary-color: #205c5e;
    --secondary-color: #2c6b6e;
    --accent-color: #3a7b7e;
    --light-primary: #e8f4f5;
    --dark-primary: #1a4f51;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #343a40;
    --white: #ffffff;
    
    /* ألوان إضافية للأدوار الجديدة - نظام تلقائي */
    --purple: #6f42c1;
    --pink: #e83e8c;
    --cyan: #17a2b8;
    --orange: #fd7e14;
    --teal: #20c997;
    --indigo: #6610f2;
    --yellow: #ffc107;
    --green: #28a745;
    --blue: #007bff;
    --red: #dc3545;
    --secondary: #6c757d;
    
    --font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Light Mode (Default) */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #343a40;
    --text-secondary: #6c757d;
    --text-muted: #999999;
    --border-color: #e0e0e0;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --navbar-bg: #ffffff;
    --header-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-card: #2d2d2d;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #888888;
    --border-color: #555555;
    --shadow: 0 4px 15px rgba(255,255,255,0.1);
    --navbar-bg: #2d2d2d;
    --header-gradient: linear-gradient(135deg, #1a4f51, #205c5e);
    --light-primary: rgba(32, 92, 94, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    direction: rtl;
    text-align: right;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header */
.header {
    background: var(--header-gradient);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    transition: background 0.3s ease;
}

.header-content {
    max-width: 98% !important;
    width: 98%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 1400px) {
    .header-content {
        max-width: 1800px !important;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Navigation */
.navbar {
    background-color: var(--navbar-bg);
    border-bottom: 2px solid var(--primary-color);
    padding: 0;
    transition: background-color 0.3s ease;
    overflow: visible;
}

.nav-container {
    max-width: 98% !important;
    width: 98%;
    margin: 0 auto;
    display: flex;
    overflow-x: auto;
    gap: 5px;
    padding: 0 20px;
    
    /* Custom scrollbar for navbar */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-secondary);
}

@media (min-width: 1400px) {
    .nav-container {
        max-width: 1800px !important;
    }
}

.nav-container::-webkit-scrollbar {
    height: 4px;
}

.nav-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.nav-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.nav-container::-webkit-scrollbar-thumb:hover {
    background: var(--dark-primary);
}

.nav-item {
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-item:hover {
    border-bottom-color: var(--primary-color);
    background-color: var(--light-primary);
}

.nav-item.active {
    border-bottom-color: var(--primary-color);
    background-color: var(--light-primary);
}

.nav-item a {
    display: block;
    padding: 15px 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-item a:hover {
    color: var(--secondary-color);
}

/* Main container - استخدام كامل لمساحة الشاشة */
.container {
    max-width: 98% !important;
    width: 98%;
    margin: 0 auto;
    padding: 15px;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1800px !important;
    }
}

/* Row and Column Layout */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.col-md-3 {
    flex: 0 0 25%;
    padding: 10px;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    padding: 10px;
}

.col-md-6 {
    flex: 0 0 50%;
    padding: 10px;
}

.col-12 {
    flex: 0 0 100%;
    padding: 10px;
}

@media (max-width: 768px) {
    .col-md-3, .col-md-4, .col-md-6 {
        flex: 0 0 100%;
    }
}

/* Statistics Cards */
.stat-card {
    background: var(--primary-color);
    color: white;
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: rotate(45deg) scale(1.2);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.main-content {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-top: 20px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Page header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-primary);
}

.page-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: bold;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--dark-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(32, 92, 94, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-warning {
    background-color: var(--warning);
    color: var(--dark);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.875rem;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(32, 92, 94, 0.1);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-col {
    flex: 1;
}

/* Table Container - استخدام كامل للعرض */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
    width: 100%;
    box-shadow: var(--shadow);
    border-radius: 10px;
    
    /* Smooth scrolling for tables */
    scroll-behavior: smooth;
    
    /* Custom scrollbar */
    &::-webkit-scrollbar {
        height: 8px;
    }
    
    &::-webkit-scrollbar-track {
        background: var(--bg-secondary);
        border-radius: 10px;
    }
    
    &::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 10px;
    }
    
    &::-webkit-scrollbar-thumb:hover {
        background: var(--dark-primary);
    }
}

.table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.table th {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: right;
    font-weight: 500;
    white-space: nowrap;
}

.table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: color 0.3s ease;
    vertical-align: top;
}

/* Project table specific styles */
.project-name-cell {
    max-width: 150px;
    word-wrap: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-created-by {
    white-space: nowrap;
    text-align: center;
}

.project-view-btn {
    margin-right: 5px;
    margin-top: 5px;
    padding: 3px 8px;
    font-size: 12px;
}

/* إصلاح مشكلة كسر النص في الجداول */
.table td .badge {
    white-space: nowrap;
    display: inline-block;
}

.table td .btn {
    white-space: nowrap;
    margin: 2px;
}

/* إصلاح مشكلة الأيقونات والنص */
.table td span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.table td a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.table tr:hover {
    background-color: var(--light-primary);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    gap: 5px;
    min-height: 26px;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* أنماط خاصة لأدوار المستخدمين */
.role-badge {
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: none;
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
    border: 2px solid rgba(255,255,255,0.2);
}

.role-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* ألوان مخصصة للأدوار */
.badge-admin {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.badge-manager {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.badge-employee {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.badge-account-manager {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.badge-social {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}

.badge-hr-manager {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
    color: white;
}

.badge-project-manager {
    background: linear-gradient(135deg, #343a40, #23272b);
    color: white;
}

.badge-designer {
    background: linear-gradient(135deg, #e83e8c, #d91a72);
    color: white;
}

.badge-developer {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
    color: white;
}

.badge-content-writer {
    background: linear-gradient(135deg, #fd7e14, #e55a00);
    color: white;
}

.badge-video-editor {
    background: linear-gradient(135deg, #20c997, #17a673);
    color: white;
}

/* أنماط إضافية للأدوار التلقائية */
.badge-indigo {
    background: linear-gradient(135deg, #6610f2, #5a0bd1);
    color: white;
}

.badge-yellow {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.badge-blue {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.badge-green {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}

.badge-red {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.badge-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

/* Timer styles */
.task-timer {
    text-align: center;
}

.timer-display {
    background-color: var(--light-primary);
    padding: 8px 12px;
    border-radius: 8px;
    font-family: monospace;
    font-weight: bold;
    color: var(--primary-color);
    margin: 5px 0;
    display: inline-block;
    min-width: 80px;
}

.timer-item {
    background: rgba(32, 92, 94, 0.1);
    border-left: 4px solid var(--primary-color);
    transition: background-color 0.3s ease;
}

.timer-item:hover {
    background: rgba(32, 92, 94, 0.15);
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.card-header {
    border-bottom: 2px solid var(--light-primary);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.card-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: bold;
}

/* Stats cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(32, 92, 94, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--bg-card);
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    transition: background-color 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-primary);
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--danger);
}

/* Project details modal */
#projectDetailsModal .modal-content {
    max-width: 700px;
}

#projectDetailsModal .form-control {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

#projectDetailsModal .form-label {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

/* Timer */
.timer-display {
    background-color: var(--light-primary);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0;
}

.timer-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    border-color: var(--success);
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: var(--warning);
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: var(--danger);
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: var(--info);
    color: #0c5460;
}

/* Loading */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    width: 100%;
}

/* Footer pinned to bottom on dashboard only */
body.dashboard-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.dashboard-page .container {
    flex: 1;
}

body.dashboard-page .footer {
    margin-top: auto;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        justify-content: flex-start;
    }
    
    .container {
        padding: 10px;
    }
    
    .main-content {
        padding: 20px;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

/* Text Color Utilities */
.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

/* Improved transitions for all interactive elements */
.btn, .nav-item, .card, .table, .form-control, .modal-content {
    transition: all 0.3s ease;
}

/* Dark mode specific adjustments */
[data-theme="dark"] .nav-item:hover {
    background-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .table tr:hover {
    background-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(32, 92, 94, 0.2);
}

/* Enhanced Action Buttons */
.btn-group {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Progress Bar Enhancement */
.custom-progress {
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    height: 20px;
    position: relative;
    margin: 5px 0;
}

.custom-progress-bar {
    height: 100%;
    transition: width 0.5s ease;
}

.custom-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: bold;
    color: #333;
    text-shadow: 0 0 3px rgba(255,255,255,0.8);
}

/* Actions Column Responsive */
.actions-column {
    min-width: 180px;
    text-align: center;
}

/* Table Action Improvements */
.table .btn-group {
    gap: 3px;
}

.table .btn-sm {
    padding: 4px 8px;
    font-size: 11px;
    min-width: 60px;
}

/* Mobile Responsive Tables */
@media (max-width: 768px) {
    .actions-column {
        min-width: auto;
    }
    
    .table .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .table .btn-sm {
        width: 100%;
        margin: 2px 0;
        min-width: auto;
    }

    .table {
        font-size: 12px;
    }
    
    .table th,
    .table td {
        padding: 8px 6px;
    }
    
    .badge {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* ========================================
   تحسينات التصميم والأنيميشن
======================================== */

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Apply smooth animations to main content */
.main-content {
    animation: fadeIn 0.4s ease-out;
}

.card {
    animation: scaleIn 0.3s ease-out;
}

.table tbody tr {
    animation: slideIn 0.3s ease-out;
    animation-fill-mode: both;
}

.table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.table tbody tr:nth-child(5) { animation-delay: 0.25s; }

.stat-card {
    animation: scaleIn 0.5s ease-out;
    animation-fill-mode: both;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.15s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }
.stat-card:nth-child(4) { animation-delay: 0.25s; }
.stat-card:nth-child(5) { animation-delay: 0.3s; }
.stat-card:nth-child(6) { animation-delay: 0.35s; }
.stat-card:nth-child(7) { animation-delay: 0.4s; }
.stat-card:nth-child(8) { animation-delay: 0.45s; }

/* Smooth transitions for all interactive elements */
.btn, .form-control, .nav-item, .card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Improved hover effects */
.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: var(--light-primary) !important;
    transform: translateX(5px);
    box-shadow: -5px 0 15px rgba(32, 92, 94, 0.1);
}

/* Modal animations */
.modal {
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button press effect */
.btn:active {
    transform: scale(0.95);
}

/* Card hover effect */
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Smooth scroll for table containers */
.table-container {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: var(--dark-primary);
}

/* ========================================
   Date Range Filter Component
======================================== */

.date-filter-container {
    background: linear-gradient(135deg, var(--light-primary) 0%, rgba(32, 92, 94, 0.05) 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(32, 92, 94, 0.1);
    animation: slideIn 0.4s ease-out;
}

.date-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.date-filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-filter-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: end;
}

.date-filter-col {
    flex: 1;
    min-width: 200px;
}

.date-quick-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.date-quick-btn {
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.date-quick-btn:hover {
    background: var(--dark-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(32, 92, 94, 0.3);
}

.date-quick-btn:active {
    transform: scale(0.95);
}

.date-filter-actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}