/* Modern header & card enhancements - subtle polish */

/* ========== MODERN HEADER ========== */
header {
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.06);
    transition: all 0.3s ease;
}

.header-container {
    position: relative;
}

/* Logo with subtle modern styling */
.logo {
    position: relative;
    font-weight: 800;
    letter-spacing: -0.3px;
    transition: all 0.3s ease;
}

.logo i {
    transition: transform 0.3s ease;
}

.logo:hover i {
    transform: scale(1.08);
}

/* Header navigation links - subtle underline */
.header-nav a,
.auth-section a {
    position: relative;
    transition: color 0.3s ease;
}

.header-nav a:after,
.auth-section a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.header-nav a:hover:after,
.auth-section a:hover:after {
    width: 100%;
}

.login-btn,
.register-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-btn:hover,
.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* ========== MODERN CARDS ========== */
.stat-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid rgba(239, 68, 68, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.stat-value {
    transition: all 0.3s ease;
}

.stat-card:hover .stat-value {
    color: #3B82F6;
}

.stat-icon {
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    opacity: 0.8;
}

/* ========== MODERN BUTTONS ========== */
.btn {
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-primary {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.25);
    transform: translateY(-2px);
}

.btn-secondary {
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* ========== SECTION CARDS ========== */
.section {
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.section:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.section-title {
    position: relative;
    color: #1F2937;
    font-weight: 700;
}

.section-title i {
    transition: all 0.3s ease;
    color: #3B82F6;
}

.section:hover .section-title i {
    transform: scale(1.1);
}

/* ========== MODULE CARDS ========== */
.module-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid rgba(59, 130, 246, 0.08);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.15);
}

.module-title i {
    transition: all 0.3s ease;
}

.module-card:hover .module-title i {
    transform: scale(1.1);
}

/* ========== TABLE STYLING ========== */
.users-table th {
    background: rgba(248, 250, 252, 0.8);
    font-weight: 700;
    color: #1F2937;
    border-bottom: 2px solid rgba(59, 130, 246, 0.15);
}

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

.users-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.04);
}

/* ========== BADGE STYLING ========== */
.badge {
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.05);
}
