/* =========================================================
   GLOBAL PAGE BACKGROUND & LAYOUT
   - Controls full-page background image
   - Ensures full-height layout for all pages
========================================================= */

html,
body {
    margin: 0;
    min-height: 100%;
    background: #000 url('/img/background.png');
    background-repeat: no-repeat;
    background-position: center 12%;
    background-size: cover;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Wrapper ensures footer stays at bottom */
.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main content grows to fill available space */
.content-wrapper {
    flex: 1;
}

/* Footer sticks to bottom when content is short */
footer {
    margin-top: auto;
    width: 100%;
}

/* Map page uses solid black background */
body.map-page {
    background: #000;
}

/* =========================================================
   ADMIN PANEL STYLING
   - White glass panel used for forms and admin sections
========================================================= */

.admin-form-panel {
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

/* Inputs inside admin panel */
.admin-form-panel .form-control,
.admin-form-panel .form-select {
    background: #fff !important;
    color: #212529 !important;
}

/* Labels inside admin panel */
.admin-form-panel .form-label,
.admin-form-panel .form-check-label {
    color: #212529;
    font-weight: 600;
}

/* Agency container block */
.admin-form-panel .agency-container {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    padding: 1rem;
}

/* =========================================================
   MAP CONTAINER
========================================================= */

#map {
    width: 100%;
    height: calc(100vh - 80px);
}

/* =========================================================
   NAVBAR SHIELD LOGO
========================================================= */

.btn-shield-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 6px;
}

.navbar-shield {
    height: 40px;
    width: auto;
    object-fit: contain;

    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
    transition: all .2s ease;
}

/* Hover effect for shield */
.navbar-brand:hover .navbar-shield {
    transform: scale(1.05);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .45));
}

/* Mobile shield size */
@media (max-width: 768px) {
    .navbar-shield {
        height: 34px;
    }
}

/* =========================================================
   PAGE TITLE PANEL
========================================================= */

.page-title-wrapper {
    background: rgba(0, 0, 0, 0.65);
    padding: 25px 20px;
    border-radius: 14px;

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);

    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Main page title */
.page-title {
    color: #fff;
    font-weight: 800;
    font-size: 2.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Subtitle under page title */
.page-subtitle {
    color: #ffc107;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.7rem;
    }

    .page-title-wrapper {
        padding: 18px 15px;
    }
}

/* =========================================================
   BUTTON SELECTION EFFECTS
========================================================= */

.btn-check:checked + .btn {
    border-width: 3px;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .25);
    transform: scale(1.03);
}

.btn-check + .btn img {
    transition: all .2s ease;
}

.btn-check:checked + .btn img {
    transform: scale(1.15);
}

/* =========================================================
   TABLE FORMATTING
========================================================= */

.table {
    font-size: .8rem;
    table-layout: fixed;
    width: 100%;
}

.table th,
.table td {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    vertical-align: middle;
}