/* ===================================
   Espace Stagiaire - Styles CSS
   Modern, Professional Design
   =================================== */

/* Variables CSS */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===================================
   Modern Landing Page
   =================================== */

.landing-page-modern {
    min-height: 100vh;
    background: white;
}

/* Landing Navigation */
.landing-nav {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.landing-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.landing-logo {
    height: 60px;
    width: auto;
    background: white;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.landing-brand h1 {
    font-size: 1.25rem;
    color: #1e3b8b;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.landing-brand p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.landing-nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-landing {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    border: 2px solid transparent;
}

.btn-landing-outline {
    color: #1e3b8b;
    border-color: #1e3b8b;
}

.btn-landing-outline:hover {
    background: #1e3b8b;
    color: white;
    transform: translateY(-2px);
}

.btn-landing-primary {
    background: #1e3b8b;
    color: white;
}

.btn-landing-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(30, 59, 139, 0.3);
}

/* Hero Modern */
.hero-modern {
    padding: 5rem 0;
    background: white;
}

.hero-modern-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #eff6ff;
    color: #1e3b8b;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid #dbeafe;
}

.badge-icon {
    font-size: 1.25rem;
}

.hero-modern-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.title-highlight {
    color: #1e3b8b;
    display: block;
}

.hero-modern-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-modern-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.btn-hero-primary {
    background: #1e3b8b;
    color: white;
}

.btn-hero-primary:hover {
    background: #1e40af;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(30, 59, 139, 0.3);
}

.btn-hero-secondary {
    background: white;
    color: #1e3b8b;
    border: 2px solid #1e3b8b;
}

.btn-hero-secondary:hover {
    background: #f8fafc;
    transform: translateY(-3px);
}

.btn-arrow {
    font-size: 1.5rem;
    transition: var(--transition);
}

.btn-hero:hover .btn-arrow {
    transform: translateX(5px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #1e3b8b;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Features Modern */
.features-modern {
    padding: 5rem 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
}

.features-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-modern-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.feature-modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #1e3b8b;
}

.feature-modern-icon {
    width: 64px;
    height: 64px;
    background: #eff6ff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #1e3b8b;
}

.feature-modern-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.feature-modern-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: #1e3b8b;
    color: white;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    color: #1e3b8b;
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Footer Modern */
.footer-modern {
    background: #0f172a;
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    background: white;
    padding: 0.5rem;
    border-radius: var(--radius-md);
}

.footer-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-link-group h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-link-group a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-link-group a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-bottom {
    text-align: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
}

.footer-copyright p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
}

.footer-dev {
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-copyright strong {
    color: white;
    font-weight: 600;
}

/* ===================================
   Modern Authentication Pages
   =================================== */

.auth-page-modern {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
}

/* Auth Navigation */
.auth-nav {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.auth-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-logo-link {
    display: inline-block;
}

.auth-logo {
    height: 60px;
    width: auto;
    background: white;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.auth-logo:hover {
    transform: scale(1.05);
}

.btn-back {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn-back:hover {
    color: #1e3b8b;
}

/* Auth Content */
.auth-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.auth-container-modern {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    border: 1px solid #e2e8f0;
}

.auth-header-modern {
    text-align: center;
    margin-bottom: 2.5rem;
}

.admin-badge {
    display: inline-block;
    background: #1e3b8b;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.auth-header-modern h1 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.auth-header-modern p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Auth Form */
.auth-form-modern {
    margin-bottom: 2rem;
}

.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-group-modern label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.input-modern {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    color: var(--text-color);
}

.input-modern:focus {
    outline: none;
    border-color: #1e3b8b;
    box-shadow: 0 0 0 4px rgba(30, 59, 139, 0.1);
}

.input-modern::placeholder {
    color: #94a3b8;
}

.btn-auth-modern {
    width: 100%;
    padding: 1rem;
    background: #1e3b8b;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-auth-modern:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(30, 59, 139, 0.3);
}

.btn-admin {
    background: #1e3b8b;
}

.btn-admin:hover {
    background: #1e40af;
}

/* Auth Footer */
.auth-footer-modern {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.auth-footer-modern p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

.auth-link {
    color: #1e3b8b;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.auth-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

.auth-link-secondary {
    color: var(--text-light);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.auth-link-secondary:hover {
    color: #1e3b8b;
}

.auth-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 1rem 0;
}

.admin-access {
    margin-top: 1rem;
}

.security-notice {
    color: var(--text-light);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Auth Footer Bar */
.auth-footer-bar {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem 0;
    text-align: center;
}

.auth-footer-bar p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
}

/* Old Auth Page (kept for compatibility) */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: #1e3b8b;
}

.auth-container {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
}

.signup-container {
    max-width: 600px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.auth-header h2 {
    font-size: 1.75rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-light);
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-footer {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.auth-footer p {
    margin: 0.5rem 0;
}

.admin-link {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* ===================================
   Forms
   =================================== */

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--card-bg);
    color: var(--text-color);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input[type="file"] {
    padding: 0.5rem;
}

small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 500;
}

.btn-link:hover {
    text-decoration: underline;
}

/* ===================================
   Dashboard
   =================================== */

.dashboard-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Enhanced Dashboard Navigation */
.dashboard-nav-enhanced {
    background: #1e3b8b;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.5rem;
}

/* Logo and Brand */
.nav-brand-enhanced {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
}

.nav-logo-enhanced {
    height: 50px;
    width: auto;
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.nav-logo-enhanced:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-title {
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8125rem;
    font-weight: 500;
}

/* User Section */
.nav-user-enhanced {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-icon-nav {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
    transition: var(--transition);
    text-decoration: none;
}

.btn-icon-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* User Profile Enhanced */
.user-profile-enhanced {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.profile-trigger:hover {
    background: rgba(255, 255, 255, 0.15);
}

.user-avatar-enhanced {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.user-info-enhanced {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.user-name-enhanced {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}

.user-role-enhanced {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.75rem;
}

.chevron-icon {
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition);
}

.profile-trigger:hover .chevron-icon {
    color: white;
}

/* Profile Dropdown */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 280px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8fafc;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.dropdown-info {
    flex: 1;
    min-width: 0;
}

.dropdown-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-email {
    font-size: 0.8125rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-item svg {
    flex-shrink: 0;
    color: var(--text-light);
}

.dropdown-item:hover {
    background: #f8fafc;
}

.dropdown-item:hover svg {
    color: #1e3b8b;
}

.dropdown-item-danger:hover {
    background: #fee2e2;
    color: #dc2626;
}

.dropdown-item-danger:hover svg {
    color: #dc2626;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-md);
    padding: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    padding: 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-user-name {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1rem;
}

.mobile-user-email {
    font-size: 0.875rem;
    color: var(--text-light);
}

.mobile-menu-items {
    padding: 0.5rem 0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.mobile-menu-item svg {
    flex-shrink: 0;
    color: var(--text-light);
}

.mobile-menu-item:hover {
    background: #f8fafc;
    border-left-color: #1e3b8b;
}

.mobile-menu-item:hover svg {
    color: #1e3b8b;
}

.mobile-menu-item-danger:hover {
    background: #fee2e2;
    border-left-color: #dc2626;
    color: #dc2626;
}

.mobile-menu-item-danger:hover svg {
    color: #dc2626;
}

body.menu-open {
    overflow: hidden;
}

/* Admin Navigation Customization */
.admin-nav {
    background: linear-gradient(135deg, #1e3b8b 0%, #1e40af 100%);
}

.admin-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.admin-menu-header {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

/* Old Navigation (kept for compatibility) */
.dashboard-nav {
    background: #1e3b8b;
    box-shadow: var(--shadow-lg);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-nav .container,
.dashboard-nav .container-wide {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    height: 50px;
    width: auto;
    transition: var(--transition);
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-brand h2 {
    font-size: 1.25rem;
    color: white;
    font-weight: 700;
    margin: 0;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.user-role {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-nav {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-nav-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-nav-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-nav-logout {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.btn-nav-logout:hover {
    background: rgba(220, 38, 38, 1);
    transform: translateY(-2px);
}

/* User Profile Dropdown Effect */
.user-profile {
    position: relative;
}

.user-profile::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: white;
    transition: var(--transition);
}

.user-profile:hover::after {
    width: 80%;
}

/* Navigation Animations */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dashboard-nav {
    animation: slideDown 0.3s ease-out;
}

/* Button Hover Effects */
.btn-nav {
    position: relative;
    overflow: hidden;
}

.btn-nav::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-nav:hover::before {
    width: 300px;
    height: 300px;
}

.dashboard-main {
    flex: 1;
    padding: 2rem 0;
    background: #f8fafc;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    color: var(--text-color);
}

/* Dashboard Welcome Section */
.dashboard-welcome {
    margin-bottom: 2.5rem;
}

.welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.welcome-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
}

.welcome-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

.btn-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-dashboard svg {
    flex-shrink: 0;
}

.btn-dashboard-primary {
    background: #1e3b8b;
    color: white;
}

.btn-dashboard-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(30, 59, 139, 0.3);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.dashboard-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* ===================================
   Cards
   =================================== */

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.card-header h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

.card-body.no-padding {
    padding: 0;
}

/* Modern Cards */
.card-modern {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.card-modern:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

.card-modern-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-icon-wrapper {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3b8b;
    flex-shrink: 0;
}

.card-modern-header h3 {
    font-size: 1.125rem;
    color: var(--text-color);
    font-weight: 700;
    margin: 0;
}

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

.card-empty {
    border: 2px dashed #e2e8f0;
}

.empty-state-modern {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-light);
}

.empty-state-modern svg {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.empty-state-modern p {
    font-size: 1rem;
    margin: 0;
}

/* ===================================
   Info Grid
   =================================== */

.info-grid {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-light);
}

.info-value {
    color: var(--text-color);
    text-align: right;
}

/* ===================================
   Status Badges
   =================================== */

.status-badge-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-declined {
    background: #fee2e2;
    color: #991b1b;
}

/* ===================================
   Alerts
   =================================== */

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* ===================================
   Admin Comment
   =================================== */

.admin-comment {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.admin-comment h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.admin-comment p {
    color: var(--text-color);
}

/* ===================================
   Statistics Grid
   =================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(102, 126, 234, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card.stat-pending:hover {
    border-color: rgba(251, 191, 36, 0.5);
}

.stat-card.stat-approved:hover {
    border-color: rgba(16, 185, 129, 0.5);
}

.stat-card.stat-declined:hover {
    border-color: rgba(239, 68, 68, 0.5);
}

.stat-icon {
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

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

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* ===================================
   Tables
   =================================== */

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table thead {
    background: var(--bg-color);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr:hover {
    background: var(--bg-color);
}

.empty-state {
    padding: 3rem;
    text-align: center;
    color: var(--text-light);
}

/* ===================================
   Modal
   =================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    padding: 0;
    width: 2rem;
    height: 2rem;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* ===================================
   Footer
   =================================== */

.footer,
.dashboard-footer {
    background: var(--card-bg);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.dashboard-footer-modern {
    background: white;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
}

.dashboard-footer-modern p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

.dashboard-footer-modern strong {
    color: var(--text-color);
    font-weight: 600;
}

.footer-dev-small {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    /* Modern Landing Responsive */
    .landing-logo {
        height: 50px;
    }
    
    .landing-brand h1 {
        font-size: 1rem;
    }
    
    .landing-brand p {
        font-size: 0.75rem;
    }
    
    .landing-nav-actions {
        gap: 0.5rem;
    }
    
    .btn-landing {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .hero-modern {
        padding: 3rem 0;
    }
    
    .hero-modern-title {
        font-size: 2.25rem;
    }
    
    .hero-modern-subtitle {
        font-size: 1rem;
    }
    
    .btn-hero {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .features-modern-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-logo {
        height: 50px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid-modern {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .welcome-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .welcome-header h1 {
        font-size: 1.75rem;
    }
    
    .btn-dashboard {
        width: 100%;
        justify-content: center;
    }
    
    /* Enhanced Navigation Responsive */
    .brand-text {
        display: none;
    }
    
    .nav-logo-enhanced {
        height: 45px;
    }
    
    .user-info-enhanced {
        display: none;
    }
    
    .chevron-icon {
        display: none;
    }
    
    .btn-icon-nav {
        display: none;
    }
    
    .profile-trigger {
        padding: 0.5rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .profile-dropdown {
        display: none !important;
    }
    
    .nav-user {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.75rem;
    }
    
    .user-profile {
        padding: 0.5rem 0.75rem;
    }
    
    .user-info {
        display: none;
    }
    
    .nav-logo {
        height: 40px;
    }
    
    .nav-brand h2 {
        font-size: 1rem;
    }
    
    .nav-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-nav {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 0.75rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1.5rem;
    }
    
    .auth-container-modern {
        padding: 2rem 1.5rem;
    }
    
    .auth-header-modern h1 {
        font-size: 1.5rem;
    }
    
    .auth-logo {
        height: 50px;
    }
    
    .hero-modern-title {
        font-size: 1.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }
    
    .btn-hero {
        width: 100%;
    }
    
    .btn-landing {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .welcome-header h1 {
        font-size: 1.5rem;
    }
    
    .welcome-subtitle {
        font-size: 0.95rem;
    }
    
    .card-modern-header {
        padding: 1rem;
    }
    
    .card-modern-body {
        padding: 1rem;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .info-value {
        text-align: left;
    }
}

/* ===================================
   Utility Classes
   =================================== */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .dashboard-nav,
    .dashboard-footer,
    .btn,
    .modal {
        display: none !important;
    }
}


/* ===================================
   MODERN ADMIN DASHBOARD STYLES
   High-End Professional UI/UX
   =================================== */

/* Admin Page Header */
.admin-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2.5rem 0;
    margin-bottom: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.page-title-section .page-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem 0;
}

.page-title-section .page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
}

.page-actions {
    display: flex;
    gap: 1rem;
}

.btn-admin-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.btn-admin-action:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Modern Alert Messages */
.alert-modern {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    animation: slideInDown 0.3s ease;
}

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

.alert-modern .alert-icon {
    flex-shrink: 0;
}

.alert-modern .alert-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.alert-modern .alert-content p {
    margin: 0;
    font-size: 0.875rem;
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert-success .alert-icon svg {
    stroke: #10b981;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-error .alert-icon svg {
    stroke: #ef4444;
}

/* Modern Statistics Grid */
.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card-modern {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    border: 1px solid transparent;
}

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

.stat-card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-total .stat-card-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-pending .stat-card-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.stat-approved .stat-card-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.stat-rejected .stat-card-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.stat-card-content {
    flex: 1;
}

.stat-card-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.stat-card-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
    line-height: 1;
}

.stat-card-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-color);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
}

/* Modern Table Card */
.table-card-modern {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.table-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    gap: 2rem;
    flex-wrap: wrap;
}

.table-card-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.table-card-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.table-card-count {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--bg-color);
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 999px;
}

.table-card-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box svg {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
}

.search-input {
    padding: 0.625rem 1rem 0.625rem 2.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    min-width: 250px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-select {
    padding: 0.625rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Modern Table */
.table-wrapper {
    overflow-x: auto;
}

.admin-table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table-modern thead tr {
    background: #f8fafc;
}

.admin-table-modern th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
}

.admin-table-modern tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

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

.admin-table-modern tbody tr:last-child {
    border-bottom: none;
}

.admin-table-modern td {
    padding: 1.25rem 1.5rem;
    font-size: 0.875rem;
}

/* Table Cell Specific Styles */
.td-avatar {
    width: 60px;
}

.checkbox-modern {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-modern:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.candidate-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.candidate-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.candidate-details {
    display: flex;
    flex-direction: column;
}

.candidate-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9375rem;
}

.candidate-id {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.125rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-email {
    color: var(--text-color);
    font-size: 0.875rem;
}

.contact-phone {
    color: var(--text-light);
    font-size: 0.8125rem;
}

.qualification-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.qualification-degree {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.875rem;
}

.qualification-specialty {
    color: var(--text-light);
    font-size: 0.8125rem;
}

.badge-status-current {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
}

.date-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.date-main {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.875rem;
}

.date-time {
    color: var(--text-light);
    font-size: 0.75rem;
}

.btn-table-action {
    padding: 0.625rem;
    border: none;
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-table-action:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Empty State */
.empty-state-modern {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    margin: 0 auto 1.5rem;
    color: var(--text-light);
    opacity: 0.5;
}

.empty-state-modern h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

.empty-state-modern p {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin: 0;
}

/* Modern Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-modern {
    background: white;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-modern {
    transform: scale(1) translateY(0);
}

.modal-modern-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-header-title h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-modern-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

/* Modal Candidate Header */
.modal-candidate-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-candidate-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.modal-candidate-info h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
}

.modal-candidate-id {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0 0 0.75rem 0;
}

.modal-candidate-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.meta-item svg {
    color: var(--primary-color);
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.modal-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: none;
    border: none;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.modal-tab:hover {
    color: var(--text-color);
    background: var(--bg-color);
}

.modal-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.modal-tab svg {
    flex-shrink: 0;
}

/* Tab Content */
.modal-tab-content {
    min-height: 300px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Info Grid Modern */
.info-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-card-modern {
    padding: 1.25rem;
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.info-card-modern.full-width {
    grid-column: 1 / -1;
}

.info-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.info-card-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.5;
}

/* Documents Grid */
.documents-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.document-card-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}

.document-card-modern:hover {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
    transform: translateY(-4px);
}

.document-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.document-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-color);
}

.document-info p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.document-action {
    margin-top: 1rem;
    padding: 0.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-md);
}

/* Modern Form in Modal */
.status-form-modern {
    margin-top: 1rem;
}

.form-group-modern-modal {
    margin-bottom: 1.5rem;
}

.form-label-modern {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.select-wrapper-modern {
    position: relative;
}

.select-wrapper-modern svg {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-light);
}

.select-modern {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-color);
    background: white;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
}

.select-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.textarea-modern {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--text-color);
    resize: vertical;
    transition: var(--transition);
}

.textarea-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.form-actions-modern {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-modal-secondary {
    padding: 0.875rem 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-modal-secondary:hover {
    background: var(--bg-color);
    border-color: var(--text-light);
}

.btn-modal-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-modal-primary:hover {
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-card-header {
        flex-direction: column;
        align-items: stretch;
    }

    .table-card-filters {
        flex-direction: column;
    }

    .search-input {
        min-width: 100%;
    }

    .modal-candidate-header {
        flex-direction: column;
        text-align: center;
    }

    .modal-candidate-meta {
        justify-content: center;
    }

    .info-grid-modern {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid-modern {
        grid-template-columns: 1fr;
    }

    .admin-page-header {
        padding: 1.5rem 0;
    }

    .page-title-section .page-title {
        font-size: 1.5rem;
    }

    .modal-modern {
        max-width: 100%;
        margin: 1rem;
    }

    .modal-modern-body {
        padding: 1.5rem;
    }

    .modal-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .modal-tab {
        font-size: 0.8125rem;
        padding: 0.75rem 1rem;
    }

    .form-actions-modern {
        flex-direction: column-reverse;
    }

    .btn-modal-secondary,
    .btn-modal-primary {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================
   UPDATED ADMIN STYLES
   Simple Header, Excel Button, Sticky Footer
   =================================== */

/* Simple Page Header (No Gradient Background) */
.admin-page-header-simple {
    padding: 2rem 0 1.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.page-title-simple {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

.page-subtitle-simple {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

/* Excel Export Button in Navigation */
.btn-excel-export {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    border: none;
    padding: 0.625rem 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-excel-export:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-excel-export span {
    font-size: 0.875rem;
}

/* Sticky Footer - Smaller and at Bottom */
.dashboard-footer-sticky {
    margin-top: auto;
    padding: 1rem 0;
    background: white;
    border-top: 1px solid var(--border-color);
    position: sticky;
    bottom: 0;
    z-index: 100;
}

.footer-text-compact {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-light);
    text-align: center;
}

.footer-text-compact strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Ensure dashboard page takes full height */
.dashboard-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-content {
    flex: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .admin-page-header-simple {
        padding: 1.5rem 0 1rem 0;
    }

    .page-title-simple {
        font-size: 1.5rem;
    }

    .page-subtitle-simple {
        font-size: 0.875rem;
    }

    .btn-excel-export span {
        display: none;
    }

    .btn-excel-export {
        padding: 0.625rem;
    }

    .footer-text-compact {
        font-size: 0.75rem;
    }
}

/* ===================================
   UPDATED EXCEL BUTTON & SPACING
   =================================== */

/* Improved Excel Export Button */
.btn-excel-export-nav {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    border: none;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.btn-excel-export-nav:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-excel-export-nav svg {
    flex-shrink: 0;
}

.btn-excel-export-nav span {
    font-size: 0.9375rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Add spacing before footer */
.dashboard-content {
    flex: 1;
    padding-bottom: 3rem;
}

/* Update footer spacing */
.dashboard-footer-sticky {
    margin-top: 2rem;
    padding: 1.25rem 0;
    background: #f8fafc;
    border-top: 2px solid var(--border-color);
}

/* Remove old gradient header styles if they still exist */
.admin-page-header {
    display: none;
}

/* Responsive for Excel button */
@media (max-width: 768px) {
    .btn-excel-export-nav span {
        display: none;
    }

    .btn-excel-export-nav {
        padding: 0.75rem;
    }
}

/* ===================================
   ADD SPACING BETWEEN TOPBAR AND CARDS
   =================================== */

/* Add top padding to dashboard content */
.dashboard-content {
    padding-top: 2.5rem;
}

/* Additional spacing for stats grid */
.stats-grid-modern {
    margin-top: 2rem;
}

/* Spacing for alert messages */
.alert-modern {
    margin-top: 1.5rem;
}

/* Responsive spacing adjustments */
@media (max-width: 768px) {
    .dashboard-content {
        padding-top: 1.5rem;
    }
    
    .stats-grid-modern {
        margin-top: 1.5rem;
    }
}
