/* ========================================
   Dashboard Pages Additional Styles
   ======================================== */

/* Stats Cards on Dashboard */
.stats-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stats-card-primary::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stats-card-success::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stats-card-info::before {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.stats-card-primary .stats-icon {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
}

.stats-card-success .stats-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: #10b981;
}

.stats-card-info .stats-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    color: #3b82f6;
}

.stats-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stats-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.stats-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.stats-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.stats-link:hover {
    color: #764ba2;
    gap: 0.5rem;
}

.stats-link i {
    transition: transform 0.2s ease;
}

.stats-link:hover i {
    transform: translateX(4px);
}

/* Profile Page Tabs */
.profile-tabs {
    border-bottom: 2px solid #e2e8f0;
}

.profile-tabs .nav-link {
    border: none;
    color: #64748b;
    font-weight: 600;
    padding: 1rem 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    background: transparent;
}

.profile-tabs .nav-link:hover {
    color: #667eea;
    background: transparent;
}

.profile-tabs .nav-link.active {
    color: #667eea;
    background: transparent;
}

.profile-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.profile-avatar-section {
    padding: 2rem 0;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 2rem;
}

/* Profile Page Specific Styles */
.profile-card-header-no-border {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-info-alert {
    background-color: #eff6ff;
    color: #1e40af;
}

/* Management Pages */
.table {
    margin-bottom: 0;
}

.table thead th {
    border-top: none;
}

/* Login Page Styles */
.login-page-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-container {
    max-width: 450px;
    width: 100%;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2.5rem 2rem;
    text-align: center;
    color: white;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.login-header h2 {
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0;
}

.login-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.9375rem;
}

.login-body {
    padding: 2.5rem 2rem;
}

.login-page-body .form-label {
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.login-page-body .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.login-page-body .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.input-group-icon {
    position: relative;
}

.input-group-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
}

.input-group-icon .form-control {
    padding-left: 2.75rem;
}

.login-page-body .form-check-input {
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    width: 1.25rem;
    height: 1.25rem;
}

.login-page-body .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.login-page-body .form-check-label {
    color: #64748b;
    font-size: 0.9375rem;
    margin-left: 0.5rem;
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-login:active {
    transform: translateY(0);
}

.login-page-body .alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.login-page-body .alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.login-footer {
    text-align: center;
    padding: 1.5rem;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.875rem;
    border-top: 1px solid #e2e8f0;
}

/* Layout Specific Styles */
.logout-form {
    margin: 0;
}

.logout-button {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
}

/* Responsive Styles for Login Page */
@media (max-width: 576px) {
    .login-body {
        padding: 2rem 1.5rem;
    }

    .login-header {
        padding: 2rem 1.5rem;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }
}

.dataTables_wrapper {
    overflow-x: auto;
}