/* === General Styles === */
body {
    background-color: #f8f9fa;
    color: #333333;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

span {
    display: inline !important;
    color: inherit !important;
}

.hidden-container {
    display: none !important;
}


/* === Navbar Styling === */
.navbar {
    background-color: #567b93; /* Match Primary Color */
    padding: 10px 20px;
}

.navbar-brand img {
    max-height: 50%; /* Ensures logo fits well */
    max-width: 50%;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
}

    .navbar-nav .nav-link:hover {
        color: #ffd700; /* Optional Highlight */
    }

.navbar-toggler {
    border: none; /* Optional: Remove border */
    outline: none;
}

.navbar-toggler-icon {
    color: white !important; /* Make the icon visible on dark backgrounds */
    display: inline-block !important;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.9); /* Optional: Dark background for menu */
        padding: 10px;
    }
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: .1rem;
    margin-right: .1rem;
}

.pagination {
    flex-wrap: wrap;
    justify-content: center;
}


/* === Container === */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* === Inputs & Forms === */
.form-control, .form-select {
    border-radius: 5px;
}

/* Mobile-friendly input class */
.mobile-friendly-input {
    font-size: 1.1rem;
    padding: 0.75rem;
    border-radius: 5px;
    border: 1px solid #ced4da;
}

label {
    font-weight: 600;
    color: #0056b3;
}

/* === Buttons === */
.btn-primary {
    background-color: #007bff;
    border-color: #0056b3;
}

    .btn-primary:hover {
        background-color: #004085;
        border-color: #003366;
    }

/* Activity button for large touch targets */
.activity-button {
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 4px;
}

/* === Volunteer List (Overseer Subordinates) === 
#overseerSubordinatesList {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#overseerSubordinatesList li {
    font-size: 1rem;
    padding: 0.75rem;
    border: 1px solid #ddd;
    margin-bottom: 5px;
    border-radius: 4px;
    background-color: #f8f9fa;
    cursor: pointer;
}
    */

/* Highlight selected volunteer */
.selected-volunteer {
    background-color: #ffe4b3; /* Light orange */
    font-weight: bold;
}

/* === Tables === */
.table {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

    .table thead {
        background-color: #0056b3;
        color: white;
    }

    .table tbody tr:hover {
        background-color: #f1f1f1;
    }

/* === Navbar, Footer, etc. remain unchanged === */

/* === Footer === */
.footer {
    background-color: #567b93;
    color: white !important;
    text-align: center;
    padding: 15px 0;
}

    .footer a, .footer button {
        color: white !important;
    }

/* === Modal adjustments === */
@media (max-width: 576px) {
    .modal-dialog {
        max-width: 90%; /* Ensure modal is fully visible on small screens */
    }
}

/* === Spacing Utility Classes === */
.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.my-3 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

/* === Scanner Box Styles === */
.scanner-box {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
}

/* === Scan Status Message === */
.status {
    margin-top: 1rem;
    color: green;
    font-weight: bold;
}

    .status.success {
        color: green;
        font-weight: bold;
    }

    .status.error {
        color: red;
        font-weight: bold;
    }

.scan-mode-bar {
    background: #212529;
    color: #fff;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    text-align: center;
    font-weight: 500;
    margin-top: 2rem;
    margin-bottom: -1rem;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.shake {
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    50% {
        transform: translateX(6px);
    }

    75% {
        transform: translateX(-4px);
    }

    100% {
        transform: translateX(0);
    }
}

.blink-border {
    animation: blink 0.7s step-start 3;
    border: 2px solid red !important;
}

@keyframes blink {
    50% {
        border-color: red;
    }

    100% {
        border-color: transparent;
    }
}


/* === Mobile Media Query Adjustments === */
@media (max-width: 576px) {
    .mobile-friendly-input {
        font-size: 1rem;
        padding: 0.65rem;
    }

    .activity-button {
        font-size: 1rem;
        padding: 0.75rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    #overseerSubordinatesList li {
        font-size: 0.95rem;
        padding: 0.65rem;
    }
}



