/* ==========================================================
   AXXPOINT STYLESHEET DEPENDENCIES
========================================================== */

@import url('/css/css_Sanitize.css?ver=171');
@import url('/css/css_Fonts.css?ver=171');
@import url('/css/css_Effects.css?ver=107');
@import url('/css/css_Boxes.css?ver=112');
@import url('/css/css_Forms.css?ver=189');
@import url('/css/css_Objects.css?ver=186');


/* ==========================================================
   AXXPOINT DESIGN TOKENS
========================================================== */

:root {
    --axx-brand-dark: #003300;
    --axx-brand-accent: #2bbbad;
    --axx-brand-soft: #dcedc8;
    --axx-surface: #ffffff;
    --axx-surface-muted: #f8f9fa;
    --axx-success: #198754;
    --axx-danger: #dc3545;
    --axx-warning: #ffc107;
    --axx-tree-active: #d0ebff;
}

/* ==========================================================
   GLOBAL
========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    background-color: var(--axx-surface-muted);
    font-family: 'Montserrat', sans-serif;
    color: #212529;
}

img {
    max-width: 100%;
    vertical-align: middle;
}


/* ==========================================================
   AXXPOINT LEGAL / PRIVACY CONTENT
   Used by:
   - Privacy Policy
   - Disclaimer
   - Site Statement
   - Site Terms
========================================================== */

.privacy-document {
    width: 100%;
    height: 35vh;
    padding: 1rem;
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--bs-body-color);
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--bs-secondary-color) transparent;
}

    .privacy-document::-webkit-scrollbar {
        width: 6px;
    }

    .privacy-document::-webkit-scrollbar-track {
        background: transparent;
    }

    .privacy-document::-webkit-scrollbar-thumb {
        background-color: var(--bs-secondary-color);
        border-radius: 999px;
    }

        .privacy-document::-webkit-scrollbar-thumb:hover {
            background-color: var(--bs-emphasis-color);
        }

/* ----------------------------------------------------------
   Legal Content Typography
---------------------------------------------------------- */

.Watchdog {
    width: 100%;
    margin-top: 0;
    margin-bottom: 1.15rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--bs-body-color);
    text-align: justify;
    overflow-wrap: break-word;
    word-break: normal;
}

p.Watchdog {
    margin-bottom: 1.15rem;
}


/* ----------------------------------------------------------
   Legal Lists
---------------------------------------------------------- */

ul.Watchdog,
ol.Watchdog {
    margin-top: 0.5rem;
    margin-bottom: 1.4rem;
    padding-left: 1.5rem;
}

    ul.Watchdog li,
    ol.Watchdog li {
        margin-bottom: 0.65rem;
        padding-left: 0.25rem;
        line-height: 1.75;
    }

        ul.Watchdog li:last-child,
        ol.Watchdog li:last-child {
            margin-bottom: 0;
        }


/* ----------------------------------------------------------
   Legal Links
---------------------------------------------------------- */

.Watchdog a {
    color: var(--bs-link-color);
    font-weight: 500;
    text-decoration: none;
    text-underline-offset: 0.18em;
    transition: color 0.15s ease-in-out, text-decoration-color 0.15s ease-in-out;
}

    .Watchdog a:hover {
        color: var(--bs-link-hover-color);
        text-decoration: underline;
    }

    .Watchdog a:focus-visible {
        border-radius: 2px;
        outline: 2px solid currentColor;
        outline-offset: 3px;
    }


/* ----------------------------------------------------------
   Legal Emphasis
---------------------------------------------------------- */

.Watchdog strong,
.Watchdog b {
    font-weight: 600;
    color: var(--bs-emphasis-color);
}


/* ----------------------------------------------------------
   Legal Document Header
---------------------------------------------------------- */

.privacy-document > header {
    width: 100%;
    margin-bottom: 2rem !important;
}

    .privacy-document > header h1 {
        margin-bottom: 0.5rem;
        font-weight: 650;
        letter-spacing: -0.02em;
        color: var(--bs-emphasis-color);
    }

    .privacy-document > header .text-muted {
        width: 100%;
        line-height: 1.6;
    }


/* ----------------------------------------------------------
   Legal Sections
---------------------------------------------------------- */

.privacy-document section {
    width: 100%;
    margin-bottom: 2.25rem !important;
}

    .privacy-document section > h2 {
        position: relative;
        margin-top: 0;
        margin-bottom: 1rem;
        padding-bottom: 0.65rem;
        font-weight: 600;
        line-height: 1.35;
        letter-spacing: -0.01em;
        color: var(--bs-emphasis-color);
    }

        .privacy-document section > h2::after {
            content: "";
            display: block;
            width: 2.5rem;
            height: 2px;
            margin-top: 0.6rem;
            background-color: var(--bs-primary);
            border-radius: 999px;
            opacity: 0.65;
        }

        .privacy-document section > h2 + .Watchdog {
            margin-top: 0;
        }


/* ----------------------------------------------------------
   Legal Text Selection
---------------------------------------------------------- */

.privacy-document ::selection {
    background-color: rgba(var(--bs-primary-rgb), 0.18);
}


/* ==========================================================
   LAYOUT
========================================================== */

.container-padding {
    padding-inline: 0;
}

.main-content {
    overflow-x: hidden;
}

.body-panel {
    background-color: ghostwhite;
}

.grid-container {
    display: grid;
}

/* ==========================================================
   AXXPOINT HEADER
========================================================== */

.axx-site-header {
    width: 100%;
}

.axx-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 120px;
    padding: 0.5rem 0.5rem;
    overflow: hidden;
    background-color: #f8fafc;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Light overlay keeps background image subtle */
.axx-header-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient( 135deg, rgba(255, 255, 255, .92), rgba(248, 250, 252, .84), rgba(255, 255, 255, .90) );
}

/* Header content */
.axx-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(100%, 900px);
    margin-inline: auto;
    text-align: center;
}

    /* Domain / organisation name */
    .axx-header-content h1 {
        margin: 0;
        color: #1f2937;
        font-size: clamp(1.75rem, 4vw, 3rem);
        font-weight: 700;
        line-height: 1.15;
        letter-spacing: -.025em;
        text-align: center;
    }

    /* Host */
    .axx-header-content p {
        margin: .5rem 0 0;
        color: #64748b;
        font-size: clamp(.85rem, 1.5vw, 1rem);
        font-weight: 500;
        line-height: 1.4;
        letter-spacing: .02em;
        text-align: center;
    }

    /* Subtle accent */
    .axx-header-content::after {
        content: "";
        width: 3rem;
        height: 3px;
        margin-top: .9rem;
        background-color: var(--axx-brand-accent, #2bbbad);
        border-radius: 999px;
    }

/* ==========================================================
   PAGE SHELL
========================================================== */

.page-shell {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.page-content {
    min-height: 50vh;
    max-height: 75vh;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.10), 0 12px 30px rgba(0, 0, 0, 0.18);
}

.content-panel {
    min-height: 50vh;
    max-height: 75vh;
    padding: 1.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15), 0 1rem 2rem rgba(0, 0, 0, 0.10);
}


/* ==========================================================
   NAVBAR
========================================================== */

.navbar-brand img {
    width: auto;
}


.navbar-nav .nav-link {
    font-weight: 500;
    white-space: nowrap;
}


/* ----------------------------------------------------------
   Navigation Tabs
---------------------------------------------------------- */

.nav-tabs {
    border-bottom: 1px solid #dee2e6;
}

    .nav-tabs .nav-link {
        margin-bottom: -1px;
        padding: 0.25rem 1rem;
        border: none !important;
        background-color: transparent !important;
        color: #495057;
        font-weight: 600;
    }

        .nav-tabs .nav-link:hover {
            border: none !important;
            background-color: transparent !important;
            color: var(--bs-primary);
        }

        .nav-tabs .nav-link.active {
            border: none !important;
            background-color: transparent !important;
            color: var(--bs-primary);
        }

            .nav-tabs .nav-link.active::after {
                content: "";
                display: block;
                height: 2px;
                margin-top: 0.35rem;
                background-color: var(--bs-primary);
            }


/* ----------------------------------------------------------
   AxxPoint Navigation
---------------------------------------------------------- */

.axx-nav-icon {
    width: 0.9rem;
    height: 0.9rem;
}

.axx-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}


/* ==========================================================
   AUTHENTICATION / SOCIAL LOGIN
========================================================== */

.social-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    gap: 0.65rem;
    border-width: 1px;
}

.social-login-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.google-login-button {
    background-color: #4f7ee8;
    border-color: #4f7ee8;
    color: #fff;
}

    .google-login-button:hover,
    .google-login-button:focus {
        background-color: #416fd3;
        border-color: #416fd3;
        color: #fff;
    }

.google-provider-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background-color: #fff;
    border-radius: 50%;
    color: #4285f4;
    font-family: Arial, sans-serif;
    font-weight: 700;
    line-height: 1;
}

.provider-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    background-color: #fff;
    border-radius: 50%;
    color: #4267b2;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}


/* ----------------------------------------------------------
   Login Divider
---------------------------------------------------------- */

.login-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #6c757d;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
}

    .login-divider::before,
    .login-divider::after {
        content: "";
        flex: 1;
        border-top: 1px solid #dee2e6;
    }

    .login-divider span {
        white-space: nowrap;
    }

.validation-summary-valid {
    display: none;
}


/* NOTE: Generic legacy selectors are retained for Razor compatibility.
   New AxxPoint components should prefer an axx- prefix. */

/* ==========================================================
   AXXPOINT EMAIL TOOLBAR
========================================================== */

.toolbar {
    padding: 0.15rem 0.4rem;
    overflow-x: auto;
    overflow-y: hidden;
    background-color: #fff;
    border-bottom: 1px solid var(--bs-border-color);
}

    .toolbar > div {
        min-width: max-content;
    }

    .toolbar .btn-group {
        margin-right: 0.35rem;
    }

    .toolbar .btn + .btn {
        margin-left: 0.15rem;
    }

    .toolbar .vr {
        margin: 0 0.5rem;
    }

    .toolbar i[data-lucide] {
        width: 13px;
        height: 13px;
        stroke-width: 2;
        vertical-align: middle;
    }


/* ==========================================================
   ERROR PAGE
========================================================== */

.error-avatar {
    width: 10rem;
    height: 10rem;
    object-fit: cover;
}

.error-illustration {
    max-width: 12rem;
}

.error-watermark {
    z-index: 0;
    opacity: 0.05;
}

.error-message {
    position: relative;
    z-index: 1;
}


/* ==========================================================
   DROPDOWN
========================================================== */

.dropdown-menu {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
}

.dropdown-item {
    line-height: 1.2;
    transition: background-color 0.2s ease;
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: #f5f5f5;
    }


/* ==========================================================
   TOP BAR / SOCIALS
========================================================== */

.top-bar {
    display: flex;
    align-items: center;
    background-color: var(--axx-brand-dark);
    color: #fff;
}

.social-bar {
    text-align: center;
}

    .social-bar img {
        cursor: pointer;
        transition: transform 0.3s ease;
    }

        .social-bar img:hover {
            transform: scale(1.1);
        }


/* ==========================================================
   FOOTER
========================================================== */

.footer-main {
    background-color: var(--axx-brand-dark);
    color: #fff;
}

    .footer-main a {
        color: var(--axx-brand-accent);
        text-decoration: none;
    }

        .footer-main a:hover {
            text-decoration: underline;
        }

.footer-bottom {
    background-color: var(--axx-brand-soft);
}

    .footer-bottom img {
        width: auto;
    }


/* ==========================================================
   GRID ROWS
========================================================== */

.gridrow:nth-child(odd) {
    background-color: lavender;
}

.gridrow:nth-child(even) {
    background-color: #fff;
}


/* ==========================================================
   ICON STATES
========================================================== */

.fa-good,
.imssbn-valid {
    color: var(--axx-success);
}

.fa-bad,
.imssbn-invalid {
    color: var(--axx-danger);
}


/* ==========================================================
   TABLES
========================================================== */

.th-text,
.td-text {
    font-family: 'Century Gothic', sans-serif;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.th-text {
    background-color: green;
    color: #fff;
}

.td-text {
    background-color: #fff;
    color: #000;
}


/* ==========================================================
   LINKS
========================================================== */

.style-link,
.qck-links {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}


/* ==========================================================
   WATERMARK
========================================================== */

.my-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 0;
    max-width: 60vw;
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
    transform: translate(-50%, -50%);
}


/* ==========================================================
   SLIDESHOW
========================================================== */

.slideshow-container {
    position: relative;
    margin: auto;
}

    .slideshow-container .mySlides {
        display: none;
    }

    .slideshow-container .text,
    .slideshow-container .numbertext {
        position: absolute;
        color: #f2f2f2;
        text-align: center;
    }

    .slideshow-container .dot {
        display: inline-block;
        background-color: #bbb;
        transition: background-color 0.6s ease;
    }

        .slideshow-container .dot.active {
            background-color: #717171;
        }

    .slideshow-container .fade {
        animation: axx-slideshow-fade 1.5s;
    }



/* ==========================================================
   FORM CONTROLS
========================================================== */

.input,
.btn {
    border-radius: 0.4rem;
}

.style-btn {
    border: none;
}

.mod-label {
    text-align: center;
}


/* ==========================================================
   UTILITIES
========================================================== */

.place-div {
    text-align: center;
}

.hidden {
    display: none;
}

.show-flex {
    display: flex !important;
}

.scroll {
    flex-grow: 1;
    overflow-y: auto;
}

.center-it {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* ==========================================================
   TREE VIEW
========================================================== */

#folderRoleSelector {
    position: relative;
    z-index: 10;
}

.tree-container ul {
    padding-left: 20px;
    list-style: none;
    font-size: 12px;
}

.tree-node {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    cursor: pointer;
}

    .tree-node:hover {
        background-color: #f0f0f0;
    }

.active-node {
    background-color: var(--axx-tree-active);
    border-radius: 4px;
}

.tree-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
}

.badge-img {
    background-color: var(--axx-success);
}

.badge-doc {
    background-color: #6c757d;
}

.badge-mix {
    background-color: var(--axx-warning);
}

.tree-thumb {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 3px;
}


/* ==========================================================
   ACTIONS
========================================================== */

.folder-actions {
    margin-left: auto;
}

    .folder-actions button {
        margin-left: 4px;
        padding: 2px 6px;
        font-size: 10px;
    }


/* ==========================================================
   PANELS
========================================================== */

.panel {
    display: flex;
    flex-direction: column;
    height: 60vh;
}

.tree-section {
    height: 45%;
    overflow: auto;
}

.content-section {
    height: 55%;
    overflow: hidden;
}

.pane {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 5px;
    border: 1px solid #ddd;
}


/* ==========================================================
   LIST / PREVIEW
========================================================== */

.list-item {
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

    .list-item:hover {
        background-color: #f5f5f5;
    }

    .list-item.active {
        background-color: var(--axx-tree-active);
    }

.preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/* ==========================================================
   IMSSBN
========================================================== */

.imssbn-inline {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

    .imssbn-inline .form-control {
        display: inline-block;
        width: auto !important;
    }

.imssbn-small,
.imssbn-tiny,
.imssbn-indicator {
    text-align: center;
}


/* ==========================================================
   CONFIRM DIALOG
========================================================== */

.confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.50);
}

.confirm-box {
    background-color: #fff;
    border-radius: 6px;
    text-align: center;
}

.confirm-actions {
    display: flex;
    justify-content: space-between;
}



/* ==========================================================
   AXX CAROUSEL CONTAINER
========================================================== */

.axx-carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 80vh;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15), 0 1rem 2rem rgba(0, 0, 0, 0.10);
}

.axx-carousel-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: auto;
    padding: 1rem;
    background-color: transparent;
}

#AFR_Carousel {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    background-color: ghostwhite;
    border-radius: 0.75rem;
}

    #AFR_Carousel .carousel-inner {
        height: 100%;
    }

    #AFR_Carousel .carousel-item {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-height: 50vh;
        background-color: ghostwhite;
    }

    #AFR_Carousel .afr-carousel-image {
        display: block;
        width: auto;
        height: auto;
        max-width: 80%;
        max-height: 80%;
        padding: 1rem;
        object-fit: contain;
    }

    #AFR_Carousel .carousel-control-prev-icon,
    #AFR_Carousel .carousel-control-next-icon {
        width: 3rem;
        height: 3rem;
        background-color: rgba(0, 0, 0, 0.45);
        background-size: 70%;
        border-radius: 50%;
    }

    #AFR_Carousel .carousel-indicators button {
        width: 1rem;
        height: 1rem;
        border-radius: 50%;
    }


/* ==========================================================
   ANIMATIONS
========================================================== */

@keyframes axx-slideshow-fade {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}


/* ==========================================================
   RESPONSIVE
   Keep all @media declarations below this point.
========================================================== */


/* ----------------------------------------------------------
   Mobile / Small Screens
---------------------------------------------------------- */

@media (max-width: 767.98px) {

    .privacy-document {
        padding-top: 0.5rem;
        padding-bottom: 2rem;
    }

        .privacy-document > header,
        .privacy-document section {
            width: 100%;
        }

        .privacy-document section {
            margin-bottom: 1.8rem !important;
        }

            .privacy-document section > h2 {
                font-size: 1.05rem;
            }

    .Watchdog {
        width: 100%;
        font-size: 0.975rem;
        line-height: 1.75;
    }

    .content-panel {
        padding: 1rem;
    }

    .axx-header {
        min-height: 140px;
        padding: 1.5rem 1rem;
    }

    .axx-header-content {
        width: 100%;
    }
}


/* ----------------------------------------------------------
   Large Screens
---------------------------------------------------------- */

@media (min-width: 1200px) {

    .Watchdog {
        font-size: 1.025rem;
        line-height: 1.85;
    }
}



/* ----------------------------------------------------------
   Carousel / Tablet
---------------------------------------------------------- */

@media (max-width: 992px) {
    .axx-carousel-container {
        padding: 1rem;
    }

    .axx-carousel-panel {
        padding: 0.75rem;
    }

    #AFR_Carousel .carousel-item {
        min-height: 35vh;
    }

    #AFR_Carousel .afr-carousel-image {
        max-width: 90%;
        max-height: 90%;
    }
}

/* ----------------------------------------------------------
   Carousel / Mobile
---------------------------------------------------------- */

@media (max-width: 768px) {
    .axx-carousel-container {
        min-height: auto;
        padding: 0.5rem;
    }

    .axx-carousel-panel {
        padding: 0.5rem;
    }

    #AFR_Carousel .carousel-item {
        min-height: 30vh;
    }

    #AFR_Carousel .afr-carousel-image {
        max-width: 95%;
        max-height: 95%;
        padding: 0.5rem;
    }
}


/* ----------------------------------------------------------
   Reduced Motion
---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .social-bar img,
    .Watchdog a,
    .slideshow-container .dot {
        transition: none;
    }

    .slideshow-container .fade {
        animation: none;
    }
}

/* ==========================================================
   DEVICE OVERRIDES
   (Handled in css_Sizer_* files)
========================================================== */
