/* Dashboard Specific Enhancements */

/* Dashboard Header */
.dashboard-header {
    padding-bottom: 1rem;
}

.dashboard-header h1 {
    color: var(--gray-900);
    font-weight: 800;
}

/* Statistics Cards */
.stat-card {
    position: relative;
    overflow: visible;
    background: white !important;
}

.stat-card.border-primary {
    border-top: 3px solid var(--primary-color) !important;
    border-left: none !important;
}

.stat-card.border-success {
    border-top: 3px solid var(--success-color) !important;
    border-left: none !important;
}

.stat-card.border-warning {
    border-top: 3px solid var(--warning-color) !important;
    border-left: none !important;
}

.stat-card.border-info {
    border-top: 3px solid var(--info-color) !important;
    border-left: none !important;
}

/* gradientShift animation removed to prevent UI flicker */

.stat-card .card-title {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-card h2 {
    color: var(--gray-900);
    font-weight: 700;
}

/* Action Card */
.action-card {
    background: white;
}

.action-card .card-header {
    background: var(--gray-50);
    color: var(--gray-900);
    border-bottom: 2px solid var(--primary-color);
}

.btn-action {
    position: relative;
    overflow: hidden;
    text-transform: none;
    font-weight: 600;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
}

.btn-action i {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.btn-action span {
    display: block;
    margin-top: 0.25rem;
}

.action-description {
    display: block;
    text-align: center;
    color: var(--gray-600);
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* History Card */
.history-card {
    background: white;
}

.history-card .card-header {
    background: var(--gray-50);
    color: var(--gray-900);
    border-bottom: 2px solid var(--secondary-color);
}

.history-card .table {
    margin-bottom: 0;
}

.history-card .table thead th {
    border-top: none;
    font-size: 0.85rem;
}

/* Navigation Improvements */
.nav-menu {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 70px);
}

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid var(--gray-200);
    padding-top: 1rem !important;
}

/* Loading State */
.card.loading {
    position: relative;
    pointer-events: none;
}

.card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Responsive Improvements */
@media (max-width: 992px) {
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .btn-action {
        padding: 0.875rem 1rem;
    }
    
    .dashboard-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        text-align: center;
    }
    
    .stat-card h2 {
        font-size: 2rem;
    }
    
    .action-card .row {
        margin: 0;
    }
    
    .action-card .col-md-4 {
        padding: 0.5rem;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here */
}

/* Print Styles */
@media print {
    .sidebar {
        display: none;
    }
    
    .main {
        margin-left: 0;
    }
    
    .btn {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
}