:root {
    --sidebar-collapsed-width: 60px;
    --sidebar-open-width: 250px;
    --colour-bg: #0a0e1a;
    --colour-header: linear-gradient(90deg, #060a14 0%, #0d1b38 60%, #060a14 100%);
    --colour-nav-1: #0a0a0a;
    --colour-panel: #202738;
    --colour-text: #FFFFFF;
    --colour-text-secondary: #9C9D97;
    --colour-border: #202738;
    --colour-scrollbar-track: #1e1e2e;
    --colour-scrollbar-thumb: #00d4ff;
    --colour-scrollbar-thumb-hover: rgba(118, 75, 162, 0.8);
    --colour-panel-border: rgba(0,212,255, 0.13);
}

body {
    background-color: var(--colour-bg); /* #DDDDDD; #1A2130*/
    color: var(--colour-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.avx-header {
    background: var(--colour-header);
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
    border-bottom: thin solid var(--colour-border);
    align-items: center;
    margin: 0px;
    padding-left: 0.5vw;
}

.avxcloud-logo {
    width: 12vw;
    max-width: 12vw;
}

.version-parent {
    padding-left: 1vw;
    margin-right: auto;
}

.version-desc {
    font-size: 0.9vw;
    font-family: Verdana;
    text-align: left;
    color: rgba(200, 200, 200, 0.6);
}

.version-date {
    font-size: 0.7vw;
    font-family: Verdana;
    text-align: left;
    color: rgba(200, 200, 200, 0.6);
}


.admin-nav-1-partial {
    background-color: var(--colour-nav-1);
    justify-content: flex-start;
    border-bottom: 1px solid var(--colour-border);
    padding-top: 0.3vh;
    padding-bottom: 0.3vh;
    max-width: 100%;
    margin: 0px;
}

.button-with-icon-text {
    padding-left: 0.2vw;
}


.page-title {
    color: var(--text-primary);
    font-weight: 400;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    font-size: 1.3rem;
    flex-shrink: 0;
    width:fit-content;
}

    .page-title i {
        background: linear-gradient(135deg, #667eea 0%, #c084fc 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.avxcloud-panel-title {
    font-size: 20px;
    color: var(--colour-text);
}

.avxcloud-links {
    text-decoration: none;
}

    .avxcloud-links:hover {
        color: powderblue;
        text-decoration: underline;
    }



.avxcloud-client-ui-links {
    padding: 5px 5px 5px 15px;
    margin: 2px 2px 2px 0px;
    color: var(--colour-text);
    font-size: 13px;
}

.header-btn {
    color: #fff;
    border: 1px solid var(--colour-border);
}

    .header-btn:hover {
        color: #000;
        background-color: #f8f9fa;
    }

.register-login-link-text {
    font-size: 1vw !important;
    color: skyblue !important;
    text-decoration: none;
    padding-right: 1vw;
}

    .register-login-link-text:hover {
        color: orange !important;
        text-decoration: underline !important;
    }

.logout-form {
    padding: 0px;
    padding-right: 1vw;
    margin: 0px;
    display: flex;
    background-color: var(--colour-header);
}

.logout-button {
    background-color: var(--colour-header);
    border: none;
    padding: 0px;
}




/* ========================================
   Button Group Styling
   ======================================== 
*/
.button-group-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    background-color: var(--colour-nav-1);
}

.button-group {
    display: flex;
    gap: 0;
    width: 60%;
    max-width: 60%;
    align-items: stretch;
}

.btn-group-item,
.btn-group-dropdown {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-group-item {
    padding: 0.75rem 1.5rem;
    background: var(--colour-nav-1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-right: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    gap: 0.6rem;
    white-space: nowrap;
    position: relative;
    border-radius: 0;
}

.button-group > .btn-group-item:first-child {
    border-radius: 8px 0 0 8px;
}

.button-group > :last-child .btn-group-item {
    border-radius: 0 8px 8px 0;
    border-right: 1px solid var(--colour-border);
}

.btn-group-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%);
    border-color: #667eea;
    color: var(--accent-neon);
}

.btn-group-item:active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.6) 100%);
}

.btn-group-item.dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    margin-left: 0.4rem;
}

.btn-group-dropdown {
    position: relative;
}

.dropdown-menu {
    background-color: var(--colour-panel);
    border: 1px solid var(--colour-border);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 200px;
}

    .dropdown-menu .dropdown-item {
        color: var(--text-primary);
        padding: 0.75rem 1rem;
        transition: all 0.2s ease;
        font-size: 15px;
    }

        .dropdown-menu .dropdown-item:hover {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
            color: var(--colour-text);
        }

    .dropdown-menu .dropdown-divider {
        border-color: var(--colour-border);
        margin: 0.5rem 0;
    }


/* Position submenu to the right */
.dropdown-submenu .dropdown-menu {
    color: var(--text-primary);
    top: 0;
    left: 100%;
    margin-left: .1rem;
    display: none;
}

/* Show submenu on hover */
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.nav-2-parent {
    gap: 0.5vw;
}


.page-viewport {
    height: 100%;
    max-height: 100%;
    overflow-y: hidden;
}


.footer {
    bottom: 0;
    flex: 1;
    width: 100%;
    border-top: solid;
    border-color: var(--colour-border);
    display: flex;
    margin: 0px;
}

.footer-content {
    height: 5vh;
    width: 100%;
    text-align: center;
    align-content: center;
    justify-content: center;
    font-size: 1vw;
}

/* ========================================
   Customer Side Styling
   ======================================== 
*/
.logo-header-view {
    min-height:15;
    max-height: 20vh;
    overflow: auto;
}

.logo-header {
    background: var(--colour-border);
    padding: 0.6vw;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Panels Grid Layout */
.logo-header-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-auto-rows: clamp(1vw, 50px, 4vw);
    gap: 1vw;
    width: 100%;
    max-width: 100%;
}

    .logo-header-grid a {
        display: flex;
        justify-content: center;
        align-content:center;
        max-width:100%;
        height:100%;
        color:white;
        border-bottom:none;
        text-decoration:none;
    }

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .logo-item:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }


.customer-header-customer-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.customer-header-customer-text {
    font-size: clamp(1vw, 30px, 4vw);
}

.customer_left_overview_panel {
    background-color: rgba(60, 60, 60, 1.0); /*rgba(20, 20, 20, 1.0);  rgba(235, 158, 52, 0.6); */
    padding: 10px;
}

.sidebar-container {
    position: relative;
    flex-grow: 1;
    height: 100%;
}

/* Sidebar Styles */
.sidebar-space {
    width: var(--sidebar-collapsed-width);
    flex-shrink: 0;
    position: relative;
    height: 100%;
}

.sidebar {
    position: absolute;
    left: 0;
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    margin: 0px;
    padding: 0px;
    background-color: #111827;
    width: var(--sidebar-collapsed-width);
    transition: ease 0.3s;
    border-right: 3px solid transparent;
    border-right-color: var(--colour-panel-border);
}

    .sidebar:hover {
        width: var(--sidebar-open-width);
        max-width: 45vw;
        z-index: 400;
        border-right: 3px solid transparent;
        border-right-color: var(--colour-panel-border);
    }

.sidebar-content {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}



.sidebar-item {
    padding: 15px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    border-left: 3px solid transparent;
    min-height: 50px;
    background-color: var(--colour-header);

}

    .sidebar-item:hover {
        color: white;
        background-color: rgba(255,255,255,0.1);
        border-left: 3px solid var(--colour-scrollbar-thumb-hover);
    }

    .sidebar-item.active {
        color: white;
        background-color: rgba(102, 126, 234, 0.2);
        border-left-color: var(--colour-scrollbar-thumb);
    }

    .sidebar-item i {
        font-size: 20px;
        min-width: 20px;
        flex-shrink: 0;
    }

    .sidebar-item span {
        white-space: nowrap;
        transition: opacity 0.3s ease;
    }


.button-sidebar-item {
    border: 0px;
    border-left: 3px solid transparent;
}

.sidebar:not(:hover) .sidebar-item span {
    opacity: 0;
    width: 0;
    overflow: hidden;
    display: none;
}

.sidebar:hover .sidebar-item span {
    opacity: 1;
    display: inline;
}

/* Main Content Area */
.main-content {
    margin-left: 80px;
    transition: margin-left 0.3s ease;
    padding-top: 0;
}

.sidebar.expanded ~ .main-content {
    margin-left: 250px;
}

.image-modal-image {
    max-height: 700px;
    width: auto;
    overflow: clip;
}

.modal-content-colour
{
    background-color:var(--colour-panel)
}

.btn-link-modal {
    background-color: rgba(0,212,255,0.35);
}

    .btn-link-modal:hover {
        background-color: white;
    }

a.disabled {
    pointer-events: none;
    opacity: 0.5; /* optional, gives visual feedback */
    cursor: default;
}

.form-check {
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background-color: rgba(19, 21, 40, 0.8);
    transition: all 0.3s ease;
}

    .form-check-input:checked {
        background-color: var(--secondary-color);
        border-color: var(--secondary-color);
    }

.form-check-label {
    margin-left: 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.form-check:hover .form-check-label {
    color: cadetblue;
}

.form-check:hover .form-check-input:not(:checked) {
    border-color: var(--secondary-color);
    background-color: rgba(59, 130, 246, 0.15);
}

@media(max-width: 1400px)
{
    .button-group {
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap;
        gap: 0;
    }

    .btn-group-item,
    .btn-group-dropdown {
        flex: 1;
        min-width: auto;
    }

    .button-group > .btn-group-item:first-child {
        border-radius: 0px;
        border: none;
    }

    .button-group > :last-child .btn-group-item {
        border-radius: 0px;
        border: none;
    }

    .btn-group-item {
        padding: 0.5rem 0.75rem;
        font-size: clamp(0.7rem, 1.5vw, 0.85rem);
        gap: 0.3rem;
    }

        .btn-group-item i {
            font-size: 10px;
        }
}


@media (max-width: 800px) {

    .button-group {
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap;
        gap: 0;
    }

    .btn-group-item,
    .btn-group-dropdown {
        flex: 1;
        min-width: auto;
    }

    .button-group > .btn-group-item:first-child {
        border-radius: 0px;
        border: none;
    }

    .button-group > :last-child .btn-group-item {
        border-radius: 0px;
        border: none;
    }

    .btn-group-item {
        padding: 0px;
        font-size: 5px;

        gap: 0.3rem;
    }

        .btn-group-item i {
            font-size: 10px;
        }
}

/* The scrollbar track (background) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--colour-scrollbar-track);
}

/* The draggable handle */
::-webkit-scrollbar-thumb {
    background: var(--colour-scrollbar-thumb);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--colour-scrollbar-thumb-hover);
    }


.customer-panel-link {
    color: var(--colour-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

    .customer-panel-link:hover {
        color: var(--colour-text-secondary);
        gap: 0.5rem;
    }

    .customer-panel-link i {
        margin-left: 0.5rem;
        transition: transform 0.3s ease;
    }

    .customer-panel-link:hover i {
        transform: translateX(4px);
    }