:root { 
    --bg-dark: #0d0c0a; 
    --bg-light: #1c1a19; 
    --accent-gold: #bfa36f; 
    --accent-gold-light: #e8d5a2; 
    --text-primary: #f5f5f5; 
    --text-secondary: #a9a9a9; 
    --border-color: #4a443a; 
    --success-color: #28a745; 
    --error-color: #d9534f; 
    --warning-color: #f0ad4e;
    --shadow-color: rgba(0, 0, 0, 0.5); 
    --font-primary: 'Cairo', sans-serif;
    --font-display: 'Cinzel', serif;
}

html { 
    scroll-behavior: smooth; 
}

body { 
    margin: 0; 
    font-family: var(--font-primary); 
    background-color: var(--bg-dark); 
    color: var(--text-primary); 
    font-size: 17px; 
    line-height: 1.9; 
    overflow-x: hidden; 
    background: url('images/background.gif') no-repeat center center fixed; 
    background-size: cover; 
    position: relative; 
}

body::before { 
    content: ''; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.85); 
    z-index: -1; 
}

.container { 
    display: flex; 
    flex-direction: row-reverse; 
}

.sidebar { 
    width: 280px; 
    background-color: var(--bg-light); 
    padding: 25px; 
    height: 100vh; 
    position: fixed; 
    right: 0; 
    top: 0; 
    border-left: 2px solid var(--border-color); 
    box-shadow: -5px 0 20px var(--shadow-color); 
    overflow-y: auto; 
    z-index: 1000; 
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    display: flex; 
    flex-direction: column; 
}

.sidebar-profile { 
    display: none; 
    text-align: center; 
    padding-bottom: 20px; 
    margin-bottom: 15px; 
    border-bottom: 1px solid var(--border-color); 
    cursor: pointer; 
    position: relative; 
}

.profile-avatar { 
    width: 90px; 
    height: 90px; 
    border-radius: 50%; 
    background: linear-gradient(145deg, var(--accent-gold), #a18458); 
    margin: 0 auto 10px auto; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 48px; 
    font-weight: 900; 
    color: var(--bg-dark); 
    border: 3px solid var(--accent-gold-light); 
    background-size: cover;
    background-position: center;
}

.profile-name { 
    font-weight: 700; 
    font-size: 1.2em; 
    color: var(--text-primary); 
}

.profile-rank { 
    font-size: 0.9em; 
    color: var(--accent-gold-light); 
    margin-bottom: 5px; 
}

.profile-role { 
    font-size: 0.9em; 
    color: var(--text-secondary); 
}

.profile-dropdown { 
    position: absolute; 
    top: 100%; 
    right: 0; 
    width: 100%; 
    background-color: #2a2827; 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    margin-top: 10px; 
    box-shadow: 0 10px 20px var(--shadow-color); 
    z-index: 10; 
    opacity: 0; 
    transform: translateY(-10px); 
    transition: all 0.3s ease; 
    pointer-events: none; 
}

.profile-dropdown.show { 
    opacity: 1; 
    transform: translateY(0); 
    pointer-events: auto; 
}

.dropdown-info { 
    padding: 15px; 
    border-bottom: 1px solid var(--border-color); 
}

.dropdown-info .name { 
    font-weight: 700; 
}

.dropdown-info .email { 
    font-size: 0.8em; 
    color: var(--text-secondary); 
    word-break: break-all; 
}

.dropdown-menu { 
    list-style: none; 
    padding: 10px 0; 
    margin: 0; 
}

.dropdown-menu a { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 10px 15px; 
    color: var(--text-secondary); 
    text-decoration: none; 
    transition: background-color 0.2s; 
}

.dropdown-menu a:hover { 
    background-color: rgba(255,255,255,0.05); 
    color: white; 
}

.dropdown-menu a.logout-link { 
    color: var(--error-color); 
}

.dropdown-menu a.logout-link:hover { 
    background-color: rgba(217, 83, 79, 0.1); 
}

.sidebar-header { 
    text-align: center; 
    padding-bottom: 20px; 
    margin-bottom: 15px; 
    border-bottom: 1px solid var(--border-color); 
}

.server-logo { 
    width: 120px; 
    height: 120px; 
    border-radius: 50%; 
    margin-bottom: 15px; 
    border: 3px solid var(--accent-gold); 
}

.sidebar-header h2 { 
    color: var(--accent-gold); 
    margin: 0; 
    font-family: var(--font-display);
    font-weight: 900; 
    font-size: 2.2em; 
    letter-spacing: 1px;
}

.search-container { 
    padding: 10px 0 20px; 
}

.search-input { 
    width: 100%; 
    padding: 12px 15px; 
    border-radius: 8px; 
    border: 1px solid var(--border-color); 
    background-color: var(--bg-dark); 
    color: var(--text-primary); 
    font-family: var(--font-primary); 
    font-size: 15px; 
    box-sizing: border-box; 
}

.search-input:focus { 
    border-color: var(--accent-gold); 
    outline: none; 
}

.sidebar-nav { 
    flex-grow: 1; 
}

.sidebar-nav ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.sidebar-nav .nav-category {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.9em;
    padding: 15px 18px 5px;
    text-transform: uppercase;
    opacity: 0.7;
}

.sidebar-nav li a { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    color: var(--text-secondary); 
    text-decoration: none; 
    padding: 12px 18px; 
    border-radius: 8px; 
    margin-bottom: 8px; 
    font-weight: 500; 
    transition: all 0.3s ease; 
    border-right: 4px solid transparent; 
    font-size: 16px; 
}

.sidebar-nav li a .fa-fw { 
    transition: transform 0.3s ease, color 0.3s ease; 
}

.sidebar-nav li a:hover { 
    background-color: rgba(191, 163, 111, 0.1); 
    color: #ffffff; 
    border-right-color: var(--accent-gold); 
    transform: translateX(-5px); 
}

.sidebar-nav li a:hover .fa-fw { 
    transform: rotate(15deg) scale(1.1); 
    color: var(--accent-gold-light); 
}

.sidebar-nav li a.active { 
    background-color: rgba(191, 163, 111, 0.15); 
    color: var(--accent-gold-light); 
    border-right-color: var(--accent-gold-light); 
    font-weight: 700; 
    transform: translateX(-5px); 
}

.sidebar-nav li a .fa-fw { 
    width: 20px; 
    text-align: center; 
}

.main-content { 
    margin-right: 280px; 
    padding: 20px 50px 50px 50px; 
    width: calc(100% - 280px); 
}

.content-section { 
    background-color: var(--bg-light); 
    border: 1px solid var(--border-color); 
    border-radius: 12px; 
    padding: 30px 40px; 
    margin-bottom: 40px; 
    box-shadow: 0 8px 25px var(--shadow-color); 
    scroll-margin-top: 20px; 
    opacity: 0; 
    transform: translateY(30px); 
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; 
}

.content-section.is-visible { 
    opacity: 1; 
    transform: translateY(0); 
}

h2 { 
    font-family: var(--font-display);
    font-size: 2.5em; 
    color: #ffffff; 
    margin-top: 0; 
    padding-bottom: 15px; 
    border-bottom: 1px solid var(--border-color); 
    font-weight: 900; 
    display: flex;
    align-items: center;
    gap: 15px;
}

h3 { 
    font-family: var(--font-display);
    font-size: 1.8em; 
    color: var(--accent-gold-light); 
    border-bottom: none; 
    margin-top: 30px; 
    font-weight: 700; 
}

.protocol-table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 25px; 
}

.protocol-table th, .protocol-table td { 
    padding: 15px; 
    text-align: right; 
    border-bottom: 1px solid var(--border-color); 
    vertical-align: middle;
}

.protocol-table thead th { 
    background-color: rgba(191, 163, 111, 0.05); 
    color: var(--accent-gold); 
    font-size: 1.1em; 
}

.protocol-table tbody tr { 
    transition: background-color 0.3s ease; 
}

.protocol-table tbody tr:nth-child(even) { 
    background-color: rgba(0,0,0,0.15); 
}

.protocol-table tbody tr:hover { 
    background-color: rgba(191, 163, 111, 0.05); 
}

.admin-form { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px; 
    margin-top: 20px; 
    padding: 20px; 
    background-color: var(--bg-dark); 
    border-radius: 8px; 
    border: 1px solid var(--border-color); 
}

.admin-form input, .admin-form select, .admin-form textarea { 
    flex-grow: 1; 
    padding: 12px; 
    border-radius: 6px; 
    border: 1px solid var(--border-color); 
    background-color: var(--bg-light); 
    color: var(--text-primary); 
    font-family: var(--font-primary); 
}

.admin-form label {
    flex-basis: 100%;
    margin-bottom: -10px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.admin-form input[type="date"] {
    flex-basis: 30%;
}

.admin-btn { 
    padding: 12px 20px; 
    border: none; 
    background-color: var(--accent-gold); 
    color: var(--bg-dark); 
    font-weight: bold; 
    border-radius: 6px; 
    cursor: pointer; 
    transition: background-color 0.3s; 
    font-family: var(--font-primary);
}

.admin-btn:hover { 
    background-color: var(--accent-gold-light); 
}

.admin-btn.logout { 
    background-color: #d9534f; 
    color: white; 
}

.admin-table td .action-btn { 
    background: none; 
    border: none; 
    cursor: pointer; 
    font-size: 1.2em; 
    margin: 0 5px; 
    transition: color 0.3s; 
}

.action-btn.edit-btn { color: var(--accent-gold-light); } 
.action-btn.edit-btn:hover { color: white; }
.action-btn.delete-btn { color: var(--error-color); } 
.action-btn.delete-btn:hover { color: #ff7875; }
.action-btn.promote-btn { color: var(--success-color); } 
.action-btn.promote-btn:hover { color: #5cb85c; }
.action-btn.demote-btn { color: var(--error-color); } 
.action-btn.demote-btn:hover { color: #ff7875; }

.mobile-menu-toggle { 
    display: none; 
}

#menu-checkbox { 
    display: none; 
}

.stats-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px; 
    margin-bottom: 30px; 
}

.stat-card { 
    background-color: var(--bg-dark); 
    padding: 20px; 
    border-radius: 8px; 
    border: 1px solid var(--border-color); 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    transition: transform 0.2s, box-shadow 0.2s; 
}

.stat-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 5px 15px rgba(191, 163, 111, 0.1); 
}

.stat-card .icon { 
    font-size: 2.5em; 
    color: var(--accent-gold); 
}

.stat-card .info h4 { 
    margin: 0; 
    font-size: 1em; 
    color: var(--text-secondary); 
}

.stat-card .info p { 
    margin: 0; 
    font-size: 1.8em; 
    font-weight: 700; 
    color: var(--text-primary); 
}

.admin-tabs, .content-tabs { 
    display: flex; 
    border-bottom: 1px solid var(--border-color); 
    margin-bottom: 25px; 
    flex-wrap: wrap;
}

.content-tabs.sub-tabs {
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #3a352e;
}

.content-tabs.sub-tabs .tab-btn {
    font-size: 1em;
    padding: 10px 20px;
}

.tab-btn { 
    padding: 12px 25px; 
    cursor: pointer; 
    background: none; 
    border: none; 
    color: var(--text-secondary); 
    font-family: var(--font-primary); 
    font-size: 1.1em; 
    font-weight: 500; 
    border-bottom: 3px solid transparent; 
    transition: color 0.3s, border-color 0.3s; 
}

.tab-btn:hover { 
    color: var(--text-primary); 
}

.tab-btn.active { 
    color: var(--accent-gold-light); 
    border-bottom-color: var(--accent-gold-light); 
    font-weight: 700; 
}

.tab-content, .tab-pane { 
    display: none; 
}

.tab-content.active, .tab-pane.active { 
    display: block; 
}

.roster-rank-group {
    margin-bottom: 40px;
}
.roster-rank-title {
    font-family: var(--font-display);
    font-size: 1.8em;
    color: var(--accent-gold-light);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.detailed-roster-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}
.detailed-roster-table thead th {
    background-color: rgba(191, 163, 111, 0.1);
    color: var(--accent-gold);
    padding: 12px;
    text-align: right;
    border-bottom: 2px solid var(--border-color);
}
.detailed-roster-table tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}
.detailed-roster-table tbody tr:last-child td {
    border-bottom: none;
}
.detailed-roster-table tbody tr:hover {
    background-color: rgba(191, 163, 111, 0.05);
}

.vacant-slot td {
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.6;
}

.leadership-row {
    background-color: rgba(191, 163, 111, 0.1) !important;
    border-top: 1px solid var(--accent-gold);
    border-bottom: 1px solid var(--accent-gold) !important;
}
.leadership-row td {
    font-weight: bold;
    color: var(--accent-gold-light);
}
.leadership-row td:nth-child(2) {
    font-size: 1.1em;
}
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 8px;
}
.status-dot.active { background-color: var(--success-color); }
.status-dot.on_leave { background-color: var(--text-secondary); }

.violation-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

.violation-cell > * {
    margin: 0;
}

.violation-select {
    flex: 1 1 220px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: var(--font-primary);
}

.violation-fine-input {
    flex: 0 1 110px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: var(--font-primary);
    text-align: center;
}

.violation-fine-input::-webkit-outer-spin-button,
.violation-fine-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.violation-fine-input[type=number] {
    -moz-appearance: textfield;
}

.violation-punishment-display {
    flex: 0 1 auto;
    padding: 10px 18px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
    color: var(--accent-gold-light);
    font-size: 0.95em;
    min-width: 130px;
    white-space: nowrap;
    font-weight: 700;
}

.add-violation-btn {
    flex-shrink: 0;
    padding: 10px;
    font-size: 1.3em;
    line-height: 1;
}

.roles-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.roles-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95em;
    transition: color 0.2s;
}

.roles-checkbox-group label:hover {
    color: var(--accent-gold-light);
}

.roles-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-gold);
    cursor: pointer;
}

.roles-checkbox-group label.disabled {
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.6;
}

.presentation-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.presentation-slide {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease-in-out;
    text-align: center;
}

.presentation-slide.active {
    display: block;
}

.course-slide-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.course-slide-image:hover {
    transform: scale(1.02);
}

.presentation-nav {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#slide-counter {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2em;
    color: var(--text-secondary);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-header-special {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.section-header-special h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin: 0;
}
.section-header-special i {
    font-size: 1.5em;
    color: var(--text-secondary);
}

.penalties-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    font-size: 0.9em;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}
.penalties-table thead th {
    padding: 12px;
    font-weight: 700;
    text-align: center;
    border-left: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.penalties-table thead th:last-child {
    border-left: none;
}
.penalties-table thead th:first-child {
    background-color: #4a443a;
    color: var(--accent-gold-light);
}
.penalties-table thead th:not(:first-child) {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
}
.penalties-table tbody td {
    padding: 12px;
    text-align: center;
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    vertical-align: middle;
}
.penalties-table tbody td:last-child {
    border-left: none;
}
.penalties-table tbody tr:nth-child(even) {
    background-color: rgba(0,0,0,0.15);
}
.penalties-table tbody td:first-child {
    font-weight: 700;
    background-color: rgba(191, 163, 111, 0.1);
    color: var(--accent-gold-light);
}

.clause-group-container {
    margin-bottom: 30px;
}
.clause-group-title {
    background-color: #3a352e;
    color: var(--accent-gold-light);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.clause-item {
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-right: 4px solid var(--accent-gold);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease-in-out;
}
.clause-item:hover {
    background-color: rgba(191, 163, 111, 0.08);
    transform: translateX(-5px);
}
.clause-item-number {
    font-family: 'Courier New', Courier, monospace;
    color: var(--text-primary);
    font-size: 1.4em;
    font-weight: 700;
    background-color: rgba(0,0,0,0.3);
    padding: 5px 12px;
    border-radius: 4px;
}
.clause-item-desc {
    flex-grow: 1;
    padding-left: 20px;
}

.clauses-notices-box {
    margin-top: 40px;
    padding: 25px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.clauses-notices-box h3 {
    color: #e74c3c;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.clauses-notices-box ul {
    padding-right: 20px;
    list-style: none;
    margin: 0;
}
.clauses-notices-box ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(74, 68, 58, 0.5);
}
.clauses-notices-box ul li:last-child {
    border-bottom: none;
}
.clauses-notices-box ul li::before {
    content: "\f0da";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent-gold);
    margin-left: 10px;
}

@media (max-width: 992px) { 
    .mobile-menu-toggle { 
        display: block; 
        background-color: var(--bg-light); 
        color: var(--text-primary); 
        text-align: center; 
        padding: 15px; 
        font-size: 1.2em; 
        font-weight: 700; 
        cursor: pointer; 
        border-bottom: 2px solid var(--accent-gold); 
        position: fixed; 
        top: 0; 
        right: 0; 
        left: 0; 
        z-index: 1100; 
    } 
    .sidebar { 
        transform: translateX(100%); 
        width: 280px; 
        height: 100vh; 
        position: fixed; 
        box-shadow: -10px 0 25px rgba(0,0,0,0.5); 
        border-left: 2px solid var(--accent-gold); 
    } 
    #menu-checkbox:checked ~ .container .sidebar { 
        transform: translateX(0); 
    } 
    .main-content { 
        margin-right: 0; 
        width: 100%; 
        padding: 80px 20px 20px 20px; 
        box-sizing: border-box; 
    } 
    h2 { 
        font-size: 1.8em; 
    } 
    .stats-container {
        grid-template-columns: 1fr;
    }
    .violation-cell {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 80px 15px 15px 15px;
    }
    .content-section {
        padding: 20px;
    }
    h2 {
        font-size: 1.6em;
    }
    h3 {
        font-size: 1.4em;
    }
    .admin-form {
        flex-direction: column;
    }
    .admin-form input, .admin-form select, .admin-form textarea {
        width: 100%;
        box-sizing: border-box;
    }
    .protocol-table, .admin-table, .detailed-roster-table, .penalties-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.8s ease-out;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    width: 150px;
    height: 150px;
    animation: pulse 2.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

#interactive-map {
    height: 550px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 20px;
    background-color: var(--bg-dark);
}

.leaflet-popup-content-wrapper {
    background-color: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.leaflet-popup-tip {
    background-color: var(--bg-light);
}

.leaflet-popup-content h3 {
    color: var(--accent-gold-light);
    margin: 0 0 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

.leaflet-popup-content p {
    margin: 0;
    line-height: 1.6;
}

.leaflet-container a.leaflet-popup-close-button {
    color: var(--text-secondary);
}
.leaflet-container a.leaflet-popup-close-button:hover {
    color: var(--text-primary);
}

.custom-map-icon {
    background-color: rgba(191, 163, 111, 0.8);
    border: 2px solid var(--accent-gold-light);
    border-radius: 50%;
    width: 20px !important;
    height: 20px !important;
    box-shadow: 0 0 10px rgba(191, 163, 111, 0.7);
    transition: transform 0.2s ease;
}
.custom-map-icon:hover {
    transform: scale(1.2);
}

.leaflet-bar {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    border-radius: 6px;
}

.leaflet-bar a {
    background-color: var(--bg-light);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease-in-out;
}

.leaflet-bar a:first-child {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
.leaflet-bar a:last-child {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-bottom: none;
}

.leaflet-bar a:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
}

.leaflet-control-attribution {
    display: none !important;
}
/* ================================================= */
/* ===== بداية: أكواد النوافذ المنبثقة المفقودة ===== */
/* ================================================= */

/* الأنماط الأساسية لجميع النوافذ المنبثقة وشاشات الدخول */
.login-screen, .modal-overlay, .lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 12, 10, 0.9); /* --bg-dark مع شفافية */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none; /* لمنع التفاعل مع النافذة وهي مخفية */
    transition: opacity 0.3s ease-in-out;
}

/* إخفاء شاشات تسجيل الدخول افتراضياً (سيتم إظهارها عبر جافاسكريبت) */
#admin-login-screen, #mp-login-screen, #mj-login-screen {
    display: none;
}

/* عند تفعيل نافذة منبثقة عبر إضافة كلاس .show */
.modal-overlay.show, .lightbox-overlay.show {
    opacity: 1;
    pointer-events: auto; /* السماح بالتفاعل مع النافذة الظاهرة */
}

/* تنسيقات خاصة بمحتوى شاشة تسجيل الدخول */
.login-screen {
    flex-direction: column;
    gap: 15px;
}
.login-logo {
    width: 120px;
    height: 120px;
}
.login-title {
    font-family: var(--font-display);
    font-size: 2.5em;
    color: var(--accent-gold-light);
    margin: 0;
}
.login-subtitle {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin: 0;
}

/* تنسيق صندوق المحتوى داخل النافذة المنبثقة */
.modal-content {
    background-color: var(--bg-light);
    padding: 30px 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow-color);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}
.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    margin-top: 0;
    color: var(--accent-gold-light);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* تنسيقات خاصة بنافذة عرض الصور (Lightbox) */
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}
.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}
.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2.5em;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

/* تنسيق إشعارات التنبيه (Toast) */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.toast-notification {
    padding: 12px 25px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* تنسيق صور العتاد في الجداول */
.equipment-image {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    background-color: var(--bg-dark);
}

/* تنسيق زر النسخ في صندوق الأكواد */
.pre-wrapper {
    position: relative;
    margin-top: 20px;
}
.pre-wrapper pre {
    background-color: var(--bg-dark);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--text-secondary);
}
.copy-btn-professional {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.copy-btn-professional:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
}
.copy-btn-professional .fa-check {
    display: none;
}
.copy-btn-professional.copied .fa-copy {
    display: none;
}
.copy-btn-professional.copied .fa-check {
    display: inline-block;
    color: var(--success-color);
}

/* =============================================== */
/* ===== نهاية: أكواد النوافذ المنبثقة المفقودة ===== */
/* =============================================== */