html {
    font-size: 14px;
}
.form-control 
{
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--earth-light);
    border: 2px solid var(--earth-medium);
    border-radius: 10px;
    color: var(--earth-darkest);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}
    .form-control:focus {
        outline: none;
        border-color: var(--earth-dark);
        background-color: var(--earth-lightest);
        box-shadow: 0 0 0 3px rgba(122, 107, 94, 0.1);
    }

.my-custom-toggler .navbar-toggler-icon {
    /* Replace the stroke color (e.g., #FF0000 for red) in the SVG data URI */
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><path stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/></svg>");
}

::selection {
    background-color: #ffffff; /* The highlight background color */
    color: var(--earth-text-dark); /* The text color when highlighted */
    text-shadow: 0px 0px 0px black !important;
}
body {
    background: var(--earth-light);
    color: var(--earth-darkest);
    margin: 0;
    padding: 0;
    /* Enable these for parallax */
    /*background-image: url('/Images/8VeoDta.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;*/
}
/* Footer */
footer {
    width: 100%;
    padding: 1rem .55rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.6;
    letter-spacing: 0.1em;
}
/* Initial state: off-screen and hidden */
.fly-in-element {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.6s ease-out, transform .9s ease-out; /* Smooth transition */
    transition-delay: var(--fly-in-delay, 0s);
    transition-duration: var(--fly-in-duration, .9s);
}

    /* State when in the viewport: visible and in place */
    .fly-in-element.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Reduce animation delays on mobile for faster perceived performance */
    @media (max-width: 768px) {
        .fly-in-element {
            --fly-in-delay: calc(var(--desktop-delay, 0s) / 2);
        }
    }


/* Header */
.myHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0.09rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--earth-dark);
    /*background: linear-gradient(180deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0) 100%);*/
}
.logo:hover{
    font-weight:bold;

}
.auto-contrast-text {
    color: var(--earth-text-light); /* Or any main text color */
    /* A shadow around the text helps define the edges */
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}
.highlighted-text {
    /* Semi-transparent black background */
    border-radius: 10px;
/*    background-color: rgba(255, 255, 255, 0.06);*/    
    backdrop-filter: blur(2px);
    color: var(--earth-text-light);
    display: inline-block; /* Ensures the background wraps the text width */
}
p.highlighted-text {
    padding: 8px 12px; /* Add padding for better visual appearance */
}
h1.highlighted-text {
    padding: 16px 24px; /* Add padding for better visual appearance */
}
.shadow-text-bold {
    text-shadow: 5px 5px 3px #121212;
}

.shadow-text {
    text-shadow: 3px 3px 2px #121212;
}
.shadow-text-lite {
    text-shadow: 2px 2px 1px #121212;
}

.logo {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--earth-lightest);
}
.logo-big{
    font-size:1.8rem;
}
.offcanvas-header .btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFF'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e");
}
.dropdown-item:hover{
    color:lightgray;
}
nav ul {
    display: flex;
    gap: 0.8rem;
    list-style: none;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}
.offcanvas{
    background-color: var(--earth-darkest);
    color: var(--earth-text-light);

}
.navbar-toggler{
    border: 1px solid white;
}
    nav a:hover {
        opacity: 0.6;
    }

@media (max-width: 1024px) {
    nav a {
        gap: 2rem;
    }
    .logo {
        font-size: 1.4rem;
        letter-spacing: 0.2em;
    }

}

@media (max-width: 768px) 
{
    nav a {
        font-size: 0.7rem;
        letter-spacing: 0em;
    }
    .logo {
        font-size: 1rem;
        letter-spacing: 0.2em;
    }

}
@media (max-width: 480px) {
    .myHeader {
        padding: .8rem 1.5rem;
    }
    nav ul {
        gap: .9rem;
    }
    nav a {
        font-size: 0.6rem;
        letter-spacing: 0.1em;
    }
    .logo {
        font-size: .8rem;
        letter-spacing: 0.2em;
    }

}



.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--earth-dark);
}

html {
    position: relative;
    min-height: 100%;
}

/* Toast Styles */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: var(--earth-text-light);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

    .toast.show {
        transform: translateX(0);
        opacity: 1;
    }

.toast-success {
    border-left: 4px solid var(--earth-success);
}

.toast-error {
    border-left: 4px solid var(--earth-error);
}

.toast-warning {
    border-left: 4px solid var(--earth-warning);
}

.toast-info {
    border-left: 4px solid var(--earth-info);
}

.toast-message {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #999;
}
/* ============================================ SIDEBAR STYLES ============================================ */
.layout-container {
    display: flex;
    min-height: calc(100vh - 160px);
}
/* Sidebar Base */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background-color: var(--earth-lightest);
    border-right: 1px solid #dee2e6;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, width 0.3s ease;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    overflow: visible;
    margin-top: 90px;
}

.sidebar-collapsed {
    width: 70px;
}
/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dee2e6;
    background-color: #fff;
    min-height: 60px;
    flex-shrink: 0;
}

.sidebar-collapsed .sidebar-header {
    justify-content: center;
    padding: 0.75rem 0;
}

.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    color: #495057;
    background: none;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 1rem;
}

    .sidebar-toggle i {
        margin: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.sidebar-collapsed .sidebar-toggle {
    margin: 0 auto;
    width: 40px;
}

.sidebar-toggle:hover {
    background-color: #e9ecef;
    color: #0d6efd;
}

.sidebar-toggle:active {
    background-color: #dee2e6;
}

.sidebar-title {
    margin-left: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.2s ease, margin-left 0.2s ease, width 0.2s ease;
    flex: 1;
    font-size: 0.95rem;
    color: #212529;
}

.sidebar-collapsed .sidebar-title {
    opacity: 0;
    width: 0;
    margin-left: 0;
    overflow: hidden;
    display: none;
}
/* Sidebar Content */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem 0;
}

.sidebar-collapsed .sidebar-content {
    padding: 0.25rem 0;
}

.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background-color: #cbd5e0;
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-track {
    background-color: transparent;
}
/* Sidebar Sections */
.sidebar-section {
    margin-bottom: 1.5rem;
    transition: margin-bottom 0.2s ease;
}

.sidebar-collapsed .sidebar-section {
    margin-bottom: 0.25rem;
}

.sidebar-section-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    white-space: nowrap;
    transition: padding 0.2s ease, opacity 0.2s ease;
}

.sidebar-collapsed .sidebar-section-header {
    padding: 0.35rem 0.25rem;
    opacity: 0.6;
    justify-content: center;
    gap: 0;
    font-size: 0.6rem;
}

    .sidebar-collapsed .sidebar-section-header span {
        display: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sidebar-collapsed .sidebar-section-header i {
        margin: 0 !important;
        font-size: 0.75rem;
        flex-shrink: 0;
    }

.sidebar-action {
    padding: 0.25rem;
    color: #6c757d;
    opacity: 0;
    transition: opacity 0.2s;
}

.sidebar-collapsed .sidebar-action {
    display: none;
}

.sidebar-section:hover .sidebar-action {
    opacity: 1;
}
/* Sidebar Menu */
.sidebar-menu, .sidebar-bookmarks, .sidebar-submenu, .sidebar-folder-content {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu-item {
    position: relative;
}

.sidebar-bookmark-item, .sidebar-folder-item {
    position: relative;
}

.sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.625rem 1rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    gap: 0.5rem;
}

.sidebar-collapsed .sidebar-link {
    justify-content: center;
    padding: 0.4rem;
    border-left: none;
    gap: 0;
}

.sidebar-link:hover {
    background-color: #e9ecef;
    border-left-color: #0d6efd;
    color: #0d6efd;
}

.sidebar-collapsed .sidebar-link:hover {
    border-left-color: transparent;
    background-color: #e9ecef;
}

.sidebar-link.active {
    background-color: #e7f1ff;
    border-left-color: #0d6efd;
    color: #0d6efd;
    font-weight: 500;
}

.sidebar-collapsed .sidebar-link.active {
    background-color: #e7f1ff;
    border-left-color: transparent;
}

.sidebar-link i {
    font-size: 1.125rem;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-link-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 1;
    transition: opacity 0.2s, flex 0.2s, font-size 0.2s;
    font-size: 0.875rem;
}

.sidebar-collapsed .sidebar-link-text {
    display: none;
    flex: 0;
    opacity: 0;
    width: 0;
    font-size: 0.75rem;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-chevron {
    font-size: 0.75rem;
    transition: transform 0.2s, font-size 0.2s;
    flex-shrink: 0;
    opacity: 1;
    margin-left: auto;
}

.sidebar-collapsed .sidebar-chevron {
    display: block;
    opacity: 0.6;
    width: auto;
    margin: 0;
    font-size: 0.5rem;
    position: absolute;
    right: 0.2rem;
}

.sidebar-parent[aria-expanded="true"] .sidebar-chevron {
    transform: rotate(180deg);
}
/* Submenu */
.sidebar-submenu {
    background-color: #f1f3f5;
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

    .sidebar-submenu .sidebar-link {
        padding-left: 2.5rem;
        font-size: 0.9rem;
    }

.sidebar-collapsed .sidebar-submenu {
    position: fixed !important;
    left: 70px !important;
    top: 140px !important;
    background-color: white !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    width: 180px !important;
    max-height: 0 !important;
    overflow: visible !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease, max-height 0.3s ease !important;
    z-index: 1001 !important;
    display: block !important;
}

    .sidebar-collapsed .sidebar-submenu.show {
        max-height: 500px !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        overflow: visible !important;
    }

        .sidebar-collapsed .sidebar-submenu.show .sidebar-link {
            padding-left: 1rem;
            padding-right: 1rem;
            font-size: 0.85rem;
            border-left: none;
            padding-top: 0.5rem;
            padding-bottom: 0.5rem;
            color: #495057;
            justify-content: flex-start;
            flex-direction: row !important;
        }

        .sidebar-collapsed .sidebar-submenu.show .sidebar-link-text {
            display: block !important;
            flex: 1 !important;
            opacity: 1 !important;
            width: auto !important;
            margin-left: 0.5rem !important;
            font-size: 0.85rem !important;
        }

        .sidebar-collapsed .sidebar-submenu.show .sidebar-link i {
            min-width: auto !important;
            margin-right: 0.5rem !important;
        }

        .sidebar-collapsed .sidebar-submenu.show .sidebar-link:hover {
            background-color: #e9ecef;
            border-left-color: transparent;
        }

        .sidebar-collapsed .sidebar-submenu.show .sidebar-link.active {
            background-color: #e7f1ff;
            color: #0d6efd;
            border-left-color: transparent;
        }
/* Bookmark Items */
.sidebar-bookmark-item {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    transition: padding 0.2s ease;
}

.sidebar-collapsed .sidebar-bookmark-item {
    padding: 0;
}

.sidebar-bookmark-item .sidebar-link {
    flex: 1;
    padding: 0.5rem 0.5rem;
    margin-left: 0;
    border-left: none;
    justify-content: flex-start;
}

.sidebar-collapsed .sidebar-bookmark-item .sidebar-link {
    justify-content: center;
    padding: 0.35rem;
    gap: 0;
}

.sidebar-bookmark-item .sidebar-link:hover {
    border-left-color: transparent;
    background-color: #e9ecef;
    border-radius: 0.375rem;
}

.sidebar-collapsed .sidebar-bookmark-item .sidebar-link:hover {
    background-color: #e9ecef;
}

.sidebar-bookmark-item .sidebar-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.sidebar-collapsed .sidebar-bookmark-item .sidebar-actions {
    display: none;
}

.sidebar-bookmark-item:hover .sidebar-actions {
    opacity: 1;
}

.bookmark-edit, .bookmark-delete {
    padding: 0.25rem 0.5rem;
    color: #6c757d;
}
/* Bookmark Folders */
.sidebar-folder-item {
    margin-bottom: 0.5rem;
    transition: margin-bottom 0.2s ease;
}

.sidebar-collapsed .sidebar-folder-item {
    margin-bottom: 0;
}

.sidebar-folder-header {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    transition: padding 0.2s ease;
}

.sidebar-collapsed .sidebar-folder-header {
    padding: 0;
    justify-content: center;
}

.sidebar-folder-toggle {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    color: #495057;
    text-decoration: none;
    border: none;
    background: none;
    text-align: left;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-radius: 0.375rem;
}

.sidebar-collapsed .sidebar-folder-toggle {
    flex: none;
    padding: 0.35rem;
    justify-content: center;
    gap: 0;
    font-size: 0.8rem;
}

    .sidebar-collapsed .sidebar-folder-toggle .folder-name {
        display: none;
    }

.sidebar-folder-toggle:hover {
    color: #0d6efd;
    background-color: #e9ecef;
}

.sidebar-collapsed .sidebar-folder-toggle:hover {
    background-color: #e9ecef;
}

.sidebar-folder-content {
    padding-left: 1rem;
}

.sidebar-collapsed .sidebar-folder-content {
    display: none;
}
/* Drag and Drop */
.sidebar-bookmark-item.dragging {
    opacity: 0.5;
    background-color: #e9ecef;
}

.sidebar-bookmark-item.drag-over {
    border-top: 2px solid #0d6efd;
}
/* Main Content Adjustment */
.main-content {
    flex: 1;
    transition: margin-left 0.3s ease;
    margin-left: 0;
}

    .main-content.with-sidebar {
        margin-left: 280px;
    }

.sidebar-collapsed ~ .main-content.with-sidebar {
    margin-left: 70px;
}
/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        height: 100vh;
        width: 100%;
        max-width: 280px;
        transform: translateX(-100%);
        z-index: 1050;
    }

        .sidebar:not(.sidebar-collapsed) {
            transform: translateX(0);
        }

    .main-content.with-sidebar {
        margin-left: 0;
    }

    .sidebar-collapsed ~ .main-content.with-sidebar {
        margin-left: 0;
    }
}
/* Tooltip for collapsed state */
.sidebar-collapsed .sidebar-link {
    position: relative;
}

    .sidebar-collapsed .sidebar-link::after {
        content: attr(title);
        position: absolute;
        left: 100%;
        top: 50%;
        transform: translateY(-50%);
        background-color: #212529;
        color: #fff;
        padding: 0.5rem 0.75rem;
        border-radius: 0.25rem;
        font-size: 0.875rem;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s;
        margin-left: 0.5rem;
        z-index: 1051;
    }

    .sidebar-collapsed .sidebar-link:hover::after {
        opacity: 1;
    }
/* Icon Grid for Modal */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

    .icon-grid button {
        padding: 0.5rem;
        border: 1px solid #dee2e6;
        border-radius: 0.25rem;
        background: none;
        cursor: pointer;
        font-size: 1.5rem;
        transition: all 0.2s;
    }

        .icon-grid button:hover {
            background-color: #e9ecef;
            border-color: #0d6efd;
            color: #0d6efd;
        }
/* ============================================ SIDEBAR CUSTOMIZATION STYLES ============================================ */
.menu-item-row {
    cursor: move;
    transition: background-color 0.15s ease-in-out;
}

    .menu-item-row:hover {
        background-color: var(--earth-lightest);
    }

    .menu-item-row.dragging {
        opacity: 0.5;
        background-color: #f0f0f0;
    }

.drag-handle {
    cursor: grab;
    color: #6c757d;
    text-align: center;
}

    .drag-handle:active {
        cursor: grabbing;
    }

.sidebar-preview {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 20px;
    background-color: var(--earth-lightest);
    min-height: 300px;
}

.sidebar-preview-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-preview-item {
    padding: 8px 12px;
    margin: 4px 0;
    background-color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease-in-out;
}

    .sidebar-preview-item:hover {
        border-left-color: #0d6efd;
        background-color: var(--earth-lightest);
    }

    .sidebar-preview-item i {
        color: #6c757d;
        width: 20px;
    }

.sidebar-preview-submenu {
    list-style: none;
    padding-left: 24px;
    margin-top: 4px;
}

    .sidebar-preview-submenu .sidebar-preview-item {
        background-color: var(--earth-lightest);
        font-size: 13px;
        padding: 6px 10px;
    }
/* ============================================ VARIABLE TOOLTIP STYLES (Global) ============================================ */
.variable-info-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

    .variable-info-icon:hover {
        color: #0d6efd !important;
        transform: scale(1.1);
    }

.variable-tooltip-content {
    text-align: left;
    max-width: 500px;
    font-size: 0.875rem;
    line-height: 1.7;
    padding: 0.5rem 0;
}

    .variable-tooltip-content strong {
        display: block;
        margin-bottom: 10px;
        color: #fff;
        font-size: 0.95rem;
        font-weight: 600;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 6px;
        position: sticky;
        top: 0;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 10;
    }

    .variable-tooltip-content code {
        background-color: rgba(255, 255, 255, 0.15);
        padding: 2px 6px;
        border-radius: 3px;
        font-size: 0.85rem;
        color: #ffc107;
        font-weight: 600;
        font-family: 'Courier New', monospace;
        margin-right: 4px;
    }

        .variable-tooltip-content code + br + code {
            display: block;
            margin-top: 4px;
        }
/* Make Bootstrap tooltip larger for variable lists with scrolling */
.tooltip.show .tooltip-inner {
    max-width: 550px;
    max-height: 400px;
    text-align: left;
    text-align: start;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 10px 12px;
    border-radius: 0.375rem;
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
}
    /* Scrollbar styling for tooltip */
    .tooltip.show .tooltip-inner::-webkit-scrollbar {
        width: 6px;
    }

    .tooltip.show .tooltip-inner::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }

    .tooltip.show .tooltip-inner::-webkit-scrollbar-track {
        background-color: transparent;
    }
/* ============================================ VARIABLE POPOVER STYLES ============================================ */
.variable-popover {
    max-width: 600px !important;
}

.variable-popover-content {
    max-height: 500px;
    overflow-y: auto;
    padding: 0.75rem 0;
}

    .variable-popover-content strong {
        display: block;
        margin-bottom: 12px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding-bottom: 8px;
        position: sticky;
        top: 0;
        background-color: #fff;
        z-index: 10;
    }

    .variable-popover-content code {
        background-color: var(--earth-lightest);
        padding: 2px 6px;
        border-radius: 3px;
        font-size: 0.9rem;
        color: #d63384;
        font-weight: 600;
        font-family: 'Courier New', monospace;
        margin-right: 4px;
    }

    .variable-popover-content .variable-item {
        padding: 6px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

        .variable-popover-content .variable-item:last-child {
            border-bottom: none;
        }

        .variable-popover-content .variable-item small {
            color: #6c757d;
            display: block;
            margin-top: 2px;
        }
    /* Popover scrollbar */
    .variable-popover-content::-webkit-scrollbar {
        width: 6px;
    }

    .variable-popover-content::-webkit-scrollbar-thumb {
        background-color: #cbd5e0;
        border-radius: 3px;
    }

    .variable-popover-content::-webkit-scrollbar-track {
        background-color: transparent;
    }
/* ============================================ NOTIFICATION STYLES ============================================ */
.notification-dropdown {
    position: relative;
}

.notification-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    min-width: 45px;
}

    .notification-bell:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 24px;
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 0.7rem;
    font-weight: 700;
    display: none;
    border-radius: 50%;
    animation: badge-pulse 2s infinite;
    line-height: 24px;
    text-align: center;
}

@keyframes badge-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.notification-dropdown-menu {
    min-width: 350px;
    max-width: 450px;
    max-height: 500px;
    padding: 0;
    border: 1px solid #dee2e6;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    animation: dropdown-slide 0.15s ease-out;
}

@keyframes dropdown-slide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-dropdown-menu .dropdown-header {
    padding: 0.75rem 1rem;
    background-color: var(--earth-lightest);
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    color: #212529;
}

.notification-list-container {
    overflow-y: auto;
    max-height: 350px;
    padding: 0;
}

    .notification-list-container::-webkit-scrollbar {
        width: 6px;
    }

    .notification-list-container::-webkit-scrollbar-thumb {
        background-color: #cbd5e0;
        border-radius: 3px;
    }

    .notification-list-container::-webkit-scrollbar-track {
        background-color: transparent;
    }

.notification-item {
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    display: flex;
    background-color: #fff;
    transition: all 0.2s ease;
}

    .notification-item:hover {
        background-color: var(--earth-lightest);
    }

    .notification-item.unread {
        background-color: #f0f7ff;
        border-left: 3px solid #0d6efd !important;
    }

    .notification-item .btn-group-sm {
        gap: 0.25rem;
    }

        .notification-item .btn-group-sm .btn {
            padding: 0.25rem 0.5rem;
            font-size: 0.75rem;
            white-space: nowrap;
        }

.notification-dropdown-menu .dropdown-item:not(.dropdown-header):not(.dropdown-divider) {
    padding: 0 !important;
    border-bottom: 1px solid #dee2e6;
}

.notification-dropdown-menu .dropdown-item:last-of-type {
    border-bottom: none;
}
/* Empty state */
.notification-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #6c757d;
}

    .notification-empty-state i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        opacity: 0.5;
    }




@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(80px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================ HERO SECTION STYLES ============================================ */
/* Hero Section - Unified Base */
.hero {
    width: 100%;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--earth-text-light);
}

/* Background for all hero sections */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(3px);
    -webkit-filter: blur(3px);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    background-image: url('/Images/E50A0082.jpg');
}

/* Hero Content Container */
.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
    z-index: 1;
    position: relative;
}

/* Hero Typography */
.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
}

/* Animation for hero content */
.animated {
    opacity: 0;
    transform: translateY(50px);
    animation-name: fadeInUp;
    animation-duration: 1s;
    animation-delay: 1.2s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .hero h1 {
        font-size: clamp(2rem, 10vw, 4rem);
        padding: 0 1rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(1.5rem, 8vw, 3rem);
    }

    .hero p {
        font-size: 0.9rem;
    }
}

/* ============================================ FLOATING ADMIN SETTINGS BUTTON ============================================ */
.admin-settings-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--earth-dark) 0%, var(--earth-brand-active) 100%);
    color: var(--earth-lightest);
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(122, 107, 94, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
}

.admin-settings-button:hover {
    background: linear-gradient(135deg, #8B7B6B 0%, var(--earth-dark) 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(122, 107, 94, 0.6);
}

.admin-settings-button:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(122, 107, 94, 0.5);
}

/* Modal Overlay */
.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1600;
}

.admin-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Modal */
.admin-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    visibility: hidden;
    background: linear-gradient(135deg, var(--earth-lightest) 0%, var(--earth-light) 100%);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    z-index: 1601;
    transition: all 0.3s ease;
}

.admin-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Modal Header */
.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    border-bottom: 1px solid rgba(179, 166, 150, 0.2);
}

.admin-modal-header h2 {
    margin: 0;
    color: var(--earth-darkest);
    font-size: 1.5rem;
    font-weight: 600;
}

.admin-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--earth-dark);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.admin-modal-close:hover {
    color: var(--earth-brand-active);
    transform: rotate(90deg);
}

/* Modal Content */
.admin-modal-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-modal-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(122, 107, 94, 0.05);
    border: 1px solid rgba(179, 166, 150, 0.2);
    border-radius: 10px;
    color: var(--earth-darkest);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.admin-modal-item i {
    font-size: 24px;
    color: var(--earth-dark);
    min-width: 30px;
}

.admin-modal-item span {
    font-size: 1rem;
    font-weight: 500;
}

.admin-modal-item:hover {
    background: linear-gradient(135deg, var(--earth-dark) 0%, var(--earth-brand-active) 100%);
    color: var(--earth-lightest);
    border-color: var(--earth-dark);
    transform: translateX(5px);
}

.admin-modal-item:hover i {
    color: var(--earth-lightest);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .admin-settings-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .admin-modal {
        max-width: 90%;
    }

    .admin-modal-header {
        padding: 1.5rem;
    }

    .admin-modal-header h2 {
        font-size: 1.3rem;
    }

    .admin-modal-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .admin-settings-button {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .admin-modal {
        max-width: 95%;
        width: 100%;
    }

    .admin-modal-header {
        padding: 1rem;
    }

    .admin-modal-header h2 {
        font-size: 1.1rem;
    }

    .admin-modal-close {
        font-size: 20px;
    }

    .admin-modal-content {
        padding: 1rem;
        gap: 0.75rem;
    }

    .admin-modal-item {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .admin-modal-item i {
        font-size: 20px;
    }
}