﻿/* USMS Portal - Main Stylesheet */

:root {
    --primary-color: #0a0a0a;
    --primary-light: #1a1a1a;
    --secondary-color: #2a2a2a;
    --accent-color: #d4af37;
    --accent-light: #f4d03f;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --light-color: #f0f0f0;
    --dark-color: #0a0a0a;
    --text-color: #ffffff;
    --text-light: #c0c0c0;
    --border-color: #3a3a3a;
    --bg-color: #050505;
    --bg-alt-color: #111111;
    --card-bg: #161616;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
    --shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 4px 12px -2px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 8px 24px -4px rgba(0, 0, 0, 0.7);
    --gradient-primary: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    --gradient-accent: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    --gradient-hero: linear-gradient(135deg, rgba(5, 5, 5, 0.95) 0%, rgba(20, 20, 20, 0.93) 100%);
    --overlay-bg: rgba(10, 10, 10, 0.95);
    --overlay-gradient: linear-gradient(135deg, rgba(5, 5, 5, 0.96) 0%, rgba(25, 25, 25, 0.92) 100%);
    --usms-gold: #d4af37;
    --usms-black: #0a0a0a;
    --usms-dark: #141414;
    --border-radius-sm: 8px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

/* Light Mode */
[data-theme="light"] {
    --primary-color: #0a0a0a;
    --primary-light: #1a1a1a;
    --secondary-color: #2a2a2a;
    --accent-color: #b8941f;
    --accent-light: #c9a227;
    --light-color: #ffffff;
    --dark-color: #0a0a0a;
    --text-color: #1f1f1f;
    --text-light: #5a5a5a;
    --border-color: #d1d1d1;
    --bg-color: #f8f8f8;
    --bg-alt-color: #ffffff;
    --card-bg: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.08);
    --shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 8px -2px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 8px 16px -4px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    --gradient-hero: linear-gradient(135deg, rgba(10, 10, 10, 0.88) 0%, rgba(30, 30, 30, 0.84) 100%);
    --overlay-bg: rgba(255, 255, 255, 0.95);
    --overlay-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 248, 248, 0.92) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, rgba(5, 5, 5, 0.95) 0%, rgba(20, 20, 20, 0.93) 100%),
                url('../img/usms-background.jpg') center/cover no-repeat fixed;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(20, 20, 20, 0.9) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    position: relative;
}

.nav-brand::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-brand:hover::after {
    width: 100%;
}

.nav-brand:hover {
    opacity: 1;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.nav-brand i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.nav-logo {
    height: 40px;
    width: auto;
    border-radius: var(--border-radius-sm);
    object-fit: contain;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: white;
    background: rgba(212, 175, 55, 0.15);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.admin-badge {
    background: var(--gradient-accent);
    color: var(--dark-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 10px;
    box-shadow: var(--shadow-sm);
}

/* Theme Toggle */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.theme-toggle i {
    font-size: 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(20, 20, 20, 0.85) 100%),
                url('../img/usms-background.jpg') center/cover no-repeat;
    color: white;
    padding: 6rem 0 5rem;
    text-align: center;
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--accent-color);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 1.5rem;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: var(--dark-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, #ffe066 100%);
    border-color: var(--accent-light);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    border-radius: var(--border-radius-sm);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    border-radius: var(--border-radius);
}

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

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
    background: var(--bg-alt-color);
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 0.75rem auto 0;
}

[data-theme="dark"] .employee-info h3 {
    color: var(--text-color);
}

[data-theme="light"] .employee-info h3 {
    color: var(--primary-color);
}

[data-theme="dark"] .employee-info p {
    color: var(--text-light);
}

[data-theme="light"] .employee-info p {
    color: var(--text-light);
}

/* Alternating section backgrounds */
.section:nth-of-type(even) {
    background: var(--bg-alt-color);
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--card-bg);
    padding: 1.75rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.5s ease-out;
}

.news-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--accent-light);
}

.news-card h3 {
    color: var(--text-color); margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1.15rem;
}

.news-date {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Employees Gallery */
.employees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.employee-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--accent-color);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.5s ease-out;
}

.employee-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent-light);
}

.employee-photo {
    height: 220px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.employee-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    opacity: 0.4;
}

.employee-info {
    padding: 1.5rem;
}

.employee-info h3 {
    color: var(--text-color); margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.employee-info p {
    margin: 0.35rem 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.badge {
    color: var(--text-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.badge::before {
    content: '\f3ed';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-color);
    font-size: 0.75rem;
}

.rank {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.85rem;
}

.department {
    color: var(--text-color);
}

.bio {
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    line-height: 1.6;
}

.text-center {
    text-align: center;
    margin-top: 2rem;
}

/* Login Page */
.login-page {
    background: var(--gradient-hero);
    min-height: 100vh;
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    background-size: 100px 100px;
    opacity: 0.5;
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    position: relative;
    z-index: 1;
}

.login-box {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    max-width: 420px;
    width: 100%;
    border: 1px solid var(--border-color);
}

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

.login-header i {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.3));
}

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

.login-header p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.login-footer a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.login-footer a:hover {
    color: var(--accent-color);
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.form-group label {
    font-weight: 700;
    color: var(--text-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card-bg);
    color: var(--text-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
    transform: translateY(-1px);
}

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

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    opacity: 0.6;
}

.input-with-icon input {
    padding-left: 3rem;
}

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

.form-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.form-section h2 {
    color: var(--text-color); margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.5rem;
}

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

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease-out;
}

.alert-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: var(--danger-color);
    border-color: rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: var(--success-color);
    border-color: rgba(16, 185, 129, 0.2);
}

.alert-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--info-color);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Dashboard */
.dashboard-container {
    padding: 2rem 0;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    color: var(--text-color); margin-bottom: 0.5rem;
    font-weight: 800;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.stat-card {
    background: var(--card-bg);
    padding: 1.75rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    border-bottom: 3px solid var(--accent-color);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--accent-light);
}

.stat-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.stat-card p {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-section {
    background: var(--card-bg);
    padding: 1.75rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.dashboard-section:hover {
    box-shadow: var(--shadow);
    border-left-color: var(--accent-light);
}

.dashboard-section h2 {
    color: var(--text-color); margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status Badge */
.status-badge {
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-completed {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: var(--success-color);
}

.status-progress {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: var(--warning-color);
}

.status-pending {
    background: var(--bg-alt-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

/* Admin */
.admin-container {
    padding: 2rem 0;
    position: relative;
    z-index: 1;
    background: var(--bg-alt-color);
    min-height: 80vh;
}

.admin-header {
    margin-bottom: 2rem;
    position: relative;
}

.admin-header h1 {
    color: var(--text-color); margin-bottom: 0.5rem;
}

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

.admin-section {
    background: var(--card-bg);
    padding: 1.75rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.admin-section:hover {
    box-shadow: var(--shadow);
    border-left-color: var(--accent-light);
}

.admin-section h2 {
    color: var(--text-color); margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-alt-color);
    border-radius: 4px;
}

.item-info h3 {
    color: var(--text-color); margin-bottom: 0.5rem;
}

.item-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.item-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audit-log {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.log-entry {
    display: flex;
    gap: 1rem;
    padding: 0.5rem;
    background: var(--bg-alt-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

.log-time {
    color: var(--text-color);
    opacity: 0.6;
    min-width: 150px;
}

.log-user {
    color: var(--text-color);
    font-weight: bold;
    min-width: 100px;
}

.log-action {
    color: var(--accent-color);
    font-weight: bold;
    min-width: 100px;
}

.log-desc {
    color: var(--text-color);
}

/* Tables */
.applications-table,
.employees-table,

.news-table {
    overflow-x: auto;
    position: relative;
    z-index: 1;
}

table {
    width: 100%;
    border-collapse: collapse;
    position: relative;
    z-index: 1;
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

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

.table-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.table-photo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Filter Bar */
.filter-bar {
    margin-bottom: 2rem;
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Application Detail */
.application-detail {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

.detail-section h2 {
    color: var(--text-color); margin-bottom: 1rem;
}

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

.detail-item label {
    font-weight: bold;
    color: var(--text-color);
    display: block;
    margin-bottom: 0.25rem;
}

.detail-item p {
    color: var(--text-color);
    opacity: 0.8;
}

.detail-content {
    background: var(--bg-alt-color);
    padding: 1rem;
    border-radius: 4px;
    white-space: pre-wrap;
}

.admin-action-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
    opacity: 0.6;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--text-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Apply Page */
.apply-container {
    padding: 2rem 0;
}

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

.page-header h1 {
    color: var(--text-color); margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-color);
    opacity: 0.8;
}

.application-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Gallery */
.gallery-container {
    padding: 2rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(10, 10, 10, 0.95));
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.gallery-filter {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-caption {
    color: var(--text-color);
    margin-top: 1rem;
    font-size: 1.1rem;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
}

.gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-admin-item {
    background: var(--bg-alt-color);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.gallery-admin-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-admin-info {
    padding: 1rem;
}

.gallery-admin-info h3 {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.gallery-admin-info p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.gallery-admin-info small {
    color: var(--text-light);
    font-size: 0.75rem;
    display: block;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--text-color);
    padding: 2.5rem 0;
    margin-top: 3rem;
    border-top: 3px solid var(--accent-color);
}

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

.footer-section h3 {
    margin-bottom: 0.75rem;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-section a:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Responsive */
/* Mobile First - Base styles are mobile */

/* Tablet */
@media (min-width: 768px) {
    .nav-menu {
        flex-direction: row;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.25rem;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .employees-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wanted-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .employees-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contacts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .wanted-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile specific adjustments */
@media (max-width: 767px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-brand {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        width: 100%;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a,
    .nav-menu button {
        width: 100%;
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .theme-toggle {
        justify-content: center;
        width: 100%;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section {
        padding: 2rem 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .employees-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .employee-card {
        border-radius: 12px;
    }
    
    .employee-photo {
        height: 180px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .wanted-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .wanted-card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-section {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .login-box {
        padding: 2rem;
        border-radius: 16px;
        margin: 0 1rem;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .news-table table {
        font-size: 0.875rem;
    }
    
    .news-table thead {
        display: none;
    }
    
    .news-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 1rem;
    }
    
    .news-table tbody td {
        display: block;
        text-align: left;
        padding: 0.5rem 0;
        border: none;
    }
    
    .news-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 0.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    

    .breadcrumb {
        margin-bottom: 1rem;
    }
    
    .admin-header h1 {
        font-size: 1.5rem;
    }
    
    .admin-header p {
        font-size: 0.875rem;
    }
    
    .delete-section {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-state i {
        font-size: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-section {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .info-section h2 {
        font-size: 1.25rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .nav-brand {
        font-size: 1.1rem;
    }
    
    .nav-brand i {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .employee-info h3 {
        font-size: 1.1rem;
    }
    
    .employee-info p {
        font-size: 0.8rem;
    }
    
    .news-card h3 {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 1rem;
    }
}

/* Compendium Styles */
.compendium-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.compendium-item {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.compendium-item h2 {
    color: var(--text-color); margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.compendium-content {
    margin: 1rem 0;
    line-height: 1.7;
    color: var(--text-color);
}

.compendium-content p {
    margin-bottom: 0.75rem;
}

.compendium-meta {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 1rem;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Downloads Styles */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.download-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--accent-light);
}

.download-icon {
    font-size: 3rem;
    color: var(--accent-color);
    text-align: center;
    padding: 1rem;
    background: var(--bg-alt-color);
    border-radius: var(--border-radius-sm);
}

.download-info h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    word-break: break-all;
}

.download-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.download-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.download-btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

/* Date/Time inputs - make native picker icon visible on dark background */
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"] {
    color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(2);
    cursor: pointer;
    opacity: 0.9;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover,
input[type="month"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

[data-theme="light"] input[type="date"],
[data-theme="light"] input[type="datetime-local"],
[data-theme="light"] input[type="time"],
[data-theme="light"] input[type="month"] {
    color-scheme: light;
}

[data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="light"] input[type="datetime-local"]::-webkit-calendar-picker-indicator,
[data-theme="light"] input[type="time"]::-webkit-calendar-picker-indicator,
[data-theme="light"] input[type="month"]::-webkit-calendar-picker-indicator {
    filter: none;
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--accent-color);
    }
    50% {
        box-shadow: 0 0 20px var(--accent-color), 0 0 30px var(--accent-color);
    }
}

/* Icon animations */
.nav-brand i,
.nav-menu a i {
    transition: all 0.3s ease;
}

.nav-brand:hover i {
    animation: pulse 1s ease-in-out infinite;
}

.nav-menu a:hover i {
    transform: scale(1.2);
    color: var(--accent-color);
}

/* Active nav link glow */
.nav-menu a.active {
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Status badge pulse for active status */
.status-badge.status-completed {
    animation: pulse 2s ease-in-out infinite;
}

/* Better focus states */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    animation: glow 0.3s ease-out;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Card stagger animation */
.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }

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

/* Better table styling */
table tbody tr {
    transition: all 0.2s ease;
}

table tbody tr:hover {
    background: var(--bg-alt-color);
    transform: scale(1.01);
}

/* Improved gallery item hover */
.gallery-item {
    border-radius: var(--border-radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: var(--shadow-xl);
}

/* Comp item improvements */
.compendium-item {
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.compendium-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-color);
}

/* Hero section improvements */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

/* Logo animation */
.nav-logo {
    transition: all 0.3s ease;
}

.nav-brand:hover .nav-logo {
    transform: rotate(5deg) scale(1.1);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

/* Button improvements */
.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(3px);
}

/* Footer improvements */
.footer {
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(20, 20, 20, 0.9) 100%);
}

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Selection styling */
::selection {
    background: var(--accent-color);
    color: var(--dark-color);
}

/* Improved admin form */
.admin-form {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

/* Recent item improvements */
.recent-item {
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

.recent-item:hover {
    background: var(--bg-alt-color);
    transform: translateX(4px);
}

/* Log entry improvements */
.log-entry {
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

.log-entry:hover {
    background: var(--bg-alt-color);
    transform: translateX(2px);
}

