/* Dashboard Statistics Cards */
.stats-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.stats-card.bg-primary-gradient {
    background: linear-gradient(135deg, #5856d6 0%, #7367f0 100%);
}

.stats-card.bg-info-gradient {
    background: linear-gradient(135deg, #39f 0%, #63b3ed 100%);
}

.stats-card.bg-warning-gradient {
    background: linear-gradient(135deg, #ffc107 0%, #ffb400 100%);
}

.stats-card.bg-success-gradient {
    background: linear-gradient(135deg, #2eb85c 0%, #47d764 100%);
}

.stats-card .card-body {
    padding: 1.5rem;
}

.stats-card .stats-icon {
    font-size: 2.5rem;
    opacity: 0.3;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.stats-card .stats-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stats-card .stats-label {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-card .stats-trend {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stats-card .stats-trend i {
    font-size: 1rem;
}

.stats-card .stats-content {
    position: relative;
    z-index: 1;
}

/* Card animation on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-card {
    animation: fadeInUp 0.5s ease-out;
}

.stats-card:nth-child(1) { animation-delay: 0.1s; }
.stats-card:nth-child(2) { animation-delay: 0.2s; }
.stats-card:nth-child(3) { animation-delay: 0.3s; }
.stats-card:nth-child(4) { animation-delay: 0.4s; }

/* Dark mode adjustments */
[data-coreui-theme="dark"] .stats-card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-coreui-theme="dark"] .stats-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Recent Users Table Enhancement */
.recent-users-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.recent-users-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
}

.recent-users-card .table {
    margin-bottom: 0;
}

.recent-users-card .table thead th {
    border-top: none;
    border-bottom: 2px solid #d8dbe0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #768192;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
}

.recent-users-card .table tbody td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

.recent-users-card .table tbody tr {
    transition: all 0.2s ease;
}

.recent-users-card .table tbody tr:hover {
    background-color: rgba(50, 31, 219, 0.03);
    transform: scale(1.001);
}

.recent-users-card .table tbody tr:last-child td {
    border-bottom: none;
}

.recent-users-card .badge {
    padding: 0.375rem 0.75rem;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

[data-coreui-theme="dark"] .recent-users-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-coreui-theme="dark"] .recent-users-card .card-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-coreui-theme="dark"] .recent-users-card .table thead th {
    color: #adb5bd;
    background: #2a2d32;
    border-bottom-color: #3c4048;
}

[data-coreui-theme="dark"] .recent-users-card .table tbody td {
    border-bottom-color: #3c4048;
}

[data-coreui-theme="dark"] .recent-users-card .table tbody tr:hover {
    background-color: rgba(118, 143, 255, 0.1);
}
