/* Dashboard Improvements CSS */

/* Modern Card Styles */
.modern-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
}

/* Card Variants */
.modern-card.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.modern-card.success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.modern-card.info {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.modern-card.warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.modern-card.danger {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

/* Card Content */
.modern-card .card-body {
    padding: 2rem;
    color: white;
    position: relative;
    z-index: 2;
}

.modern-card .card-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modern-card .card-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-card .card-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    opacity: 0.3;
}

/* Trend Indicators */
.trend-indicator {
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.trend-indicator.up {
    color: #4ade80;
}

.trend-indicator.down {
    color: #f87171;
}

.trend-indicator i {
    margin-right: 0.25rem;
}

/* Enhanced Users Inside Widget */
.users-inside-modern {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: none;
    overflow: hidden;
}

.users-inside-modern .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
}

.users-inside-modern .card-header h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1.25rem;
}

.users-inside-modern .card-body {
    padding: 0;
}

.users-inside-modern .table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.users-inside-modern .table thead th {
    background: #f8fafc;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #64748b;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-inside-modern .table tbody td {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    vertical-align: middle;
}

.users-inside-modern .table tbody tr:hover {
    background: #f8fafc;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.nfc {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-badge.manual {
    background: #fef3c7;
    color: #d97706;
}

/* Chart Container Improvements */
.chart-container-modern {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: none;
    overflow: hidden;
    margin-bottom: 2rem;
}

.chart-container-modern .card-header {
    background: #f8fafc;
    border: none;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.chart-container-modern .card-header h4 {
    margin: 0;
    font-weight: 600;
    color: #1e293b;
    font-size: 1.125rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-card .card-body {
        padding: 1.5rem;
    }

    .modern-card .card-title {
        font-size: 2rem;
    }

    .modern-card .card-icon {
        font-size: 2rem;
        top: 1rem;
        right: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-grid.cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.dashboard-grid.cols-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
