/* Font Styles */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

@font-face {
    font-family: 'BabelStoneFlags';
    src: url('BabelStoneFlags.ttf') format('truetype');
    font-display: swap;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Required field asterisk styling */
.required-asterisk {
    color: #ff4444 !important;
    font-weight: 700 !important;
}

/* Password validation list styling */
.password-validation-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    font-size: 16px;
}

.password-validation-list li {
    padding: 4px 0;
    color: var(--greymedium);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-validation-list li::before {
    content: "";
    width: 18px;
    height: 18px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3IDlDMTcgNC41ODE3MiAxMy40MTgzIDEgOSAxQzQuNTgxNzIgMSAxIDQuNTgxNzIgMSA5QzEgMTMuNDE4MyA0LjU4MTcyIDE3IDkgMTdWMThDNC4wMjk0NCAxOCAwIDEzLjk3MDYgMCA5QzAgNC4wMjk0NCA0LjAyOTQ0IDAgOSAwQzEzLjk3MDYgMCAxOCA0LjAyOTQ0IDE4IDlDMTggMTMuOTcwNiAxMy45NzA2IDE4IDkgMThWMTdDMTMuNDE4MyAxNyAxNyAxMy40MTgzIDE3IDlaIiBmaWxsPSIjRDlEOUQ5Ii8+CjxwYXRoIGQ9Ik0xMyA4VjEwSDQuNVY4SDEzWiIgZmlsbD0iI0Q5RDlEOSIvPgo8L3N2Zz4K');
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
}

.password-validation-list li.valid {
    color: #259D37;
}

.password-validation-list li.valid::before {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1zbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3IDlDMTcgNC41ODE3MiAxMy40MTgzIDEgOSAxQzQuNTgxNzIgMSAxIDQuNTgxNzIgMSA5QzEgMTMuNDE4MyA0LjU4MTcyIDE3IDkgMTdWMThDNC4wMjk0NCAxOCAwIDEzLjk3MDYgMCA5QzAgNC4wMjk0NCA0LjAyOTQ0IDAgOSAwQzEzLjk3MDYgMCAxOCA0LjAyOTQ0IDE4IDlDMTggMTMuOTcwNiAxMy45NzA2IDE4IDkgMThWMTdDMTMuNDE4MyAxNyAxNyAxMy40MTgzIDE3IDlaIiBmaWxsPSIjMjU5RDM3Ii8+CjxwYXRoIGQ9Ik0xMy44MzIgNS41NTQ2OUw4LjI1ODc5IDEzLjkxNDFMMy45MTg5NSAxMC44MTM1TDUuMDgxMDUgOS4xODY1Mkw3Ljc0MDIzIDExLjA4NTlMMTIuMTY4IDQuNDQ1MzFMMTMuODMyIDUuNTU0NjlaIiBmaWxsPSIjMjU5RDM3Ii8+Cjwvc3ZnPgo=');
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 10px 0;
}

h1 {
    font-family: "Space Mono", monospace;
    font-size: 82px;
    font-weight: 700;
}

h2 {
    font-family: "Space Mono", monospace;
    font-size: 58px;
    font-weight: 700;
}

h3 {
    font-family: "DM Sans", sans-serif;
    font-size: 38px;
    font-weight: 700;
}

h4 {
    font-family: "DM Sans", sans-serif;
    font-size: 28px;
    font-weight: 700;
}

h5 {
    font-family: "DM Sans", sans-serif;
    font-size: 21px;
    font-weight: 700;
}

h6 {
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 600;
}

p {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
}

table {
                font-size: 14px;
    font-weight: 400;
}

/* Override for displays table */
table.displays-table {
    font-size: 16px;
}

/* General Styles */
:root {
    --green: #DBFF05;
    --greyblue: #687A85;
    --white: #FFF;
    --black: #0D0D0D;
    --greywhite: #FCFCFC;
    --greylight: #EDEDED;
    --greymedium: #D9D9D9;
    --greydark: #A3A3A3;
  }

body {
    background: white;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    margin: 0px;
}

/* Input Focus Styling */
input:focus-visible {
    border-color: var(--black);
    outline: none;
}

/* Base Button Reset */
button {
    appearance: auto;
    background: transparent;
    border: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
    font: inherit;
}

/* Primary Button Class - Main button style used throughout the app */
.btn-primary {
    margin: 6px 0;
    padding: 0;
    transform: translateY(6px) scale(1);
    transition: 0.5s;
    width: auto;
    background: transparent;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(6px) scale(1.02);
}

.btn-primary a {
    align-items: center;
    background: var(--green);
    border-radius: 0px;
    border: 2px solid var(--black);
    box-shadow: -6px 6px 0px 0px var(--black);
    color: var(--black);
    display: flex;
    font-family: "Space Mono", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    height: 52px;
    justify-content: center;
    text-decoration: none;
    text-transform: uppercase;
    transform: translate3d(6px, -6px, 10px);
    padding: 0 30px;
    width: max-content;
}

.btn-primary a.secondary {
    background: var(--white);
}

/* Disabled state for primary buttons */
.btn-primary:disabled {
    cursor: not-allowed;
    transform: translateY(6px) scale(1);
}

.btn-primary:disabled:hover {
    transform: translateY(6px) scale(1);
}

.btn-primary:disabled a {
    background: var(--greylight);
    color: var(--greymedium);
    border-color: var(--greymedium);
    box-shadow: -6px 6px 0px 0px var(--greymedium);
}

/* Tertiary Button Class - Browse files button style */
.btn-tertiary {
    background-color: var(--white);
    color: var(--black);
    border: 2px solid var(--black);
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Space Mono", monospace;
    text-transform: uppercase;
    white-space: nowrap;
}

.btn-tertiary:hover {
    background-color: var(--greylight);
}

/* Legacy support - maintain button > a styling for backward compatibility */

button a.secondary {
    background: var(--white);
}

/* Confirm button styling for display_discover_new page */
.confirm-btn {
    align-items: center;
    background: var(--green);
    border-radius: 0px;
    border: 2px solid var(--black);
    box-shadow: -6px 6px 0px 0px var(--black);
    color: var(--black);
    display: flex;
    font-family: "Space Mono", Sans-serif;
    font-size: 14px;
    font-weight: 400;
    height: 40px;
    justify-content: center;
    text-decoration: none;
    text-transform: uppercase;
    transform: translate3d(6px, -6px, 10px);
    padding: 0 16px;
    width: max-content;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.confirm-btn:hover {
    transform: translateY(6px) scale(1.02);
}

/* Full Width Buttons Container Class - Makes buttons inside take full width */
.full-width-buttons .btn-primary {
    width: calc(100% - 6px);
}

/* Legacy support for full width buttons - only target main buttons, not utility buttons */
.full-width-buttons > form > button,
.full-width-buttons > .button-container > button,
.full-width-buttons form .btn-primary {
    width: calc(100% - 6px);
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

img {
    width: 100%;
}

.main-container-logged-out {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin-top: 94px;
    padding: 80px;
}

.main-container-logged-in {
    padding: 80px 80px 80px 172px;
    margin-top: 94px;
    transition: padding-left 0.2s ease;
}

/* When secondary sidebar is open */
.secondary-sidebar-open .main-container-logged-in {
    padding-left: 352px; /* 172px + 180px */
}

/* Admin users without account - hide sidebar and adjust padding */
.admin-no-account .sidebar {
    display: none !important;
}

.admin-no-account .main-container-logged-in {
    padding-left: 80px !important;
}

.admin-no-account .footer-container {
    margin-left: 0 !important;
}

/* Mobile overrides for admin-no-account */
@media (max-width: 970px) {
    .admin-no-account .main-container-logged-in {
        padding-left: 10px !important;
    }
      .admin-no-account .footer-container {
        margin-left: 0 !important;
    }
      /* Fix for details pre elements on mobile */
    pre {
        white-space: break-spaces;
        word-break: break-all;
    }
}

.narrow-container {
    max-width: 960px;
}

.auth-container {
    max-width: 422px;
    margin: 0 auto;
}

/* Page Container Fade Transitions */
.page-container {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.page-container.fade-out {
    opacity: 0;
}

.page-container.fade-in {
    opacity: 1;
}

.col-container {
    display: flex;
    gap: 140px;
}

.col {
    width: 50%;
}

/* Header (Logged Out) Styles */

.header {
    display: flex;
    flex-direction: column;
}

.top-bar {
    align-items: center;
    background: var(--greyblue);
    display: none;
    height: 38px;
    justify-content: center;
    padding: 0 80px;
    text-align: center;
}

.bottom-bar {
    align-items: center;
    background: var(--white);
    border-bottom: 3px solid var(--black);
    border-top: 3px solid var(--black);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 7px 0px;
    display: flex;
    height: 90px;
    justify-content: space-between;
    padding: 0 80px;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    right: 0;
}

.bottom-bar nav {
    align-items: center;
    display: flex;
    gap: 10px;
}

.main-menu {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.main-menu li {
    padding: 5px 15px;
}

.admin-menu {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.admin-menu li {
    padding: 5px 15px;
}

.main-menu a {
    color: inherit;
    text-decoration: inherit;
}

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

.admin-menu a {
    color: inherit;
    text-decoration: inherit;
}

.admin-menu li:hover a {
    text-decoration: underline;
}

.header-buttons {
    display: flex;
    gap: 16px;
}

.header-buttons.admin-account {
    outline: 2px solid #FF9000;
}

.header-buttons button a {
    padding: 0 30px;
    width: max-content;
}

.app-logo {
    width: 70px;
}

/* Mobile Hamburger Menu Styles */
.mobile-menu-container {
    display: none;
    position: relative;
}

/* Style for mobile-menu-container when menu is open */
.mobile-menu-container.active {
    background: var(--green);
}

.hamburger-menu {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 41px;
    height: 27px;
    padding: 0;
}

.hamburger-line {
    background-color: var(--black);
    height: 4px;
    width: 41px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.mobile-menu-dropdown {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--white);
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 99;
}

.mobile-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-buttons {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: flex-start;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 7px;
}

/* Logged-out mobile menu buttons styling */
.mobile-menu-buttons:has(.mobile-btn) {
    padding: 20px;
    flex-direction: row;
    gap: 20px;
    justify-content: flex-end;
    align-items: flex-end;
}

.mobile-menu-buttons .btn-primary.mobile-btn a {
    font-size: 14px;
    padding: 0 30px;
    height: 44px;
    transform: translate3d(6px, -10px, 10px);
}

/* Mobile menu navigation for logged-in state */
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-item {
    padding: 12px 20px;
    color: var(--black);
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid var(--greylight);
    transition: background-color 0.2s ease;
}

.mobile-menu-item:hover {
    background-color: var(--greylight);
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

/* Mobile Main Menu Container */
.mobile-main-menu-container {
    display: none;
    position: relative;
}

/* Style for mobile-main-menu-container when menu is open */
.mobile-main-menu-container.active {
    background: var(--green);
}

.mobile-main-menu-button {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 41px;
    height: 41px;
    padding: 0;
}

.mobile-main-menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    background: white;
    border: 1px solid var(--black);
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
}

.mobile-main-menu-dropdown.show {
    display: block;
}

.mobile-main-menu-dropdown .main-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: block;
}

.mobile-main-menu-dropdown .main-menu li {
    margin: 0;
    white-space: nowrap;
}

.mobile-main-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
    border-bottom: none;
}

.mobile-main-menu-item:hover {
    background-color: #f9fafb;
    color: #111827;
}

/* Mobile Admin Menu Container */
.mobile-admin-menu-container {
    display: none;
    position: relative;
}

/* Style for mobile-admin-menu-container when menu is open */
.mobile-admin-menu-container.active {
    background: var(--green);
}

.mobile-admin-menu-button {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 41px;
    height: 41px;
    padding: 0;
}

.mobile-admin-menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    background: white;
    border: 1px solid var(--black);
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
}

.mobile-admin-menu-dropdown.show {
    display: block;
}

.mobile-admin-menu-dropdown .admin-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: block;
}

.mobile-admin-menu-dropdown .admin-menu li {
    margin: 0;
    white-space: nowrap;
}

.mobile-admin-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
    border-bottom: none;
}

.mobile-admin-menu-item:hover {
    background-color: #f9fafb;
    color: #111827;
}

/* Mobile Navigation Grid for Sidebar Icons */
@media (max-width: 970px) {    .mobile-menu-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 30px 20px;
        background: var(--white);
    }
      .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--greyblue);
        padding: 15px 10px;
        transition: all 0.2s ease;
        text-align: center;
    }
      .mobile-nav-icon-container {
        width: 60px;
        height: 60px;
        padding: 7px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px;
        transition: all 0.2s ease;
        border-radius: 0;
    }
    
    .mobile-nav-item:hover .mobile-nav-icon-container {
        background: var(--greylight);
        border: 2px solid white;
    }
    
    .mobile-nav-item.active .mobile-nav-icon-container {
        background: var(--greyblue);
        border: 2px solid var(--black);
    }
    
    .mobile-nav-item.active {
        color: var(--green);
    }
    
    .mobile-nav-svg {
        width: 45px;
        height: 45px;
        color: inherit;
        fill: currentColor;
    }
      .mobile-nav-label {
        font-size: 14px;
        font-weight: 500;
        color: var(--black);
        text-align: center;
        line-height: 1.2;
    }
    
    /* Mobile Accordion Styles */
    .mobile-accordion {
        border-top: 1px solid white;
        border-bottom: 1px solid white;
    }
    
    .mobile-accordion-header {
        width: 100%;
        padding: 15px 20px;
        background: transparent;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 16px;
        font-weight: 500;
        color: var(--black);
        cursor: pointer;
        transition: background-color 0.2s ease;
    }
    
    .mobile-accordion-header:hover {
        background: var(--greylight);
    }
    
    .accordion-arrow {
        transition: transform 0.3s ease;
    }
    
    .mobile-accordion-header.active .accordion-arrow {
        transform: rotate(180deg);
    }
    
    .mobile-accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .mobile-accordion-content.show {
        max-height: 300px;
    }
    
    .mobile-accordion-item {
        display: block;
        padding: 12px 20px;
        color: var(--black);
        text-decoration: none;
        border-bottom: 1px solid var(--greylight);
        transition: background-color 0.2s ease;
    }
    
    .mobile-accordion-item:hover {
        background: var(--greylight);
    }
    
    .mobile-accordion-item:last-child {
        border-bottom: none;
    }
}

/* Mobile Menu Username Styles */
.user-dropdown-username {
    padding: 10px 15px;
    background: var(--greylight);
    border-top: 1px solid var(--greymedium);
    text-align: center;
    margin-top: 5px;
    display: none; /* Hidden by default, shown on mobile */
}

.user-dropdown-username .username {
    font-weight: 600;
    color: var(--black);
    font-size: 12px;
}

/* Logged-in mobile styles */
@media (max-width: 970px) {
    /* Keep header buttons visible on mobile, positioned next to hamburger */
    .header-buttons {
        display: flex;
    }
      /* Hide main menu but keep header buttons */
    .main-menu {
        display: none;
    }
    
    .admin-menu {
        display: none;
    }
      /* Show mobile hamburger and main menu button */
    .mobile-menu-container {        background: transparent;
        width: 54px;
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 100%;
        justify-content: center;
    }
      .mobile-main-menu-container {
        background: transparent;
        width: 54px;
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 100%;
        justify-content: center;
    }
    
    .mobile-admin-menu-container {
        background: transparent;
        width: 54px;
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 100%;
        justify-content: center;
    }
    
    /* Position hamburger and header buttons side by side */
    .bottom-bar nav {
        display: flex;
        align-items: center;
        gap: 15px;
        height: 100%;
    }
    
    /* Hide username from button on mobile, only show in dropdown */
    .header-buttons .username {
        display: none;
    }

    .user-dropdown-username .username {
        display: block;
    }
      /* Show username in dropdown on mobile */
    .user-dropdown-username {
        display: block;
    }    /* Mobile main menu dropdown positioning */
    .mobile-main-menu-dropdown {
        top: calc(100% + 12px);
    }
    
    /* Mobile admin menu dropdown positioning */
    .mobile-admin-menu-dropdown {
        top: calc(100% + 12px);
    }
    
    /* Hide sidebar on mobile */
    .sidebar {
        display: none !important;
    }      /* Hide secondary sidebar on mobile */
    .secondary-sidebar {
        display: flex !important;
        transform: translateX(-100%);
        transition: all 0.2s ease;
        opacity: 0;
        left: 0 !important;
    }
      .secondary-sidebar.mobile-open {
        transform: translateX(0);
        z-index: 99;
        opacity: 1;
    }
    
    /* Hide account sidebar on mobile - slides in from left when toggled */
    .account-sidebar {
        display: flex !important;
        transform: translateX(-100%);
        transition: all 0.2s ease;
        opacity: 0;
        left: 0 !important;
        position: fixed;
        top: 125px;
        width: 100%;
        z-index: 99;
        background: white;
        border-right: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .account-sidebar.mobile-account-open {
        transform: translateX(0);
        opacity: 1;
    }
      /* Adjust main content margin when sidebar is hidden */
    .main-container {
        margin-left: 0;
    }      /* Mobile padding for logged-in main container */
    .main-container-logged-in {
        padding: 32px 10px !important;
        margin-top: 73px !important;
    }      /* Mobile padding for logged-out main container */
    .main-container-logged-out {
        padding: 70px 10px !important;
        margin-top: 73px !important;
    }
      /* Mobile single column layout for login/create user */
    .col-container {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .col:nth-child(2) {
        display: none;
    }
    
    .col {
        width: 100%;
    }
      /* Center headings for login/signup pages */
    .main-container-logged-out h3,
    .main-container-logged-out h6 {
        text-align: center;
    }      /* Center headings for all auth pages and account pages */
    .auth-container h3,
    .auth-container h6,
    .account-tab-content h3,
    .account-tab-content h6 {
        text-align: center;
    }    /* Mobile button text styling */
    .btn-primary a {
        font-size: 14px;
        padding: 0 30px;
        min-height: 44px;
        word-break: auto-phrase;
        height: auto;
        width: initial;
    }
    
    /* Mobile form row - stack fields vertically */
    .form-row {
        flex-direction: column;
    }
    
    /* Center align login link */
    .button-container p {
        text-align: center;
    }
      /* Mobile header border divider */
    header {
        border-bottom: 1px solid var(--greydark);
    }    /* Mobile footer - no margin since no sidebar */
    footer {
        margin-left: 0;
    }
    
    /* Mobile footer container - no margin */
    .footer-container {
        margin-left: 0 !important;
    }
    
    /* Mobile footer logo size */
    footer .app-logo {
        width: 112px;
    }
      /* Hide footer description on mobile */
    .lumi-footer-desc {
        display: none;
    }
    
    /* Hide "Connect with us" title on mobile */
    .lumi-footer h3,
    .lumi-footer h4 {
        display: none;
    }
    
    /* Center align footer contact information */
    .lumi-footer {
        text-align: center;
    }
      /* Center align footer bottom copyright */
    .lumi-footer-bottom {
        text-align: center;
    }    /* Mobile footer layout */
    .lumi-footer-right {
        flex-direction: column !important;
        width: 100%;
        gap: 10px !important;
    }
      /* Mobile footer columns full width */
    .lumi-footer-col {
        width: 100%;
    }    /* Mobile footer logo centering */
    .lumi-footer-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 0px !important;
    }
    
    /* Mobile footer lists styling */
    .lumi-footer-links ul, .lumi-footer-contact ul {
        list-style: none !important;
        padding: 0 !important;
        margin: 18px 0 !important;
    }
      /* Mobile footer-main padding */
    .lumi-footer-main {
        padding: 50px 20px !important;
    }/* Hide "Connect with us" section on mobile */
    .lumi-footer-contact h5 {
        display: none;
    }
    
    /* General mobile h5 styling */
    h5 {
        font-size: 14px;
    }
    
    /* Footer accordion styles */
    .lumi-footer-links h5 {
        background: transparent;
        border: none;
        border-top: 1px solid white;
        border-bottom: 1px solid white;
        padding: 15px 0;
        margin: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        color: white;
    }
      .lumi-footer-links ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin: 18px 0 !important;
        padding: 0 !important;
    }
    
    .lumi-footer-links.active ul {
        max-height: 200px;
    }
    
    .footer-accordion-arrow {
        transition: transform 0.3s ease;
    }
      .lumi-footer-links.active .footer-accordion-arrow {
        transform: rotate(180deg);
    }    /* Mobile secondary sidebar ul padding */
    .secondary-sidebar ul {
        padding: 74px 0 0 0 !important;
    }
    
    /* Mobile account sidebar ul padding */
    .account-sidebar ul {
        padding: 74px 0 0 0 !important;
    }
      /* Mobile text controls container - stack vertically */
    .text-controls-container {
        flex-direction: column !important;
    }
      /* Mobile animator body text - remove margin */
    .animator-body-text {
        margin: 0 !important;
    }    /* Mobile duration input - left align text */
    .duration-input {
        text-align: left !important;
    }
    
    /* Mobile content item styling */
    .content-item-image {
        aspect-ratio: 1.4 !important;
    }
    
    .content-item-actions {
        padding: 10px !important;
    }
      .content-item-info {
        padding: 10px !important;
    }
    
    /* Mobile display controls styling */
    .mobile-display-controls .control-item {
        min-height: 100px;
        border-right: 1px solid var(--greymedium);
    }
}

/* Logged-out page mobile styles */
@media (max-width: 970px) {
    .bottom-bar {
        padding: 10px 10px;
        height: 48px;
    }
    
    .main-menu {
        display: none;
    }
    
    .admin-menu {
        display: none;
    }
    
    /* Only hide header buttons on logged-out pages (where there's a top-bar) */
    .top-bar ~ .bottom-bar .header-buttons {
        display: none;
    }

    .top-bar {
        padding: 0 20px;
        font-size: 12px;
    }
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 92px;
    height: 100vh;
    background: var(--greylight);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 99;
    box-shadow: 1px 0 8px rgba(0,0,0,0.04);
    padding-top: 90px;
    border-right: 2px solid var(--black);
}

/* Main sidebar border when secondary sidebar is open */
.secondary-sidebar-open .sidebar {
    border-right: 1px solid var(--greydark);
}

.sidebar svg {
    width: 40px;
    height: 40px;
    display: block;
    margin: 0 auto;
    color: var(--greyblue);
    fill: currentColor;
}

.sidebar a.active svg {
    color: var(--green);
    fill: currentColor;
}

.sidebar a.active {
    background: var(--greyblue);
    border: 2px solid var(--black);
}

.sidebar a {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 60px;
    height: 60px;
    transition: background border 0.18s;
}

.sidebar a:not(.active):hover,
.sidebar a:not(.active):focus {
    background: var(--greylight);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    padding: 40px 0;
}

.sidebar a .sidebar-tooltip {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    margin-left: 22px;
    background: #fff;
    color: var(--greyblue);
    border: 1px solid var(--greydark);
    padding: 2px 12px;
    font-size: 14px;
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: opacity 0.18s cubic-bezier(.4,0,.2,1), transform 0.18s cubic-bezier(.4,0,.2,1);
    z-index: 1000;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sidebar a:focus {
    outline: none;
}

/* Secondary Sidebar */
.secondary-sidebar {
    position: fixed;
    top: 0;
    left: 92px;
    width: 180px;
    height: 100vh;
    background: var(--greylight);
    display: none; /* Hidden by default */
    flex-direction: column;
    z-index: 99;
    border-left: 1px solid var(--greydark);
    border-right: 2px solid var(--black);
}

.secondary-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 95px 0 0 0;
    display: flex;
    flex-direction: column;
}

.secondary-sidebar li {
    width: 100%;
}

.secondary-sidebar a {
    display: flex;
    align-items: center;
    padding: 20px 18px;
    color: var(--greyblue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    gap: 8px;
    transition: all 0.2s ease;
}

.secondary-sidebar a:hover {
    background-color: var(--greymedium);
    color: var(--black);
}

.secondary-sidebar a.active {
    background-color: var(--greyblue);
    color: white;
}

.secondary-sidebar svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Content Grid Styles */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Responsive grid adjustments */
@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (min-width: 1200px) {
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Content Items specific grid with 4 columns */
@media (min-width: 1200px) {
    .content-grid.content-items-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.content-grid-item {
    background: white;
    border: 1px solid black;
    border-radius: 0;
    cursor: default;
    transition: none;
}

.content-item-image {
    padding: 5px;
    border-bottom: 1px solid black;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1.3;
    min-height: 0;
}

.content-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
    height: 100%;
    width: 100%;
}

.content-item-info {
    padding: 15px;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom: 1px solid black;
}

.content-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.content-item-type {
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.content-item-date {
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-style: italic;
    color: var(--greydark);
    margin: 0;
}

.content-item-description {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.content-item-actions {
    padding: 15px;
    background: white;
    display: flex;
    align-items: center;
    gap: 20px;
}

.content-action-link {
    font-family: "Space Mono", monospace;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s ease;
}

.content-action-link:hover {
    color: var(--greyblue);
    text-decoration: underline;
}

.content-action-divider {
    width: 1px;
    height: 20px;
    background-color: var(--greymedium);
    flex-shrink: 0;
}

.no-content-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Content Preview Modal */
.content-preview-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    background-color: rgba(104, 122, 133, 0.65);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.content-preview-modal.show {
    display: flex;
}

.content-preview-modal-content {
    background-color: var(--white);
    border: 2px solid var(--black);
    width: 90%;
    max-height: 100%;
    max-width: 600px;
    border-radius: 0;
    box-shadow: -8px 8px 0px 0px var(--black);
    animation: modalSlideIn 0.3s ease-out;
    margin: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.content-preview-modal-body {
    padding: 40px;
}

.content-preview-structure-description {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: var(--black);
    text-align: left;
    line-height: 1.4;
}

.content-preview-modal-body hr {
    border: none;
    border-top: 1px solid var(--greydark);
    margin: 16px 0 24px 0;
}

.content-preview-structure-info {
    margin-bottom: 16px;
}

.structure-info-text {
    margin: 0;
    font-size: 12px;
    color: var(--black);
    text-align: left;
    line-height: 1.3;
}

.content-preview-display {
    margin-bottom: 0;
    text-align: left;
}

#mobile-current-preview-display {
    display: flex;
    justify-content: center;
}

.content-preview-actions {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    text-align: left;
}

.content-preview-send-btn {
    margin: 0;
}

/* Content Preview Grid Overlay */
.content-preview-overlay-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    gap: 0;
    pointer-events: none;
}

.content-preview-overlay-block {
    position: relative;
}

.content-preview-overlay-block.active {
    background-color: transparent;
}

.content-preview-overlay-block.missing {
    background-color: white;
    z-index: 1;
}

/* Overlapping grid lines using pseudo-elements */
.content-preview-overlay-block.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-top: 1px solid var(--greyblue);
    border-left: 1px solid var(--greyblue);
    z-index: 2;
}

.content-preview-overlay-block.active.last-row::before {
    border-bottom: 1px solid var(--greyblue);
}

.content-preview-overlay-block.active.last-col::before {
    border-right: 1px solid var(--greyblue);
}

/* Content Preview Modal Close Button - matches standard modal close */
.content-preview-modal .modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: var(--white);
    border: none;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    margin: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    line-height: 1;
}

.content-preview-modal .modal-close::before,
.content-preview-modal .modal-close::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 3px;
    background-color: var(--black);
}

.content-preview-modal .modal-close::before {
    transform: rotate(45deg);
}

.content-preview-modal .modal-close::after {
    transform: rotate(-45deg);
}

.content-preview-modal .modal-close:hover::before,
.content-preview-modal .modal-close:hover::after {
    background-color: var(--greyblue);
}

.content-preview-image-container {
    position: relative;
    display: inline-block;
    background: var(--greylight);
    border: 1px solid var(--black);
    margin: 0 auto;
}

.content-preview-image {
    display: block;
    max-width: 100%;
    height: auto;
}

.no-content-message {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    font-family: "Space Mono", monospace;
    font-size: 16px;
    padding: 2rem;
    grid-column: 1 / -1;
}

/* Form Styles */

form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px 0 16px 0;
}

#logout-form {
    padding: 0 !important;
}

form p {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
}

input {
    border: 2px solid var(--greydark);
    font-weight: 500;
    font-size: 16px;
    height: 60px;
    text-indent: 20px;
}

textarea {
    border: 2px solid var(--greydark);
    font-weight: 500;
    font-size: 16px;
    padding: 20px;
    resize: vertical;
    min-height: 120px;
    font-family: "DM Sans", sans-serif;
}

.display-name-textarea {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
}

label {
    font-size: 16px;
}

/* Brightness Slider Styles */
.brightness-slider-container {
    position: relative;
    width: 100%;
    margin: 20px 0;
}

.brightness-tooltip {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--greymedium);
    color: var(--black);
    border: 1px solid var(--black);
    padding: 8px;
    font-size: 12px;
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.brightness-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--greymedium);
}

.brightness-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: var(--black);
    z-index: -1;
}

.brightness-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 12px;
    background: linear-gradient(to right, var(--greyblue) 0%, var(--greyblue) var(--value, 1%), var(--greylight) var(--value, 1%), var(--greylight) 100%);
    border: 2px solid var(--black);
    outline: none;
    transition: all 0.2s ease;
    margin: 0;
    padding: 0;
}

.brightness-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    background: var(--green);
    border: 2px solid var(--black);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
}

.brightness-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.brightness-slider::-moz-range-thumb {
    width: 30px;
    height: 30px;
    background: var(--green);
    border: 2px solid var(--black);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
}

.brightness-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
}

.brightness-slider::-moz-range-track {
    background: linear-gradient(to right, var(--greyblue) 0%, var(--greyblue) var(--value, 1%), var(--greylight) var(--value, 1%), var(--greylight) 100%);
    border: 2px solid var(--black);
    height: 12px;
    margin: 0;
    padding: 0;
}

.brightness-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 14px;
    color: var(--greyblue);
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
}

.form-divider {
    align-items: center;
    display: flex;
    justify-content: center;
    position: relative;
}

.form-divider:before {
    background: var(--greydark);
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    right: 0;
}

.form-divider-text {
    background: #fff;
    border: 1px solid var(--greydark);
    color: var(--greydark);
    display: inline-block;
    font-size: 16px;
    padding: 2px 12px;
    position: relative;
    text-align: center;
    text-transform: uppercase;
}

.google::before {
    content: url('data:image/svg+xml,<svg width="48" height="48" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g transform="scale(0.5) translate(24, 24)"><path fill="%23FFC107" d="M43.611 20.083H42V20H24v8h11.303c-1.649 4.657-6.08 8-11.303 8-6.627 0-12-5.373-12-12s5.373-12 12-12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 12.955 4 4 12.955 4 24s8.955 20 20 20 20-8.955 20-20c0-1.341-.138-2.65-.389-3.917z"></path><path fill="%23FF3D00" d="M6.306 14.691l6.571 4.819C14.655 15.108 18.961 12 24 12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 16.318 4 9.656 8.337 6.306 14.691z"></path><path fill="%234CAF50" d="M24 44c5.166 0 9.86-1.977 13.409-5.192l-6.19-5.238C29.211 35.091 26.715 36 24 36c-5.202 0-9.619-3.317-11.283-7.946l-6.522 5.025C9.505 39.556 16.227 44 24 44z"></path><path fill="%231976D2" d="M43.611 20.083H42V20H24v8h11.303c-.792 2.237-2.231 4.166-4.087 5.571l6.19 5.238C36.971 39.205 44 34 44 24c0-1.341-.138-2.65-.389-3.917z"></path></g></svg>');
    height: 48px;
    width: 48px;
}

/* Footer Styles */
.footer-container {
    margin-left: 92px;
    transition: margin-left 0.2s ease;
}

/* Footer adjustment when secondary sidebar is open */
.secondary-sidebar-open .footer-container {
    margin-left: 272px; /* 92px + 180px */
}

.lumi-footer {
  background: var(--greyblue);
  color: var(--greylight);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  padding: 0;
  border-top: 2px solid var(--black);
}
.lumi-footer-main {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
  padding: 56px 80px 32px 80px;
}
.lumi-footer-col {
  min-width: 220px;
}
.lumi-footer-brand {
  max-width: 420px;
}
.lumi-footer-logo {
  margin-bottom: 32px;
}

/* Hide footer accordion arrow on desktop - only show on mobile */
.footer-accordion-arrow {
    display: none;
}

/* Table cell content container for admin blocks */
.table-cell-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Admin blocks table specific styling */
#admin-blocks-container td {
    vertical-align: top;
    white-space: nowrap;
}

#admin-blocks-container .sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 20px;
}

#admin-blocks-container .sortable:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

#admin-blocks-container .sort-arrow {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Admin displays table specific styling */
#admin-displays-container td {
    vertical-align: top;
    white-space: nowrap;
}

#admin-displays-container .sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 20px;
}

#admin-displays-container .sortable:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

#admin-displays-container .sort-arrow {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Admin groups table specific styling */
#admin-groups-container td {
    white-space: nowrap;
}

#admin-groups-container .sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 20px;
}

#admin-groups-container .sortable:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

#admin-groups-container .sort-arrow {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Account history table specific styling */
.tab-container td {
    white-space: nowrap;
    vertical-align: top;
}

.tab-container .sort-arrow {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.tab-container .sortable {
    position: relative;
    cursor: pointer;
    user-select: none;
    padding-right: 24px;
}

.tab-container .sortable:hover {
    background-color: #f3f4f6;
}

.lumi-footer-logo img {
    width: 140px;
    height: auto;
    display: block;
}

.lumi-footer-desc {
  margin-bottom: 0;
  line-height: 1.4;
}
.lumi-footer-right {
  display: flex;
  flex-direction: row;
  gap: 80px;
}
.lumi-footer-links ul,
.lumi-footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 40px 0;
}
.lumi-footer-links li,
.lumi-footer-contact li {
  margin-bottom: 20px;
  color: var(--greylight);
}
.lumi-footer-links a {
  color: var(--greylight);
  font-weight: 400;
  text-decoration: none;
}
.lumi-footer-links a:hover {
  text-decoration: underline;
}
.lumi-footer-contact a {
  color: var(--greylight);
  font-weight: 700;
  text-decoration: underline;
}
.lumi-footer-contact strong {
  font-weight: 700;
  color: var(--greylight);
}
.lumi-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #fff2;
  padding: 24px 80px 24px 80px;
  font-size: 16px;
  background: var(--greyblue);
}
.lumi-footer-credit-link {
  color: var(--green);
  text-decoration: underline;
}
@media (max-width: 1100px) {
  .lumi-footer-main {
    flex-direction: column;
    gap: 40px;
    padding: 40px 24px 24px 24px;
  }
  .lumi-footer-bottom {
    flex-direction: column;
    gap: 12px;
    padding: 18px 24px 18px 24px;
  }
  .lumi-footer {
    margin-left: 0;
  }
}

/* Displays Table Styling */
.displays-container {
    margin: 2rem 0;
}

/* Status Summary Title */
.status-summary-title {
    font-size: 14px;
    font-weight: 400;
    color: var(--black);
    margin-bottom: 8px;
    font-family: "DM Sans", sans-serif;
}

/* Status Summary Card */
.status-summary-card {
    background: white;
    border: 1px solid var(--greymedium);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-family: "DM Sans", sans-serif;
    max-width: fit-content;
    gap: 24px;
}

.status-summary-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-count {
    display: flex;
    align-items: center;
    gap: 6px;
}

.count-number {
    font-weight: 700;
}

.status-divider {
    width: 1px;
    height: 20px;
    background-color: var(--greymedium);
    margin: 0 8px;
}

.status-header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 10px;
    gap: 20px;
    max-width: 790px;
    flex-wrap: wrap;
}

.status-header-container .status-summary-card {
    margin-bottom: 0;
}

/* Custom checkbox styles for blocks table */
.block-checkbox {
    width: 20px;
    height: 20px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: transparent;
    border: 1px solid var(--black);
    cursor: pointer;
    position: relative;
}

.block-checkbox:checked {
    background-color: var(--greyblue);
    border: 1px solid var(--black);
}

.block-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid var(--green);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Health Check Button */
.health-check-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    text-transform: uppercase;
    color: #0D0D0D;
    cursor: pointer;
    margin-left: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.health-check-button:hover {
    background-color: rgba(13, 13, 13, 0.05);
}

/* Selection header styling */
#selection-count {
    font-size: 12px;
    color: var(--black);
    text-transform: none;
    font-weight: normal;
}

/* Health Check Table Styling */
.health-check-table-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--greymedium);
}

.health-check-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
}

.health-check-table thead {
    background-color: var(--greylight);
    position: sticky;
    top: 0;
}

.health-check-table th {
    padding: 0.1rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--greyblue);
    text-transform: uppercase;
    border-bottom: 1px solid var(--greymedium);
    font-size: 12px;
    white-space: nowrap;
}

.health-check-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
    text-align: left;
    font-size: 14px;
}

.health-check-table tbody tr:hover {
    background-color: #f9fafb;
}

.health-check-table tbody tr:last-child td {
    border-bottom: none;
}

/* Health metric value styling with color coding */
.health-metric-value {
    font-family: "Space Mono", monospace;
    font-weight: 600;
}

.health-metric-value.health-critical {
    color: #FF0000; /* Red for critical values */
}

.health-metric-value.health-warning {
    color: #FF9000; /* Orange for warning values */
}

.health-metric-value.health-good {
    color: #259D37; /* Green for good values */
}

.health-metric-value.health-unknown {
    color: var(--greyblue); /* Grey for unknown/no data */
}

#display-structure-text {
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: var(--black);
    margin: 0;
}

#display-preview-text {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--black);
    margin-top: 2rem;
    margin-bottom: 10px;
}

.status-timestamp-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-timestamp {
    font-size: 14px;
    color: var(--greyblue);
}

.refresh-button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--greyblue);
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-button:hover {
    background-color: var(--lightgrey);
    color: var(--black);
}

.refresh-button:active {
    transform: scale(0.95);
}

.refresh-button svg {
    transition: transform 0.2s ease;
}

.refresh-button:hover svg {
    transform: rotate(90deg);
}

.table-card {
    background: white;
    border: 1px solid var(--greymedium);
    padding: 20px;
    overflow: visible;
}

/* Specific table-card styles for status tab */
#status-layout-card {
    width: 750px;
    max-height: 750px;
    overflow: auto;
}

#status-layout-card .table-container {
    overflow: visible;
    max-width: 100%;
}

#display-preview-card {
    width: 500px;
}

/* Grid boxes in display preview card should have greyblue outline */
#display-preview-card div[style*="grid-template"] > div {
    outline: 0.5px solid var(--greyblue) !important;
    border: none !important;
}

.table-container {
    background: white;
    overflow: visible;
    overflow-x: auto;
}

.displays-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
}

.displays-table thead {
    background-color: var(--greylight);
}

.displays-table th {
    padding: 0.1rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--greyblue);
    text-transform: uppercase;
    border-top: 1px solid var(--greymedium);
    border-bottom: 1px solid var(--greymedium);
    border-left: none;
    border-right: none;
    font-size: 12px;
    height: 34px;
    white-space: nowrap;
}

.displays-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
    text-align: left;
    max-height: 80px;
    font-size: 16px;
}

.displays-table tbody tr:hover {
    background-color: #f9fafb;
}

/* Clickable table rows for blocks */
.displays-table tbody tr[style*="cursor: pointer"]:hover {
    transition: background-color 0.2s ease;
}

.displays-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status badges */
.status-badge {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
}

.status-online {
    color: #259D37;
}

.status-offline {
    color: #FF0000;
}

.status-issues {
    color: #FF9000;
}

.status-standby {
    color: #8B5CF6;
}

/* Layout badges */
.layout-badge {
    display: inline-block;
    padding: 4px 8px;
    background-color: #e0e7ff;
    color: #3730a3;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    font-family: "Space Mono", monospace;
}

.layout-unknown {
    color: #9ca3af;
    font-style: italic;
}

/* Preview styling */
.no-preview {
    color: #9ca3af;
    font-style: italic;
}

/* No displays message */
.no-displays {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 3rem 1rem;
}

/* Kebab Menu Styling */
.kebab-menu {
    position: relative;
    display: inline-block;
}

.kebab-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    color: #6b7280;
    transition: all 0.2s ease;
}

.kebab-button:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.kebab-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid var(--black);
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 180px;
    overflow: hidden;
}

.kebab-dropdown.show {
    display: block;
}

/* Global kebab dropdown positioned outside the table */
.global-kebab-dropdown {
    position: absolute;
    top: 0;
    left: 0;
    background: white;
    border: 1px solid var(--black);
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    width: 180px;
    overflow: hidden;
    display: none;
}

.global-kebab-dropdown.show {
    display: block;
}

.kebab-item {
    display: block;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
    border-bottom: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.kebab-item:last-child {
    border-bottom: none;
}

.kebab-item:hover {
    background-color: #f9fafb;
    color: #111827;
}

.kebab-last {
    border-top: 1px solid var(--black);
}

.kebab-danger {
    color: #dc2626 !important;
}

.kebab-danger:hover {
    background-color: #FF0000 !important;
    color: white !important;
}

/* Removed kebab-separator styling */

/* Layout Grid Styling */
.layout-grid {
    display: grid;
    gap: 5px;
    width: 100%;
    height: auto;
    max-width: 60px;
}

.layout-grid-cell {
    aspect-ratio: 1;
    position: relative;
}

.layout-grid-cell.visible {
    background-color: white;
    border: 2px solid #000;
}

.layout-grid-cell.invisible {
    background-color: transparent;
}

.layout-grid-cell.offline {
    border-color: #FF0000;
}

.layout-grid-cell.offline::before,
.layout-grid-cell.offline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.layout-grid-cell.offline::before {
    background: linear-gradient(45deg, transparent 48%, #FF0000 48%, #FF0000 52%, transparent 52%);
}

.layout-grid-cell.offline::after {
    background: linear-gradient(-45deg, transparent 48%, #FF0000 48%, #FF0000 52%, transparent 52%);
}

/* Status Layout Grid - Larger grid for status tab */
.status-layout-grid {
    display: grid;
    gap: 10px;
    width: fit-content; /* Make grid fit content */
    height: auto;
    justify-content: center; /* Center grid content */
}

.status-layout-grid-cell {
    aspect-ratio: 1;
    background-color: white;
    border: 2px solid #000;
    position: relative;
    /* width and height are now set dynamically via JavaScript */
}

.status-layout-grid-cell.online {
    border-color: #259D37; /* Green for online */
}

.status-layout-grid-cell.warning {
    border-color: #FF9000; /* Amber for warning (high temp/low battery/high humidity) */
}

.status-layout-grid-cell.offline {
    border-color: #FF0000;
}

.status-layout-grid-cell.offline::before {
    content: ''; 
    height: 2px;
    width: 141.421%;
    background-color: #FF0000;
    position: absolute;
    left: 0px;
    transform: rotate(45deg);
    transform-origin: 0 0;
    pointer-events: none;
}

.status-layout-grid-cell.offline::after {
    content: ''; 
    height: 2px;
    width: 141.421%;
    background-color: #FF0000;
    position: absolute;
    right: 0px;
    transform: rotate(-45deg);
    transform-origin: 100% 0;
    pointer-events: none;
}

/* Block Hover Popup */
.block-popup {
    position: absolute;
    background: white;
    border: 1px solid var(--greydark);
    padding: 20px;
    font-family: "DM Sans", sans-serif;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    display: none;
    width: auto;
    box-sizing: border-box;
}

.block-popup-header {
    font-size: 12px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 10px;
    white-space: nowrap;
}

.block-popup-data-row {
    display: flex;
    gap: 5px;
}

.block-popup-data-box {
    background: var(--greylight);
    width: 60px;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.block-popup-data-value {
    font-family: "Space Mono", monospace;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
}

/* Health-based color classes for popup data values */
.block-popup-data-value {
    color: var(--black); /* Default color (black) */
}

.block-popup-data-value.health-critical {
    color: #FF0000; /* Red for critical health values */
}

.block-popup-data-value.health-warning {
    color: #FF9000; /* Orange for warning health values */
}

.block-popup-data-value.health-good {
    color: #259D37; /* Green for good health values */
}

.block-popup-data-label {
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: var(--black);
    line-height: 1;
}

.layout-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.layout-dimension-text {
    font-size: 16px;
    color: #6b7280;
    font-family: "Space Mono", monospace;
    white-space: nowrap;
}

/* Preview Image Styling */
.preview-image {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
    object-position: left center;
}

/* Display Preview Image Styling (for display_read view) */
.display-preview-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    position: absolute;
    top: 0;
    left: 0;
}

/* Tab Navigation Styling */
.tab-container {
    margin: 2rem 0;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid var(--greyblue);
    margin-bottom: 1.5rem;
    gap: 30px;
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 0px;
    font-family: "DM Sans", sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--greydark);
    cursor: pointer;
    border-bottom: 5px solid transparent;
    transition: all 0.2s ease;
    margin: 0;
    transform: none;
    width: auto;
}

.tab-button:hover {
    background-color: transparent;
    transform: none;
}

.tab-button.active {
    color: var(--black);
    border-bottom-color: var(--greyblue);
    border-bottom-width: 5px;
    background-color: transparent;
    font-size: 28px;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Override button styles for tab buttons */
.tab-button a {
    display: none;
}

.tab-button {
    box-shadow: none;
    border-radius: 0;
}

/* Pagination Styling */
.pagination-container {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-arrow {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    color: var(--greyblue);
    transition: all 0.2s ease;
    margin: 0;
    transform: none;
    width: auto;
    box-shadow: none;
}

.pagination-arrow:hover:not(:disabled) {
    background-color: var(--greylight);
    transform: none !important;
}

.pagination-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.pagination-arrow:active {
    transform: none !important;
}

.pagination-arrow:focus {
    transform: none !important;
}

.pagination-arrow a {
    display: none;
}

.pagination-numbers {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.pagination-number {
    background: none;
    border: 2px solid transparent;
    padding: 10px;
    cursor: pointer;
    font-family: "DM Sans", sans-serif;
    font-size: 21px;
    color: var(--greymedium);
    transition: all 0.2s ease;
    margin: 0;
    transform: none;
    width: 40px;
    height: 40px;
    box-shadow: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-number:hover {
    background-color: var(--greylight);
    transform: none !important;
}

.pagination-number.active {
    background-color: var(--greyblue);
    border-color: var(--black);
    color: var(--green);
    transform: none !important;
}

.pagination-number a {
    display: none;
}

.pagination-info {
    font-style: italic;
    font-size: 14px;
    font-weight: 300;
    color: var(--greyblue);
}

/* Page Title Styling - Reusable across all logged-in pages */
.page-title {
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-container-title-display {
    font-weight: 400;
}

/* Page Header Layout */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--black);
    padding-bottom: 1rem;
}

/* Hide mobile settings icon on desktop */
.mobile-settings-icon {
    display: none;
}

/* Hide mobile preview icon on desktop */
.mobile-preview-icon {
    display: none;
}

.page-header-actions {
    display: flex;
    gap: 1rem;
}

/* Current Preview */
.current-preview-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.current-preview-label {
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: var(--greydark);
    text-align: center;
}

.current-preview-display {
    max-width: 150px;
    border: 1px solid var(--greymedium);
    background: var(--greylight);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.current-preview-display img {
    max-width: 100%;
    height: auto;
    display: block;
}

.current-preview-placeholder {
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    color: var(--greydark);
    text-align: center;
    padding: 20px;
}

/* Current preview specific table-card styling */
.current-preview-table-card {
    background: white;
    border: 1px solid var(--greymedium);
    padding: 4px;
    overflow: visible;
    width: 150px;
}

/* Current preview image styling to match modal */
.current-preview-table-card .display-preview-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    position: absolute;
    top: 0;
    left: 0;
}

/* Display Controls */
.display-controls {
    display: flex;
    gap: 0;
}

.control-item {
    border: 1px solid var(--greymedium);
    border-right: none;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    min-height: 60px;
    background: white;
}

.control-item:last-child {
    border-right: 1px solid var(--greymedium);
}

.control-link {
    font-family: "Space Mono", monospace;
    font-size: 16px;
    font-weight: 400;
    color: var(--black);
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
}

.control-link:hover {
    color: var(--black);
    font-weight: 700;
    text-decoration: underline;
}

.control-label {
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: var(--black);
    margin-bottom: 6px;
    text-align: center;
}

/* Toggle Switch Styling */
.toggle-switch {
    position: relative;
    display: inline-block;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-label {
    position: relative;
    display: inline-block;
    width: 72px;
    height: 34px;
    background-color: white;
    border: 3px solid var(--black);
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-label::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background-color: var(--green);
    border: 3px solid var(--black);
    border-radius: 50%;
    transition: transform 0.3s ease;
    z-index: 2;
}

.toggle-label::after {
    content: 'OFF';
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    font-family: "Space Mono", monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    transition: opacity 0.3s ease;
    z-index: 1;
}

.toggle-input:checked + .toggle-label {
    background-color: var(--greyblue);
}

.toggle-input:checked + .toggle-label::before {
    transform: translateX(38px);
}

.toggle-input:checked + .toggle-label::after {
    content: 'ON';
    left: 8px;
    right: auto;
    color: white;
}

.toggle-input:disabled + .toggle-label {    opacity: 0.6;
    cursor: not-allowed;
}

/* Hide mobile display management on desktop */
.mobile-display-management {
    display: none;
}

/* Page header adjustments for smaller screens */
@media (max-width: 970px) {
    h1 {
        font-size: 58px !important;
        line-height: 110% !important;
    }
    
    h2 {
        font-size: 38px !important;
        line-height: 110% !important;
    }
    
    h3 {
        font-size: 28px !important;
        line-height: 110% !important;
    }
    
    h4 {
        font-size: 21px !important;
        line-height: 110% !important;
    }
    
    h5 {
        font-size: 18px !important;
        line-height: 110% !important;
    }
    
    h6 {
        font-size: 14px !important;
        line-height: 110% !important;
    }
    
    p {
        font-size: 12px !important;
    }
      table {
        font-size: 12px !important;
    }
    
    /* Override specific table classes for mobile */
    table.displays-table {
        font-size: 12px !important;
    }
    
    .displays-table {
        font-size: 12px !important;
    }
    
    .displays-table th {
        font-size: 12px !important;
    }
    
    .displays-table td {
        font-size: 12px !important;
    }
    
    .health-check-table {
        font-size: 12px !important;
    }
    
    .health-check-table th {
        font-size: 12px !important;
    }
    
    .health-check-table td {
        font-size: 12px !important;
    }
    
    .frames-table th {
        font-size: 12px !important;
    }
      .frames-table td {
        font-size: 12px !important;
    }
    
    .dashboard-card .content-action-link {
        font-size: 14px !important;
    }   
    
    .page-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 2rem;
        border-bottom: 1px solid var(--black);
        padding-bottom: 1rem;
        flex-direction: column;
        gap: 24px;
    }
      .page-header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .table-card {
        background: white;
        border: 1px solid var(--greymedium);
        padding: 8px;        overflow: visible;
    }
    
    .table-container {
        background: white;
        overflow-x: auto;
        overflow-y: visible;
    }
    
    .displays-table {
        min-width: 100%;
    }
    
    .status-summary-card {
        font-size: 14px !important;
    }
    
    .status-timestamp {
        display: none !important;
    }
    
    .status-timestamp-mobile {
        display: block !important;
        text-align: center !important;
        margin: 0.5rem 0 2rem 0 !important;
        font-size: 12px !important;
        color: var(--greydark);
        font-style: italic;
    }
      .status-summary-row {
        align-items: flex-start !important;
        margin-bottom: 0px !important;
        flex-direction: column;
        margin-top: 1.5em;
    }    
    .page-title {
        flex-direction: column !important;
    }
    
    /* Display read specific page header - row layout */
    #management-container .page-header,
    #content-container .page-header {
        flex-direction: row;
        align-items: flex-end;
    }
    
    /* Hide desktop display controls on mobile */
    .display-controls {
        display: none !important;
    }
    
    /* Show mobile settings icon */
    .mobile-settings-icon {
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 8px;
        border-radius: 4px;
        transition: background-color 0.2s ease;
    }
      .mobile-settings-icon:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }
    
    /* Hide desktop current preview container on mobile */
    .current-preview-container {
        display: none !important;
    }
    
    /* Show mobile preview icon */
    .mobile-preview-icon {
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 8px;
        border-radius: 4px;
        transition: background-color 0.2s ease;
    }
    
    .mobile-preview-icon:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }
    
    /* Mobile current preview modal */
    .mobile-current-preview {
        text-align: center;
    }
    
    .mobile-current-preview .current-preview-label {
        margin-bottom: 1rem;
        font-weight: 500;
    }
      .mobile-current-preview .current-preview-display {
        max-width: 100%;
        max-height: 300px;
        overflow: hidden;
        border-radius: 4px;
        border: 1px solid var(--greydark);
    }
      /* Mobile card widths */
    #display-preview-card,
    #status-layout-card {
        width: calc(100% - 20px) !important;
    }
    
    /* Mobile form padding */
    form {
        padding: 16px 0 16px 0;
    }
      /* Mobile display controls modal */
    .mobile-display-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .mobile-display-controls .control-item {
        min-height: 100px;
    }
    
    .refresh-button {
        font-size: 0 !important;
    }
      .refresh-button svg {
        font-size: initial !important;
    }
    
    .health-check-button {
        display: block !important;
        width: initial;
        margin: 0;
        order: 1 !important;
    }
    
    .content-preview-modal {
        width: calc(100% - 28px);
        padding: 10px 10px 18px 18px;
        height: calc(100% - 28px);
    }
      .content-preview-modal-body {
        padding: 20px;
    }
      .status-summary-content {
        display: flex;
        align-items: center;
        gap: 10px;
    }    .status-badge {
        font-size: 12px;
    }
    
    .tab-nav {
        gap: 15px;
    }
    
    .tab-button {
        font-size: 18px !important;
        padding: 8px 0px;
        border-bottom-width: 3px;
    }
    
    .tab-button.active {
        font-size: 18px !important;
        border-bottom-width: 3px;
    }
      .status-summary-title {
        display: none;
    }
      .modal.show {
        display: flex;
        width: calc(100% - 28px);
        padding: 10px 10px 18px 18px;
        max-height: calc(100% - 28px);
    }    .modal-content {
        width: calc(100% - 28px);
        max-width: 600px;
        max-height: calc(100% - 28px);
        overflow-y: scroll;
    }.modal-body {
        padding: 20px;
    }
      #remove-block-modal .content-preview-actions button:nth-child(2) {
        display: none;
    }
      .toast-container {
        top: 74px !important;
    }      .toast {
        padding: 0 10px !important;
        width: calc(100% - 20px) !important;
    }
      .secondary-sidebar-open .toast {
        padding: 0 10px !important;
        width: calc(100% - 20px) !important;
    }
      .mobile-display-management {
        display: flex !important;
        align-items: center;
        height: 52px;
        padding: 0 10px;
        background: white;
        border-bottom: 1px solid var(--black);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        gap: 12px;
        margin-top: 73px;
        position: fixed;
        width: 100%;
        z-index: 99;    }      .mobile-display-management h5 {
        font-weight: 400;
        margin: 0;
    }
    
    /* Mobile account management bar */
    .mobile-account-management {
        display: flex !important;
        align-items: center;
        height: 52px;
        padding: 0 10px;
        background: white;
        border-bottom: 1px solid var(--black);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        gap: 12px;
        margin-top: 73px;
        position: fixed;
        width: 100%;
        z-index: 99;
    }    .mobile-account-management h5 {
        font-weight: 400;
        margin: 0;
    }
    .secondary-sidebar.mobile-open {
        transform: translateX(0) !important;
        z-index: 99;
        opacity: 1;
    }
    
    /* Mobile overlay for secondary sidebar */
    .mobile-sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 99;
        transition: opacity 0.3s ease-in-out;    }    .mobile-sidebar-overlay.show {
        display: block;
    }
}

/* Display read specific - mobile display management bar present */
@media (max-width: 970px) {
    body:has(.mobile-display-management) .main-container-logged-in {
        padding: 102px 10px !important;
        margin-top: 73px !important;
    }
}

/* Account pages specific - mobile account management bar present */
@media (max-width: 970px) {
    body:has(.mobile-account-management) .main-container-logged-in {
        padding: 102px 10px !important;
        margin-top: 73px !important;
    }
}

/* Login form specific button styling - override default max-content width */
#user-login .btn-primary a,
.button-container .btn-primary a {
    width: initial;
}

/* Create user form specific button styling - ensure full width */
#create-user-form a {
    width: initial;
}

/* Password reset form specific button styling - ensure full width */
#password-reset-form a {
    width: initial;
}

/* Password reset confirm form specific button styling - ensure full width */
#password-reset-confirm-form a {
    width: initial;
}

/* Password reset complete page button styling - ensure full width */
.auth-container .btn-primary a {
    width: initial;
}

#user-login > a {
color: black;
text-decoration: none;
font-size: 16px;
align-self: flex-end;
}

#user-login > a:hover {
text-decoration: underline;
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 95px;
    left: 0px;
    right: 0px;
    z-index: 98;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0;
}

/* Toast container styling for logged-out pages */
.main-container-logged-out .toast-container {
    padding: 0 80px;
}

.toast {
    position: relative;    background: #259D37; /* Default success green */
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 80px 0 172px;
    min-height: 42px;
    width: calc(100% - 252px); /* Adjust for margins */
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: white;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, margin 0.2s ease;
    opacity: 0;
}

/* When secondary sidebar is open */
.secondary-sidebar-open .toast {
    padding: 0 80px 0 352px;
    width: calc(100% - 432px); /* Adjust for larger left margin */
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.hide {
    transform: translateY(-100%);
    opacity: 0;
}

.toast.success {
    background: #259D37;
}

.toast.error {
    background: #FF0000;
}

.toast.info {
    background: #259D37; /* Use success green for info */
}

.toast.warning {
    background: #FF0000; /* Use error red for warning */
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    height: 100%;
}

.toast-message {
    color: white;
    font-weight: 500;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 40px;
    font-weight: 300;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Grid Functions Styling */
.grid-functions {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

/* Content Filters Styling */
.content-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--black);
    margin: 0;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-button {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--black);
    background: var(--white);
    border: 1px solid var(--greydark);
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
    margin: 0;
    transform: none;
    box-shadow: none;
    width: auto;
}

.filter-button:hover {
    background-color: var(--greylight);
    transform: none;
}

.filter-button.active {
    background: var(--greyblue);
    border-color: var(--black);
    color: var(--white);
}

.filter-button a {
    display: none;
}

/* Content Sorting Styling */
.content-sorting {
    display: flex;
    align-items: flex-start;
}

.sort-dropdown {
    position: relative;
    display: inline-block;
}

.sort-dropdown-button {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--black);
    background: var(--white);
    border: 2px solid var(--greydark);
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border-radius: 0;
    margin: 0;
    transform: none;
    box-shadow: none;
    width: auto;
    min-width: 200px;
    justify-content: space-between;
}

.sort-dropdown-button:hover {
    background-color: var(--greylight);
    transform: none;
}

.sort-dropdown-button:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.sort-dropdown-button svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.sort-dropdown.open .sort-dropdown-button svg {
    transform: rotate(180deg);
}

.sort-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--greydark);
    border-top: none;
    display: none;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.sort-dropdown.open .sort-dropdown-menu {
    display: block;
}

.sort-option {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--black);
    background: var(--white);
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: left;
    transition: background-color 0.2s ease;
}

.sort-option:hover {
    background-color: var(--greylight);
    transform: none;
}

.sort-option.active {
    font-weight: 700;
}

/* Responsive adjustments for grid functions */
@media (max-width: 970px) {
    .grid-functions {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .sort-dropdown {
        width: 100%;
    }
    
    .sort-dropdown-button {
        width: 100%;
    }
}

/* Upload Area Styling */
.upload-area-container {
    max-width: 650px;
    margin-bottom: 24px;
}

.upload-labels {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.upload-format-label {
    font-size: 12px;
    color: var(--greydark);
    font-family: "DM Sans", sans-serif;
}

.upload-area {
    border: none;
    background: 
        linear-gradient(90deg, var(--greydark) 0px, var(--greydark) 7px, transparent 7px, transparent 14px) repeat-x,
        linear-gradient(90deg, var(--greydark) 0px, var(--greydark) 7px, transparent 7px, transparent 14px) repeat-x,
        linear-gradient(0deg, var(--greydark) 0px, var(--greydark) 7px, transparent 7px, transparent 14px) repeat-y,
        linear-gradient(0deg, var(--greydark) 0px, var(--greydark) 7px, transparent 7px, transparent 14px) repeat-y,
        var(--white);
    background-size: 14px 1px, 14px 1px, 1px 14px, 1px 14px, auto;
    background-position: 0 0, 0 100%, 0 0, 100% 0;
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y, no-repeat;
    padding: 12px 16px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.upload-area.drag-over {
    background: 
        linear-gradient(90deg, var(--primary) 0px, var(--primary) 7px, transparent 7px, transparent 14px) repeat-x,
        linear-gradient(90deg, var(--primary) 0px, var(--primary) 7px, transparent 7px, transparent 14px) repeat-x,
        linear-gradient(0deg, var(--primary) 0px, var(--primary) 7px, transparent 7px, transparent 14px) repeat-y,
        linear-gradient(0deg, var(--primary) 0px, var(--primary) 7px, transparent 7px, transparent 14px) repeat-y,
        #f0f9ff;
    background-size: 14px 1px, 14px 1px, 1px 14px, 1px 14px, auto;
    background-position: 0 0, 0 100%, 0 0, 100% 0;
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y, no-repeat;
}

.upload-area.error-state {
    background: 
        linear-gradient(90deg, #ef4444 0px, #ef4444 7px, transparent 7px, transparent 14px) repeat-x,
        linear-gradient(90deg, #ef4444 0px, #ef4444 7px, transparent 7px, transparent 14px) repeat-x,
        linear-gradient(0deg, #ef4444 0px, #ef4444 7px, transparent 7px, transparent 14px) repeat-y,
        linear-gradient(0deg, #ef4444 0px, #ef4444 7px, transparent 7px, transparent 14px) repeat-y,
        #fef2f2;
    background-size: 14px 1px, 14px 1px, 1px 14px, 1px 14px, auto;
    background-position: 0 0, 0 100%, 0 0, 100% 0;
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y, no-repeat;
}

.upload-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upload-error-text {
    font-size: 14px;
    color: #ef4444;
    font-family: "DM Sans", sans-serif;
}

.upload-size-label {
    font-size: 12px;
    color: var(--greydark);
    font-family: "DM Sans", sans-serif;
}

.file-status {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-status-text {
    font-size: 14px;
    color: var(--greymedium);
    font-family: "DM Sans", sans-serif;
}

.file-status-text.file-selected {
    color: #22c55e; /* Green color for selected files */
    font-weight: 500;
    word-break: break-all;
}

.file-size-text {
    font-size: 12px;
    font-family: "DM Sans", sans-serif;
    display: none;
}

.clear-file-btn {
    background: var(--white);
    border: none;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    margin: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    line-height: 1;
    position: relative;
    transition: all 0.2s ease;
}

.clear-file-btn::before,
.clear-file-btn::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: var(--greydark);
    transition: background-color 0.2s ease;
}

.clear-file-btn::before {
    transform: rotate(45deg);
}

.clear-file-btn::after {
    transform: rotate(-45deg);
}

.clear-file-btn:hover::before,
.clear-file-btn:hover::after {
    background-color: var(--black);
}

/* Description Field Styling */
.upload-description-container {
    max-width: 650px;
    margin-bottom: 16px;
}

.upload-description-container h5 {
    margin-bottom: 8px;
}

.description-body-text {
    font-size: 14px;
    color: var(--greydark);
    font-family: "DM Sans", sans-serif;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.textarea-container {
    position: relative;
}

.description-textarea {
    width: 100%;
    padding: 20px;
    border: 2px solid var(--greydark);
    font-size: 16px;
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
    color: var(--black);
    background-color: var(--white);
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.description-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.description-textarea::placeholder {
    color: var(--greymedium);
}

.character-count {
    font-size: 12px;
    color: var(--greydark);
    font-family: "DM Sans", sans-serif;
    font-style: italic;
    text-align: right;
    margin-top: -8px;
    margin-bottom: 8px;
}

/* Generic Divider */
.divider {
    width: 100%;
    height: 1px;
    background-color: var(--greylight);
    margin: 24px 0;
}

/* Upload Submit Button */
.upload-submit-container {
    max-width: 650px;
    margin-top: 16px;
    display: flex;
    gap: 24px;
}

.upload-submit-container .btn-primary:disabled {
    cursor: not-allowed;
    transform: translateY(6px) scale(1);
}

.upload-submit-container .btn-primary:disabled:hover {
    transform: translateY(6px) scale(1);
}

.upload-submit-container .btn-primary:disabled a {
    background: var(--greylight);
    color: var(--greymedium);
    border-color: var(--greymedium);
    box-shadow: -6px 6px 0px 0px var(--greymedium);
}

/* Legacy support for upload submit buttons */
.upload-submit-container button:disabled {
    cursor: not-allowed;
    transform: translateY(6px) scale(1);
}

.upload-submit-container button:disabled:hover {
    transform: translateY(6px) scale(1);
}

.upload-submit-container button:disabled a {
    background: var(--greylight);
    color: var(--greymedium);
    border-color: var(--greymedium);
    box-shadow: -6px 6px 0px 0px var(--greymedium);
}

/* Responsive Upload Area */
@media (max-width: 970px) {
    
    .btn-tertiary {
        text-align: center;
    }
    
    .upload-error-text {
        order: 2;
    }
    
    .upload-size-label {
        order: 1;
    }
}

/* User Dropdown Styling */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--greylight);
    border: none;
    padding: 5px;
    cursor: pointer;
    border-radius: 0;
    width: 100%; /* Override default button width */
    /* Remove hover transform effects */
    transform: none !important;
    transition: none;
}

.user-dropdown-button:hover {
    /* Remove all hover effects */
    background: var(--greylight);
    transform: none !important;
}

.user-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    background: var(--greyblue);
    border: 2px solid var(--black);
}

.user-icon.admin {
    background: var(--green);
    color: var(--black);
}

.user-icon.admin svg {
    fill: var(--black);
}

.username {
    color: var(--black);
    font-size: 14px;
    font-weight: 500;
}

.dropdown-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 14px);
    background: white;
    border: 1px solid var(--black);
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 180px;
    overflow: hidden;
}

.user-dropdown-menu.show {
    display: block;
}

/* Mobile user dropdown positioning */
@media (max-width: 970px) {
    .user-dropdown-menu {
        top: calc(100% + 9px);
    }
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
    border-bottom: none;
}

.user-dropdown-item:hover {
    background-color: #f9fafb;
    color: #111827;
}

.user-dropdown-separator {
    border-top: 1px solid var(--black);
}

.user-dropdown-last {
    border-top: 1px solid var(--black);
}

/* Modal Styles for Confirm Display */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(104, 122, 133, 0.65);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border: 2px solid var(--black);
    width: 90%;
    max-width: 500px;
    border-radius: 0;
    box-shadow: -8px 8px 0px 0px var(--black);
    animation: modalSlideIn 0.3s ease-out;
    margin: 0;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 2px solid var(--black);
    background-color: var(--greylight);
}

.modal-header h3 {
    margin: 0;
    font-family: "Space Mono", monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: var(--black);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    margin: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

/* Removed duplicate modal-close styles - see updated version below */

.modal-body {
    padding: 40px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: var(--white);
    border: none;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    margin: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    line-height: 1;
}

.modal-close::before,
.modal-close::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 3px;
    background-color: var(--black);
}

.modal-close::before {
    transform: rotate(45deg);
}

.modal-close::after {
    transform: rotate(-45deg);
}

.modal-close:hover::before,
.modal-close:hover::after {
    background-color: var(--greyblue);
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section .structure-title {
    margin: 0 0 16px 0;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    text-transform: uppercase;
}

.display-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-label {
    font-family: "Space Mono", monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
    min-width: 120px;
}

.info-row span:not(.info-label) {
    font-family: "Space Mono", monospace;
    font-size: 13px;
    color: var(--black);
}

.layout-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    padding: 20px;
    background-color: var(--greylight);
    border: 1px solid var(--greyblue);
    border-radius: 4px;
}

.layout-preview .layout-unknown {
    color: #9ca3af;
    font-style: italic;
    font-family: "Space Mono", monospace;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding: 20px 24px;
    border-top: 2px solid var(--black);
    background-color: var(--greylight);
}

.modal-btn {
    align-items: center;
    border-radius: 0px;
    border: 2px solid var(--black);
    box-shadow: -4px 4px 0px 0px var(--black);
    color: var(--black);
    display: flex;
    font-family: "Space Mono", Sans-serif;
    font-size: 14px;
    font-weight: 600;
    height: 44px;
    justify-content: center;
    text-decoration: none;
    text-transform: uppercase;
    padding: 0 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.modal-btn:hover {
    transform: translateY(2px);
    box-shadow: -2px 2px 0px 0px var(--black);
}

.modal-btn.primary {
    background: var(--green);
}

.modal-btn.secondary {
    background: var(--white);
}

/* Modal field styling */
.field-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.form-input {
    width: 100%;
    /* padding: 12px 16px; */
    /* border: 2px solid var(--black); */
    /* background-color: var(--white); */
    /* border-radius: 0; */
    box-sizing: border-box;
}

.form-input:disabled {
    background-color: var(--greylight);
    color: var(--black);
}

/* Structure section styling */
.structure-section {
    border: none !important;
    border-radius: 0 !important;
}

.structure-numbers {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 16px;
    text-align: left;
}

.layout-preview {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: 150px;
    padding: 20px;
    background-color: var(--greylight);
    border: none;
    border-radius: 0;
    margin-bottom: 24px;
}

/* Modal body adjustments for new layout */
.modal-body hr {
    border: none;
    border-top: 1px solid var(--greydark);
    margin: 16px 0 24px 0;
}

/* Text Creator Styles */
#text-creator-form {
    max-width: 716px;
}

.text-creator-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.text-creator-textarea {
    width: 100%;
    padding: 20px;
    border: 2px solid var(--greydark);
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    color: #ffffff;
    background-color: #000000;
    resize: vertical;
    min-height: 150px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.text-creator-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.text-creator-textarea::placeholder {
    color: var(--placeholder-color, rgba(255, 255, 255, 0.5));
}

.text-creator-instructions {
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    color: var(--greydark);
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.text-controls-container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.text-control-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.color-picker {
    width: 50px;
    height: 50px;
    border: 2px solid var(--greydark);
    cursor: pointer;
    background: none;
    padding: 0;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.color-picker:hover {
    border-color: var(--primary);
}

.color-picker:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.color-input-wrapper {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 2px solid var(--greydark);
    transition: border-color 0.3s ease;
    overflow: hidden;
}

.color-input-wrapper:hover {
    border-color: var(--primary);
}

.color-input-wrapper input[type="color"] {
    border: none;
    padding: 0;
    margin: -5px;
    cursor: pointer;
}

.color-label {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    text-align: center;
}

/* Font Dropdown Styles */
.font-dropdown {
    position: relative;
    display: inline-block;
}

.font-dropdown-button {
    font-size: 14px;
    font-weight: 400;
    color: var(--black);
    background: var(--white);
    border: 2px solid var(--greydark);
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border-radius: 0;
    margin: 0;
    transform: none;
    box-shadow: none;
    width: auto;
    min-width: 200px;
    justify-content: space-between;
}

.font-dropdown-button:hover {
    border-color: var(--primary);
    transform: none;
}

.font-dropdown-button:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.font-dropdown-button svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.font-dropdown.open .font-dropdown-button svg {
    transform: rotate(180deg);
}

.font-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--greydark);
    border-top: none;
    display: none;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.font-dropdown.open .font-dropdown-menu {
    display: block;
}

.font-option {
    font-size: 14px;
    font-weight: 400;
    color: var(--black);
    background: var(--white);
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: left;
    transition: background-color 0.2s ease;
}

.font-option:hover {
    background-color: var(--greylight);
    transform: none;
}

.font-option.active {
    font-weight: 700;
}

/* Animator Styles */
.animator-body-text {
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    color: var(--greydark);
    margin: 12px 0 20px 0;
    line-height: 1.4;
}

.animator-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.duration-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.duration-input {
    width: 80px;
    padding: 11px 16px;
    border: 2px solid var(--greydark);
    font-size: 14px;
    font-family: "DM Sans", sans-serif;
    background-color: var(--white);
    color: var(--black);
    text-align: center;
    text-indent: 0 !important;
    transition: border-color 0.3s ease;
    height: initial;
}

.duration-input:hover {
    border-color: var(--primary);
}

.duration-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.frames-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "DM Sans", sans-serif;
}

.frames-table th {
    background-color: var(--greylight);
    color: var(--black);
    font-weight: 600;
    padding: 0.1rem 1rem;
    text-align: left;
    border-bottom: 2px solid var(--greydark);
    font-size: 14px;
    white-space: nowrap;
}

.frames-table th:last-child {
    width: 50px;
    text-align: center;
}

.frames-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--greylight);
    font-size: 14px;
    vertical-align: middle;
}

.frames-table td:last-child {
    text-align: center;
}

.frame-preview {
    width: 60px;
    height: 40px;
    border: 1px solid var(--greylight);
    background-color: #000000;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-family: inherit;
    overflow: hidden;
}

.frame-kebab-menu {
    position: relative;
    display: inline-block;
}

.frame-kebab-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    color: #6b7280;
    transition: all 0.2s ease;
}

.frame-kebab-button:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.frame-kebab-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid var(--black);
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 120px;
    overflow: hidden;
}

.frame-kebab-dropdown.show {
    display: block;
}

.frame-kebab-option {
    display: block;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.frame-kebab-option:hover {
    background-color: #f9fafb;
    color: #111827;
}

/* Remove old styles that are no longer needed */
.frame-kebab-dots,
.frame-kebab-dot {
    display: none;
}


@media (max-width: 970px) {

    .frames-table {
        font-size: 12px;
    }
    
    .frames-table th,
    .frames-table td {
        padding: 8px 12px;
    }
    
    .frame-preview {
        width: 50px;
        height: 35px;
        font-size: 9px;
    }
}

/* Dashboard Styles */
.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.section-title {
    font-family: "DM Sans", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin: 0;
    padding-bottom: 0.5rem;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.dashboard-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.dashboard-card {
    background: var(--greylight);
    border: 2px solid transparent;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 258px;
    transition: border-color 0.3s ease;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.dashboard-card-link:hover .dashboard-card {
    border-color: var(--green);
}

.card-icon {
    margin-bottom: 0;
}

.card-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.card-title {
    font-family: "DM Sans", sans-serif;
    font-weight: 700;

    margin: 0;
}

.card-description {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
}

.dashboard-card .card-action {
    margin-top: 16px;
}

.dashboard-card .content-action-link {
    font-family: "Space Mono", monospace;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--greyblue);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.dashboard-card-link:hover .content-action-link {
    color: var(--black);
}

/* Responsive design for dashboard */
@media (max-width: 1024px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .dashboard-card {
        height: 220px;
        padding: 20px;
    }
    
    .card-icon img {
        width: 60px;
        height: 60px;
    }      /* Change title to "Your Dashboard" on mobile for better space efficiency - INDEX PAGE ONLY */
    .page-title.dashboard-title {
        font-size: 0 !important;
    }
      .page-title.dashboard-title::before {
        content: "Your Dashboard";
        font-size: 38px;
        font-family: "Space Mono", monospace;
        font-weight: 700;
        line-height: 110%;
    }
}

/* Account Sidebar - Similar to secondary sidebar but positioned at left edge */
.account-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 180px;
    height: 100vh;
    background: var(--greylight);
    display: flex;
    flex-direction: column;
    z-index: 99;
    border-right: 2px solid var(--black);
}

.account-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 95px 0 0 0;
    display: flex;
    flex-direction: column;
}

.account-sidebar li {
    width: 100%;
}

.account-sidebar a {
    display: flex;
    align-items: center;
    padding: 20px 18px;
    color: var(--greyblue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    gap: 8px;
    transition: all 0.2s ease;
}

.account-sidebar a:hover {
    background-color: var(--greymedium);
    color: var(--black);
}

.account-sidebar a.active {
    background-color: var(--greyblue);
    color: white;
}

.account-sidebar svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Account Settings Accordion */
.account-settings-section {
    width: 100%;
}

.account-settings-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 18px;
    color: var(--black);
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.account-settings-toggle:hover {
    background-color: var(--greymedium);
}

.account-settings-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.account-settings-arrow.open {
    transform: rotate(180deg);
}

.account-settings-tabs {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.account-settings-tabs.open {
    max-height: 200px; /* Adjust based on number of tabs */
}

.account-tab {
    display: flex;
    align-items: center;
    padding: 16px 18px 16px 35px; /* Indent sub-items */
    color: var(--greyblue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.account-tab:hover {
    background-color: var(--greymedium);
    color: var(--black);
}

.account-tab.active {
    background-color: var(--greyblue);
    color: white;
}

/* Account Tab Content */
.account-tab-content {
    max-width: 492px;
}

.account-tab-content h5 {
    margin-bottom: 1.5rem;
    color: var(--black);
}

.account-tab-content form {
    padding: 0;
    gap: 30px;
}

.account-tab-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: var(--black);
}

.account-tab-content input[type="email"],
.account-tab-content input[type="password"],
.account-tab-content input[type="tel"],
.account-tab-content input[type="text"] {
    width: 100%;
    margin-bottom: 0;
    box-sizing: border-box;
}

/* Read-only field styling */
.account-tab-content input[readonly] {
    background-color: var(--greylight);
    color: var(--greyblue);
    cursor: default;
}

.account-tab-content input[readonly]:focus {
    outline: none;
    border-color: var(--greydark);
}

/* Form Layout Styling */
.form-row {
    display: flex;
    gap: 16px;
}

.form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: var(--black);
}

.form-field input,
.form-field textarea {
    width: 100%;
    box-sizing: border-box;
}

/* Custom Phone Input Styling */
.phone-input-container {
    display: flex;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 0;
}

.country-selector {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border: 2px solid var(--greydark);
    background: var(--white);
    min-width: 90px;
    cursor: pointer;
    transition: border-color 0.3s ease;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.country-selector:hover {
    border-color: var(--primary, #007bff);
}

.country-flag {
    font-size: 15px;
    line-height: 1;
    font-family: "BabelStoneFlags", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    font-variant-emoji: emoji;
    text-rendering: optimizeSpeed;
}

.country-code {
    color: var(--black);
    font-family: "Space Mono", monospace;
    font-size: 14px;
    font-weight: 400;
}

.dropdown-arrow {
    margin-left: auto;
    font-size: 10px;
    color: var(--black);
    transition: transform 0.2s ease;
}

.country-selector.active .dropdown-arrow {
    transform: rotate(180deg);
}

.country-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: -2px;
    background: var(--white);
    border: 2px solid var(--black);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.country-dropdown.show {
    display: block;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--greylight);
}

.country-option:hover {
    background-color: var(--greylight);
}

.country-option:last-child {
    border-bottom: none;
}

.country-option .country-flag {
    font-size: 15px;
    font-family: "BabelStoneFlags", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    font-variant-emoji: emoji;
    text-rendering: optimizeSpeed;
}

.country-option .country-name {
    flex: 1;
    font-size: 14px;
    color: var(--black);
}

.country-option .country-dial {
    font-family: "Space Mono", monospace;
    font-size: 12px;
    color: var(--greyblue);
}

.phone-input-container .phone-input {
    flex: 1;
    border: 2px solid var(--greydark);
    font-weight: 500;
    font-size: 16px;
    height: 60px;
    text-indent: 20px;
    margin-bottom: 0;
    font-family: "DM Sans", sans-serif;
}

.phone-input-container .phone-input:focus {
    outline: none;
    border-color: var(--primary, #007bff);
}

/* International Phone Input Styling */
.iti {
    width: 100%;
    margin-bottom: 16px;
}

.iti__input {
    border: 2px solid var(--greydark);
    font-weight: 500;
    font-size: 16px;
    height: 60px;
    text-indent: 20px;
    width: 100%;
    box-sizing: border-box;
    padding-left: 70px; /* Space for flag and country code */
}

.iti__input:focus {
    outline: none;
    border-color: var(--primary, #007bff);
}

.iti__flag-container {
    background: var(--greylight);
    border-right: 1px solid var(--greydark);
}

.iti__selected-dial-code {
    color: var(--greyblue);
    font-family: "Space Mono", monospace;
    font-size: 14px;
    font-weight: 400;
}

.iti__dropdown {
    border: 2px solid var(--black);
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.iti__country:hover {
    background-color: var(--greylight);
}

.iti__country.iti__highlight {
    background-color: var(--greyblue);
    color: white;
}

.iti__search-input {
    border: 1px solid var(--greydark);
    padding: 8px;
    margin: 8px;
    font-family: "DM Sans", sans-serif;
}

/* Adjust for account tab content specific styling */
.account-tab-content .iti {
    margin-bottom: 16px;
}

.account-tab-content .iti__input {
    font-family: "DM Sans", sans-serif;
}

/* Hide main sidebar when account sidebar is active */
.account-sidebar-active .sidebar {
    display: none;
}

/* Adjust main content when account sidebar is active */
.account-sidebar-active .main-container-logged-in {
    padding-left: 260px; /* 180px sidebar + 80px padding */
}

/* Adjust footer when account sidebar is active */
.account-sidebar-active .footer-container {
    margin-left: 180px;
}

/* Block-specific styles */
.block-uid {
    font-family: "Space Mono", monospace;
    font-size: 14px;
    background-color: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    color: #333;
}

/* Status summary header with refresh button */
.status-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

/* Status summary row with card and refresh button */
.status-summary-row {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    margin-bottom: 20px;
    justify-content: space-between;
}

/* Hide mobile timestamp on desktop */
.status-timestamp-mobile {
    display: none;
}

.refresh-button {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--black);
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.refresh-button:hover {
    background-color: #f5f5f5;
    color: var(--black);
}

.refresh-button:active {
    transform: scale(0.95);
}

.refresh-icon {
    transition: transform 0.2s ease;
}

.refresh-button.spinning .refresh-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Register Block Modal Styles */
.register-block-steps {
    margin: 20px 0;
}

.register-step {
    margin-bottom: 16px;
}

.step-title {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.step-instruction {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--black);
    background: var(--greylight);
    padding: 10px;
    line-height: 1.4;
}

.register-block-content {
    overflow-y: auto;
    flex: 1;
    margin: 0;
    padding: 0;
}

#register-block-form {
    padding: 0;
}

.register-block-input-container {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Password field container and toggle styling */
.password-field-container {
    position: relative;
    width: 100%;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
    padding-right: 50px; /* Make room for the toggle button */
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    z-index: 1;
}

.password-toggle:hover {
    color: #333;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    z-index: 98;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(104, 122, 133, 0.65);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.show {
    display: block;
    opacity: 1;
}
/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.loading-overlay.show {
    display: flex;
}

.loading-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-icon {
    width: 64px;
    height: 64px;
    animation: floatUpDown 2s ease-in-out infinite;
}

.loading-text {
    animation: fadeInOut 2s ease-in-out infinite;
}

/* Floating animation */
@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Text fade animation */
@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 970px) {
    .loading-icon {
        width: 48px;
        height: 48px;
    }

}

/* Selection Action Link Styles */
.selection-action-link {
    font-weight: 600;
    color: var(--black);
    transition: color 0.2s ease;
    text-decoration: none;
    text-transform: capitalize;
}

.selection-action-link:hover {
    color: var(--greyblue);
    text-decoration: underline;
}

.selection-divider {
    width: 1px;
    height: 16px;
    background-color: var(--greydark);
    margin: 0 12px;
}