﻿/* GENERAL RESET / BASE STYLING */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background-color: #fff;
    color: #333;
}

/* NAVIGATION BAR */
.navbar .logo a {
    display: inline-block;
}

    .navbar .logo a:hover {
        background-color: transparent;
    }
    .navbar a {
        color: black;
        text-decoration: none;
        font-weight: 500;
    }

        .navbar a:hover {
            background-color: #fecd00;
            color: black;
        }

    .navbar .logo {
        font-size: 1.4rem;
        font-weight: bold;
    }
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

nav {
    display: flex;
    gap: 1rem;
    z-index:999999999999;
}
    nav a {
        display: block;
        padding: 10px 14px;
        text-decoration: none;
        color: #333;
        font-weight: 500;
        border-radius: 4px;
    }

        nav a:hover {
            background-color: #fecd00;
            color: black;
        }

.user-section {
    display: flex;
}


/* --- Mobile View --- */
@media (max-width: 600px) {
    .calendar-header {
        flex-wrap: nowrap;
        align-items: flex-start;
    }


        .calendar-header h3 {
            font-size: 0.95rem;
            max-width: 100%;
            text-align:left!important;
        }

    .calendar-export-buttons {
        text-align:left!important;
    }
}
    @media (max-width: 768px) {
        .navbar nav a.btn {
            display: block;
            margin: 0.5rem 0;
            background-color: transparent;
            color: #333;
            border: 1px solid #fecd00;
            text-align: center;
            font-weight: 500;
        }

            .navbar nav a.btn:hover {
                background-color: #fecd00;
                color: #000;
            }
    
    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #f9f9f9;
        padding: 0.75rem 1rem;
    }

        nav.open {
            display: flex;
        }

    .user-section {
        width: 100%;
        justify-content: space-between;
    }
}

/* BUTTONS */
.btn {
    border: none;
    background-color: #fecd00;
    color: black;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .btn:hover {
        background-color: #e6b800;
    }

/* CONTENT WRAPPER */
.content-wrapper {
    max-width: 1000px;
    padding: 1rem;
    margin:0px auto;
}

/* HEADERS */
h1, h2, h3 {
    color: #111;
}

a {
    color: #d17c00;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }




.login-page {
    display: flex;
    justify-content: center;
    align-items: start;
    padding: 2rem;
}

.login-card {
    max-width: 500px;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

    .login-card h2 {
        margin-bottom: 1rem;
    }

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}

.input {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn {
    background-color: #fecd00;
    color: black;
    font-weight: bold;
    border: none;
    border-radius: 4px;

    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

    .btn:hover {
        background-color: #e0b800;
    }
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.forgot-link {
    font-size: 0.9rem;
    text-decoration: none;
    color: #666;
}

    .forgot-link:hover {
        text-decoration: underline;
        color: #000;
    }
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}


.club-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.club-card {
    flex: 1;
    min-width: 320px;
    max-width: 600px;
    overflow: hidden;
    background: white;
}
.club-logo {
    height: 60px;
    margin: 1rem auto 0.5rem auto;
    display: block;
    max-width: 160px;
    object-fit: contain;
}

.club-content {
    padding: 0 1.2rem 0.8rem;
    text-align: center;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

    .club-content h3 {
        margin: 0.5rem 0 0.3rem;
        font-size: 1.2rem;
        color: #333;
        line-height: 1.2;
        max-height: 2.6em; /* Limits to 2 lines */
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

.club-content p {
    margin: 0.2rem 0 0.6rem;
    color: #666;
    font-size: 0.95rem;
}

.club-content a {
    color: #007acc;
    text-decoration: none;
    font-size: 0.95rem;
}

.club-content a:hover {
    text-decoration: underline;
}


.club-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-width: 600px;
    background: white;
}

.club-logo {
    height: 60px;
    margin: 1rem auto 0.5rem auto;
    display: block;
    max-width: 160px;
    object-fit: contain;
}


    .club-content h3 {
        margin: 0.5rem 0 0.3rem;
        font-size: 1.3rem;
        color: #333;
    }

    .club-content p {
        margin: 0.2rem 0 0.6rem;
        color: #666;
        font-size: 0.95rem;
    }

    .club-content a {
        color: #007acc;
        text-decoration: none;
        font-size: 0.95rem;
    }

        .club-content a:hover {
            text-decoration: underline;
        }

.club-photo {
    width: 100%;
    height: 200px; /* or another fixed height */
    object-fit: cover; /* ensures it fills the box, cropping if needed */
    border-top: 1px solid #ddd;
    display: block;
}
.club-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    background: white;
    width: 300px;
    height: 380px; /* Fixed height to keep cards aligned */
    position: relative;
}


.edit-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: #fecd00;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease-in-out;
}

    .edit-btn:hover {
        background-color: #e0b800;
    }
.club-content.no-intro {
    padding-bottom: 0.6rem;
}
.club-editor {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.edit-panel {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}


.club-card-preview {
    min-height: 480px;
    width: 100%;
    max-width: 600px;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 1rem;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.clubs-header, .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.calendar-logo {
    height: 40px;
    max-width: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.calendar-header h3 {
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align:center;
}

.calendar-date {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
}

    .add-club, .add-calendarentry {
        font-size: 0.95rem;
        padding: 0.45rem 1rem;
    }
.calendar-body {
    padding-bottom: 0.5rem;
}
.calendar-card, .member-card {
    padding: 1rem;
}
    .calendar-card p, .member-card p {
        margin: 0.6rem 0 0.5rem;
        font-size: 0.95rem;
    }
.calendar-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.calendar-details, .member-details {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.calendar-card:hover, .member-details:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.calendar-date {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
}

.calendar-logo {
    height: 28pt;
    max-width: 100px;
    object-fit: contain;
}
.calendar-card h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #444;
}
.base-card {
    background: #f8f8f8;
    position: relative;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    border: 1px solid #ddd;
    border-radius: 12px;
    padding-bottom: 0;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}
.base-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.content-card {
    position: relative;
    padding-bottom: 0;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.content-card-edit {
    position: relative;
    padding-bottom: 0;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.unified-edit-btn {
z-index:99999999999;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #fecd00;
    border: none;
    padding: 0.4rem;
    border-radius: 50%;
    cursor: pointer;
}
.calendar-editor, .member-editor {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ql-container {
    min-height: 250px;
}

    .calendar-editor label {
        font-weight: bold;
        margin-bottom: 0.25rem;
    }

    .calendar-editor .input,
    .calendar-editor textarea {
        padding: 0.5rem;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 4px;
    }
.calendar-detail-btn {
    margin-top:3pt;
    float:right;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.calendar-details .calendar-logo {
    margin: 0;
}
.calendar-details .calendar-export-buttons{
    text-align:right;
}
.calendar-export-buttons {
    /* margin-top: 0.5rem; */
    /* display: flex
; */
    /* justify-content: flex-end; */
    /* gap: 0.5rem; 
    float: left;*/
    display: inline-block;
    width: 100%;
    text-align: right;
}
.calendar-export-buttons a {
    display:inline-block;
}
.btn-small {
    font-size: 0.85rem;
}
.calendar-action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

.left-buttons, .right-buttons {
    display: flex;
    gap: 1rem;
}

.btn-cancel {
    background-color: #f0f0f0;
    color: #333;
}

    .btn-cancel:hover {
        background-color: #ccc;
    }

.btn-delete {
    background-color: #ff5c5c;
    color: white;
}

    .btn-delete:hover {
        background-color: #d64545;
    }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-buttons {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    font-size: 1rem;
}

.styled-checkbox, .styled-radio {
    width: 20px;
    height: 20px;
    accent-color: #fecd00; /* VVMV yellow */
    cursor: pointer;
}
.styled-radio {
    width: 20px;
    height: 20px;
    appearance: none;
    border-radius: 50%;
    border: 2px solid #fecd00;
    background-color: white;
    cursor: pointer;
    position: relative;
    margin-right: 8px;
}

    .styled-radio:checked::before {
        content: '';
        position: absolute;
        top: 3px;
        left: 3px;
        width: 10px;
        height: 10px;
        background-color:rgba(0,0,0,0.6);
        border-radius: 50%;
    }

.unpublished-badge {
    display: inline-block;
    background-color: red;
    color: white;
    font-weight: bold;
    padding: 4pt;
    border-radius: 6px;
    width: 100%;
    text-align: center;
}

.custom-marker .marker-circle {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .custom-marker .marker-circle::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(254, 205, 0, 0.3);
        border-radius: 50%;
        z-index: 0;
    }

    .custom-marker .marker-circle img {
        position: relative;
        z-index: 1;
        width: 80%;
        height: 80%;
        object-fit: contain;
    }
.survey-wrapper {
    max-width: 720px;
    margin: 0pt auto;
    background: #f8f8f8;
    padding: 10pt;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-family: 'Segoe UI', sans-serif;
}

    .survey-wrapper h2 {
        font-size: 1.8em;
        margin:0pt;
        margin-bottom: 20px;
        color: #333;
    }
    .survey-wrapper h2, .survey-wrapper h2+p{
        text-align: center;
    }
.survey-question-hidden
{
    display:none!important;
}

.survey-question {
    margin-bottom: 10pt;
    padding: 10pt;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
}

    .survey-question label {
        display: block;
        margin-bottom: 10px;
        font-size: 1.05em;
        color: #222;
        width:90%;
    }
    .survey-question textarea {
        min-height: 45pt;
    }


    .survey-question input[type="text"], .survey-question textarea {
        width: 100%;
        padding: 8px 10px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 1em;
        box-sizing: border-box;
    }

    .survey-question input[type="checkbox"],
    .survey-question input[type="radio"] {
        margin-right: 8px;
    }
    .survey-question > label {
        font-weight: bold;
    }

.survey-option {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping to new line */
    cursor:pointer;
}


.survey-submit {
    display: inline-block;
    background-color: #fecd00;
    color: #000;
    padding: 10px 20px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}
    .survey-submit:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }
    .survey-submit:hover {
        background-color: #e5b800;
    }
.survey-thankyou {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

    .survey-thankyou h2 {
        color: #333;
        margin-bottom: 16px;
    }

    .survey-thankyou p {
        color: #555;
        font-size: 1.1rem;
    }

.admin-question {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 10px;
    margin: 12px 0;
}

    .survey-admin-list li {
        padding: 12px;
        margin-bottom: 10px;
        background: #f9f9f9;
        border: 1px solid #ddd;
        border-left: 4px solid #fecd00;
        border-radius: 6px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .survey-admin-list a {
        text-decoration: none;
        color: #0077cc;
        margin-left: 12px;
    }
.admin-question {
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #ddd;
    border-left: 5px solid #fecd00;
    background: #fff;
    border-radius: 5px;
}

    .admin-question p {
        margin: 0 0 8px 0;
    }

    .admin-question ul {
        padding-left: 20px;
        border: 1px solid #ddd;
        /* border-left: 5px solid #fecd00; */
        background: #fff;
        border-radius: 5px;
        padding: 5pt;
    }
        .admin-question ul > ul
        {
            border:none;
        }
        .admin-question li {
            margin-bottom: 5px;
            list-style-type: none;
            border-bottom: 1px solid #ddd;
            padding: 5pt;
        }
    .admin-question ul li {
        margin-bottom: 5px;
        list-style-type: none;
        border-bottom: 1px solid #ddd;
        padding: 5pt;
    }

    .admin-question ul > li:last-of-type {
        border-bottom: none;
    }
.survey-create-form {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

    .survey-create-form h2 {
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }


    .survey-create-form label {
        font-weight: 600;
        margin-top: 1rem;
        display: block;
    }
    .other-toggle-row label
    {
        margin-top:0;
        margin-bottom:1rem;
    }

    .survey-create-form input[type="text"], .survey-create-form textarea, .survey-create-form select, input.input {
        width: 100%;
        padding: 0.5rem;
        margin-top: 0.25rem;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
        font-size: 1rem;
    }

.question-box {
    border: 1px solid #eee;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    background-color: #fafafa;
}

    .question-box > div {
        display: flex;
        gap: 1rem;
        align-items: center;
    }
.question-block {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fdfdfd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    position: relative;
}


.option-list {
    margin-top: 0.5rem;
}

    .option-list input[type="text"] {
        width: calc(100% - 36px);
        display: inline-block;
    }

    .option-list button {
        margin-left: 0.25rem;
        background: none;
        border: none;
        color: #c00;
        font-weight: bold;
        cursor: pointer;
    }

.btn-yellow {
    background-color: #fecd00;
    color: black;
    font-weight: bold;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
}

    .btn-yellow:hover {
        background-color: #e5bc00;
    }

.option-list {
    margin-top: 0.5rem;
}

.options-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin:10pt;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .option-item .input {
        flex: 1;
    }


.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}


    .option-item input[type="text"] {
        flex: 1;
        padding: 0.4rem;
        font-size: 0.95rem;
        border-radius: 4px;
        border: 1px solid #ccc;
    }

    .option-item button {
        margin-left: 6px;
        border: none;
        border-radius: 4px;
        padding: 0.4rem 0.6rem;
        font-weight: bold;
        cursor: pointer;
        transition: background 0.2s;
    }

        .option-item button:hover {
            background: #ddd;
        }

.option-controls {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.4rem;
}

.question-controls {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.6rem;
}


.btn-add-option {
    background-color: #eee;
    color: #000;
}

.btn-remove-question {
    background-color: #f3f3f3;
    color: #c00;
}

.btn-add-option:hover {
    background-color: #ddd;
}

.btn-remove-question:hover {
    background-color: #fdd;
}

.submenu {
    position: relative;
    display: inline-block;
    margin-left: 1rem;
}

.submenu-title {
    cursor: pointer;
    font-weight: 600;
    padding: 0.5rem;
    display: inline-block;
}

.submenu-items {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 180px;
    margin-top: 4px;
}

.submenu:hover .submenu-items {
    display: block;
}

.submenu-items a {
    display: block;
    padding: 10px 14px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

    .submenu-items a:hover {
        background-color: #fecd00;
        color: black;
    }
.attachment-upload input[type="file"] {
    margin-top: 0.5rem;
    display: block;
}

.attachment-upload ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
}

.attachment-upload li {
    margin-bottom: 0.25rem;
}

.paperclip-style {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
}

    .paperclip-style li {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        margin-bottom: 0.5rem;
        background: #f9f9f9;
        padding: 0.2rem 0.2rem;
        border-radius: 6px;
        border: 1px solid #eee;
    }

.clip-icon {
    font-size: 1.1rem;
    color: #555;
}

.btn-icon {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1rem;
    color: #c00;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

    .btn-icon:hover {
        color: #900;
    }
.clip-icon {
    font-size: 1.1rem;
    color: #666;
    min-width: 1.4rem;
    text-align: center;
}

.shared-card {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.analytics-table-wrapper {
    background: #fff;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

    .analytics-table th,
    .analytics-table td {
        padding: 0.6rem 1rem;
        border-bottom: 1px solid #eee;
        text-align: left;
    }

    .analytics-table th {
        background-color: #f8f8f8;
        font-weight: bold;
        color: #333;
    }

    .analytics-table tr:hover {
        background-color: #fdfae6;
    }
.access-denied {
    background: #fff2f2;
    padding: 2rem;
    border: 1px solid #f5c2c7;
    border-radius: 8px;
    text-align: center;
    color: #a33;
    margin-top: 2rem;
}
.nav-node {
    padding: 0.5rem;
    border: 1px solid #eee;
    margin: 0.3rem 0;
    background: #fff;
    border-radius: 6px;
    list-style: none;
    position: relative; /* ✅ Required for z-index to take effect */
    z-index: 1; /* ⛔ If this is > 0, it may block children */
}
    .nav-node > ul {
        position: relative;
        z-index: 2;
    }
    .nav-node.drop-target {
        z-index: 10; /* ✅ Only apply boost to the actual hovered one */
    }

    .nav-node:hover {
        background: #f5f5f5;
    }
ul.nav-tree, ul.nav-tree ul {
    list-style: none;
    margin: 0;
    padding-left: 1rem;
}

.nav-node {
    position: relative;
    padding: 0.25rem;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

    .nav-node.drop-target {
        border: 2px dashed orange;
        background-color: #fff8e1;
        z-index: 5;
    }

    .nav-node .nav-actions {
        float: right;
    }

.drag-handle {
    cursor: grab;
    margin-right: 0.5rem;
}


.nav-actions {
    float: right;
}
    .nav-actions .btn-small, .nav-order .btn-small{
    font-size: 0.85rem;
    background: none;
    border: none;
    border-radius: 4pt;
    margin: 1pt;
    padding: 1pt;
}


.drag-handle {
    cursor: move;
    display: inline-block;
    margin-right: 8px;
    color: #888;
    user-select: none;
}
.nav-node.drop-target {
    border: 2px dashed #fecd00;
    background: #fffbe6;
}
.nav-node, .drag-handle, .nav-actions {
    user-select: none;
}
.drop-target {
    outline: 2px dashed #fecd00;
    background: #fff8d1;
}
.revision-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.revision-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-bottom: 1px solid #ddd;
}

    .revision-item.active {
        background-color: #fff9ec;
    }

.revision-icon {
    width: 2em;
    text-align: center;
}

.revision-date {
    flex-grow: 1;
    margin-left: 8px;
}

.revision-actions {
    display: flex;
    gap: 0.5rem;
}

.other-textbox {
    width: 100%;
}
.question-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}
.copy-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-confirm {
    color: green;
    font-size: 0.9rem;
}
.table-row-danger {
    background-color: #f8d7da;
    color: #842029;
}

.table-row-warning {
    background-color: #fff3cd;
    color: #664d03;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
    padding: 0.35em 0.6em;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
    padding: 0.35em 0.6em;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}
.ipban {
    text-align: right;
    font-weight: 500;
    color: #6c757d; /* subtle grey tone */
}

.ipbantable {
    margin: 0 auto;
    width: 100%;
    max-width: 1000px;
}
.inactive-member {
    background-color: #fff4f4;
    border-left: 5px solid #e74c3c;
    opacity: 0.85;
}
.rating-hint {
    margin-top: 0.5rem;
    font-style: italic;
    color: gray;
}
.rating-value {
    width: 50%;
    display: inline-block;
    padding: 10pt;
}
input[type=range] {
    accent-color: #f6c300; /* Modern browsers: yellow thumb and track */
}
/*
    input[type=range]::-webkit-slider-thumb {
    background: #f6c300;
}

input[type=range]::-webkit-slider-runnable-track {
    background: #fff3b0;
}
*/
.rating-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

    .rating-wrapper input[type=range] {
        flex: 1;
        accent-color: #f6c300;
        max-width: 200px;
    }

.rating-label {
    min-width: 100px;
    font-weight: bold;
    color: #333;
}

.required-indicator {
    color: red;
    margin-left: 4px;
    font-weight: bold;
}

small.mandatoryinfo {
    color: red;
    text-align: right;
    display: block;
    padding: 5pt;
}
small.scalratinginfo, small.checkboxinfo {
    text-align: right;
    display: block;
    padding: 5pt;
}

.row {
    display: flex;
    width: 100%;
}
.col {
    padding: 5pt;
}


.admin-question {
    margin: 24px 0;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
}

    .admin-question + .admin-question {
        margin-top: 28px;
    }

.q-meta {
    margin-left: .5rem;
    font-size: .9rem;
    color: #6b7280;
}

.option-list {
    display: grid;
    gap: 10px;
    margin: 12px 0 4px;
}

.option-row {
    display: grid;
    grid-template-columns: auto 90px 1fr 50px;
    align-items: center;
    gap: 10px;
}

.chip {
    background: #f3f4f6;
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 500;
    white-space: nowrap;
}

.count {
    color: #374151;
    font-variant-numeric: tabular-nums;
}

.bar {
    height: 8px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #93c5fd; /* auto theme color; change if you like */
}

.pct {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: #6b7280;
}

.free-block {
    margin-top: 14px;
    border-top: 1px dashed #e5e7eb;
    padding-top: 12px;
}

.free-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.badge {
    font-size: .8rem;
    background: #eef2ff;
    color: #3730a3;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
}

.badge-muted {
    background: #f3f4f6;
    color: #6b7280;
}

.free-list {
    margin: 0;
    padding-left: 18px;
}

    .free-list li {
        margin: 4px 0;
    }
