/* Ensure all modal bodies are scrollable and never overflow viewport */
.modal-body {
    overflow-y: auto;
    max-height: 70vh;
}

:root {
    --navbar-height: 56px;
    --sidebar-width: 250px;
}

/* ===== MINIMAL / AUTH LAYOUT ===== */
body.minimal-page-body {
    min-height: 100svh;
    overflow-y: auto;
}

.minimal-page-main {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===== SIDEBAR ===== */
#sidebar {
    display: grid !important;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    height: 100dvh;
    user-select: none;
}
#sidebar.offcanvas,
#sidebar.offcanvas-lg {
    height: 100svh !important;
    max-height: 100svh !important;
}
#sidebar > ul {
		min-height: 0;
		overflow-y: auto;
		overflow-x: hidden;
}

#sidebar .nav-link {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#sidebar .nav-link:hover,
#sidebar button.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}

/* Sidebar dropdown parent button hover effect */
#sidebar .nav-link.bg-transparent:hover,
#sidebar button.nav-link.bg-transparent:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    cursor: pointer;
}


#sidebar .nav-link.active {
    background-color: #0d6efd;
    color: #fff !important;
}

/* Make sidebar badges white when link is active */
#sidebar .nav-link.active .badge {
    background-color: #fff !important;
    color: #0d6efd !important;
    font-weight: 600;
}
/* Chevron rotation and color for open/closed states
   Default (collapsed): chevron points down. When expanded, it flips up. */
[data-bs-toggle="collapse"] .sidebar-chevron {
    color: #888;
    transition: transform 0.18s ease, color 0.18s ease;
    font-size: 1.1em;
    opacity: 1;
    transform: rotate(0deg); /* down */
}
[data-bs-toggle="collapse"][aria-expanded="true"] .sidebar-chevron {
    transform: rotate(180deg); /* up */
    color: #fff;
}
[data-bs-toggle="collapse"][aria-expanded="false"] .sidebar-chevron {
    transform: rotate(0deg);
    color: #888;
}
/* Sub-nav items slightly smaller */
#sidebar ul ul .nav-link {
    font-size: 0.95rem;
}

/* ===== SIDEBAR DRILL-DOWN PANELS ===== */
.sidebar-nav-wrapper {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

#sidebar-panel-main,
.sidebar-drill-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background: #212529;
    transition: transform 0.25s ease;
}

#sidebar-panel-main {
    transform: translateX(0);
}
#sidebar-panel-main.slide-out-left {
    transform: translateX(-100%);
}

.sidebar-drill-panel {
    transform: translateX(100%);
}
.sidebar-drill-panel.slide-in {
    transform: translateX(0);
}

.account-item {
    font-size: 0.9rem;
    transition: background 0.15s ease;
    cursor: pointer;
}
.account-item:hover {
    background: rgba(255,255,255,0.07) !important;
}

/* Mobile: larger text + taller tap targets */
@media (max-width: 991.98px) {
    #sidebar .nav-link {
        font-size: 1rem;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }
    #sidebar ul ul .nav-link {
        font-size: 0.95rem;
    }
    .sidebar-chevron {
        font-size: 0.85rem;
    }
}

#main-content {
    padding-bottom: 40px;
}

/* TABLE COLUMN STYLES */
.column-image {
    width: 250px;
}
.column-id {
    width: 50px;
}

.column-actions-td {
    width: 5px;
}

.column-actions-td {
    vertical-align: top;
    padding: 0;
}
.actions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}
.actions-wrapper a {
    width: 100%;
}
.actions-wrapper button {
    width: 100%;
}
.actions-wrapper i {
    font-size: 20px;
}

.column-datetime {
    width: 250px;
}

.column-duration{
    width: 50px
}

.column-type {
    width: 150px;
}


/* OTHER STYLES */
.login-container {
    max-width: 600px;
    margin: auto;
    padding: 44px;
    border-radius: 15px;
}

.no-image {
    opacity: 0.5;
    max-height: 120px;
}

.call-image-wrapper {
    position: relative;
    display: inline-block;
}
.call-image {
    background-color: black;
    width:100%;
    height:auto;
    object-fit:cover;
    transition: filter 0.2s;
    border-radius: 10px;
}

.call-image:hover {
    filter: brightness(0.8);
}
.download-btn {
    align-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7) !important;
    cursor: pointer;
    z-index: 2;
    border-radius: 10px;
}

.call-image-wrapper .btn {opacity: 0; transition: opacity 0.15s; border-radius: 10px;}
.call-image-wrapper:hover .btn {opacity: 1;}
.call-image-wrapper:hover .call-image {filter: brightness(0.8);}

/* Custom team type badge colors */
.ftc-badge {
    background-color: rgb(245, 126, 37) !important;
    color: #fff !important;
    border-radius: 3px !important;
}
.frc-badge {
    background-color: rgb(0, 156, 215) !important;
    color: #fff !important;
    border-radius: 3px !important;
}
.fgc-badge {
    background-color: rgb(0, 166, 81) !important;
    color: #222 !important;
    border-radius: 3px !important;
}
.fll-badge {
    background-color: rgb(255, 193, 7) !important;
    color: #222 !important;
    border-radius: 3px !important;
}

/* MEDIA SCREENS */
@media screen and (max-width: 991px) {
    .column-image {
        display: none;
    }
}

@media screen and (max-width: 500px) {
    .column-datetime {
        display: none;
    }
    .column-duration {
        display: none;
    }
    .column-join-date, .column-rank, .column-location {
        display: none;
    }
    .login-container {
        width: 100%;
        padding: 20px;
    }

    .minimal-page-main {
        min-height: auto;
        justify-content: flex-start;
    }
}

@media screen and (max-width: 260px) {
    footer {
        text-align: center;
    }
    footer medium {
        margin-left: 0px;
        width: 90%;
    }
}