:root {
    --primary-color: #6b48ff;
    --primary-light: rgba(107, 72, 255, 0.1);
    --primary-dark: #4831d4;
    --primary-navbar: rgba(107,72,255,1);
    --gradient: linear-gradient(135deg, #6b48ff, #8a63ff);
    --shadow: 0 4px 20px rgba(107, 72, 255, 0.25);
    --text-light: #ffffff;
    --var-bg: #f9f7ff;
}

/* Custom styles for navbar responsiveness */

/* Navbar - Purple Theme */

.navbar {
    background: var(--primary-navbar);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    color: var(--text-light) !important;
    font-weight: 600;
    margin-left:0;
}

.navbar-logo {
    height: 40px;
    width: auto;
    margin-left: 2px;
}


.navbar-nav .nav-link {
    color: var(--text-light) !important;
    padding: 0.5rem 1rem;
    text-align:center;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        color: var(--text-light) !important;
        transform: translateY(-2px);
    }

    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--text-light);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .navbar-nav .nav-link:hover::after {
        width: 60%;
    }

.navbar-toggler {
    border-color: rgba(255,255,255,0.5) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255, 255, 255, 0.8)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Logo Clarity Enhancements */
@media (max-width: 768px) {
    .navbar-logo {
        height: 35px;
        margin-right: 10px;
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 30px;
        margin-right: 8px;
    }

    .navbar-nav {
        background: rgba(107, 72, 255, 0.95);
        padding: 1.2rem;
        border-radius: 0 0 10px 10px;
        margin-top:4px;
    }

        .navbar-nav .nav-link {
            padding: 0.75rem 1rem;
        }
}


.checkbox-container {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: auto;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-check {
    margin-bottom: 10px;
}

    .form-check input[type="checkbox"] {
        margin-right: 10px;
    }

h1, h2, h3, h4, h5, h6, p, a, input, button, label {
    font-family: "Lato";
}

.container {
    background-color: #fff;
    padding: 2px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-top: 5px;
}

h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.form-group label {
    font-weight: bold;
    color: #333;
}

.form-control {
    border-radius: 5px;
    margin-bottom: 5px;
}

.btn {
    border-radius: 5px;
    padding: 10px 20px;
}

#leaderFormContainer {
    margin-top: 20px;
}

.leader-group {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

    .leader-group h5 {
        color: #333;
        font-size: 20px;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .leader-group label {
        font-size: 14px;
        color: #151313;
    }

.form-group.text-center {
    display: flex;
    justify-content: center;
}

.btn-block {
    width: 100%;
}

.invalid-feedback {
    display: none;
    color: red;
}

.alert-success {
    display: none;
}

input.is-invalid {
    border-color: red;
}

.btn-link {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2d2d82;
}

.card-header {
    background-color: #f8f9fa;
    font-size: 1.2rem;
    font-weight: bold;
}

.form-control {
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
    font-size: 1rem;
}

.modal-body {
    font-size: 1.1rem;
}

#submitMessage {
    font-weight: bold;
    margin-left: 10px;
    font-size: 14px;
}

.arrow {
    float: right;
}

.checkbox-container .form-check {
    margin-bottom: 0 !important;
}

.checkbox-container .form-check-label {
    margin-left: 10px;
    font-family: "Lato";
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 0;
}

.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    margin-top: 5px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #555;
}

.mt-2 {
    margin-top: 5px;
}

.table {
    font-size: 14px;
    width: 100%;
}

    .table th, .table td {
        padding: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 1000px) and (min-width: 766px) {
    .table {
        font-size: 13px;
    }

        .table th, .table td {
            padding: 6px;
        }

    .row .col-md-10 {
        width: 80%;
    }

    .row .col-md-2 {
        width: 20%;
    }
}

@media (max-width: 765px) {
    .table {
        font-size: 12px;
    }

        .table th, .table td {
            padding: 4px;
        }

    .row .col-12, .row .col-md-10, .row .col-md-2 {
        width: 100%;
    }
}

@media (max-width: 500px) {
    .table {
        font-size: 11px;
    }

        .table th, .table td {
            padding: 3px;
        }

    .row .col-8 {
        width: 70%;
    }

    .row .col-4 {
        width: 30%;
    }
}

.btn-primary {
    font-size: 14px;
    padding: 8px 10px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .btn-primary {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 576px) {
    .btn-primary {
        font-size: 11px;
        padding: 5px 10px;
    }

    .row .col-8 {
        width: 70%;
    }

    .row .col-4 {
        width: 30%;
    }

    .btn-primary {
        margin-top: 8px;
    }
}

#subregionTable {
    width: 50%;
}

.hidden-row {
    display: none;
}



@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
    }

    #leaderTable th, #leaderTable td {
        font-size: 0.9rem;
        word-wrap: break-word;
    }

    #leaderTable td {
        padding: 10px 5px;
    }

}

