/* USMS Portal - Main Stylesheet */

:root {
    --primary-color: #0a0a0a;
    --primary-light: #262626;
    --secondary-color: #eab308;
    --accent-color: #facc15;
    --accent-light: #fde047;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #facc15;
    --info-color: #3b82f6;
    --light-color: #1f1f1f;
    --dark-color: #0a0a0a;
    --text-color: #e5e5e5;
    --text-light: #a3a3a3;
    --heading-color: #fafafa;
    --border-color: #2e2e2e;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    --gradient-primary: linear-gradient(135deg, #000000 0%, #171717 60%, #262626 100%);
    --gradient-accent: linear-gradient(135deg, #facc15 0%, #fde047 100%);
    --gradient-hero: linear-gradient(135deg, #000000 0%, #171717 55%, #3f2d00 100%);
    --card-bg: #141414;
    --input-bg: #1c1c1c;
    --page-bg: #0a0a0a;
    --overlay-bg: rgba(0, 0, 0, 0.85);
    --overlay-gradient: linear-gradient(135deg, rgba(0, 0, 0, 0.92) 0%, rgba(30, 25, 0, 0.85) 100%);
}

/* Light Mode */
[data-theme="light"] {
    --primary-color: #171717;
    --primary-light: #404040;
    --secondary-color: #a16207;
    --accent-color: #ca8a04;
    --accent-light: #eab308;
    --light-color: #f5f5f5;
    --dark-color: #171717;
    --text-color: #171717;
    --text-light: #525252;
    --heading-color: #171717;
    --border-color: #e5e5e5;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --page-bg: #fafafa;
    --overlay-bg: rgba(255, 255, 255, 0.9);
    --overlay-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 250, 250, 0.9) 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: var(--page-bg);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/usms-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-gradient);
    z-index: -1;
}

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

/* Navigation */
.navbar {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-brand .usms-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-brand i {
    display: none;
}

.nav-brand::before {
    content: '';
    width: 40px;
    height: 40px;
    background: url('../img/usms-seal.png') no-repeat center / contain;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.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: var(--gradient-hero);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::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;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
}

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

/* Dark Mode overrides for pastel elements */
[data-theme="dark"] .alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%);
}

[data-theme="dark"] .alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
}

[data-theme="dark"] .alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
}

[data-theme="dark"] .status-completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
}

[data-theme="dark"] .status-progress {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2) 0%, rgba(250, 204, 21, 0.1) 100%);
}

[data-theme="dark"] .status-pending {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
}

[data-theme="dark"] .status-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

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

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

.btn-primary {
    background: var(--gradient-accent);
    color: var(--dark-color);
}

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

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

.btn-secondary:hover {
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.4);
}

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

.btn-success:hover {
    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 {
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 16px;
}

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

/* Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--heading-color);
    font-weight: 800;
    letter-spacing: -0.5px;
}

[data-theme="dark"] .section-title {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .section-title {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.news-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.news-card h3 {
    color: var(--heading-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
}

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

/* 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: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

.employee-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.employee-photo {
    height: 260px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.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.3;
}

.employee-info {
    padding: 1.5rem;
}

.employee-info h3 {
    color: var(--heading-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
}

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

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

.rank {
    color: var(--secondary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.department {
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bio {
    margin-top: 1rem;
    color: var(--text-light);
    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));
    display: none;
}

.login-header::before {
    content: '';
    width: 80px;
    height: 80px;
    background: url('../img/usms-seal.png') no-repeat center / contain;
    display: block;
    margin: 0 auto 1rem;
}

.login-header h1 {
    color: var(--heading-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;
    width: 100%;
}

.login-form .form-group {
    width: 100%;
}

.login-form .input-with-icon {
    width: 100%;
}

.login-form .input-with-icon input {
    width: 100%;
}

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

.login-footer a {
    color: var(--secondary-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;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--input-bg);
    color: var(--text-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.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: 16px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.form-section h2 {
    color: var(--heading-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: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.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(--heading-color);
    margin-bottom: 0.5rem;
    font-weight: 800;
    font-size: 2rem;
}

[data-theme="light"] .dashboard-header h1 {
    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: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.stat-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

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

.dashboard-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.dashboard-section h2 {
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
}

/* Admin */
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.status-badge {
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.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: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: var(--text-light);
}

.status-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: var(--danger-color);
}

.risk-badge {
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
}

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

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

.risk-high {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: var(--danger-color);
}

.risk-unrated {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: var(--text-light);
}

/* Armed badge (wanted list) - same style as risk badges */
.armed-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.armed-unknown {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: var(--text-light);
}

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

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

.armed-armed {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: var(--danger-color);
}

[data-theme="dark"] .risk-low {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
}

[data-theme="dark"] .risk-medium {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2) 0%, rgba(250, 204, 21, 0.1) 100%);
}

[data-theme="dark"] .risk-high {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
}

[data-theme="dark"] .risk-unrated {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
}

[data-theme="dark"] .armed-unknown {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
}

[data-theme="dark"] .armed-likely_unarmed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
}

[data-theme="dark"] .armed-likely_armed {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2) 0%, rgba(250, 204, 21, 0.1) 100%);
}

[data-theme="dark"] .armed-armed {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
}

/* Wanted persons styling - content and decorations only, no background changes */
.wanted-photo {
    position: relative;
}

.wanted-risk-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.wanted-risk-tag.risk-high {
    background: var(--danger-color);
    border-color: var(--danger-color);
}

.wanted-risk-tag.risk-medium {
    background: var(--warning-color);
    border-color: var(--warning-color);
    color: var(--dark-color);
}

.wanted-risk-tag.risk-low {
    background: var(--success-color);
    border-color: var(--success-color);
}

.reward-badge {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #facc15;
}

[data-theme="dark"] .reward-badge {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2) 0%, rgba(250, 204, 21, 0.1) 100%);
    color: var(--warning-color);
    border-color: rgba(250, 204, 21, 0.3);
}

.wanted-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wanted-header h3 {
    color: var(--heading-color);
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 0 0.25rem 0;
}

.wanted-alias {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

.wanted-alias i {
    color: var(--accent-color);
    margin-right: 0.35rem;
}

.wanted-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wanted-details {
    margin: 0.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.wanted-field dt {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    margin-bottom: 0.15rem;
}

.wanted-field dt i {
    color: var(--accent-color);
    margin-right: 0.35rem;
}

.wanted-field dd {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-color);
    line-height: 1.55;
}

.score-badge {
    background: var(--gradient-accent);
    color: var(--dark-color);
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

/* Admin */
.admin-container {
    padding: 2rem 0;
}

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

.admin-header h1 {
    color: var(--heading-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: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.admin-section h2 {
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

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

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

.item-info h3 {
    color: var(--heading-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(--light-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

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

.log-user {
    color: var(--secondary-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 {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

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(--light-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(--heading-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(--light-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(--secondary-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(--heading-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;
}

/* Recruitment status */
.recruitment-status {
    max-width: 640px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.recruitment-status .status-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.recruitment-open .status-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: var(--success-color);
}

.recruitment-closed .status-icon {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2) 0%, rgba(250, 204, 21, 0.1) 100%);
    color: var(--warning-color);
}

.recruitment-status h2 {
    color: var(--heading-color);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.recruitment-status p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.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 */
@media (max-width: 1200px) {
    .nav-brand {
        font-size: 1.25rem;
    }

    .nav-brand i {
        font-size: 1.5rem;
    }

    .nav-menu a {
        font-size: 0.875rem;
        padding: 0.35rem 0.6rem;
    }

    .theme-toggle {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
    }
}

@media (max-width: 992px) {
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .dashboard-stats,
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .recent-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .item-status {
        width: 100%;
        justify-content: space-between;
    }
}
