/* styles.css (Complete and Corrected) */

@font-face {
    font-display: block;
    font-family: '7_Docusign';
    font-style: normal;
    font-weight: 400;
    src: url('https://www.docusign.com/assets/fonts/7_Docusign.woff') format('woff');
}

@font-face {
    font-display: block;
    font-family: '2_Docusign';
    font-style: normal;
    font-weight: 400;
    src: url('https://www.docusign.com/assets/fonts/2_Docusign.woff') format('woff');
}

@font-face {
    font-display: block;
    font-family: 'DSIndigo';
    font-style: normal;
    font-weight: 300;
    src: url('https://www.docusign.com/assets/fonts/dsindigo-light.woff2') format('woff2'),
         url('https://www.docusign.com/assets/fonts/dsindigo-light.woff') format('woff');
}

@font-face {
    font-display: block;
    font-family: 'DSIndigo';
    font-style: italic;
    font-weight: 300;
    src: url('https://www.docusign.com/assets/fonts/dsindigo-lightitalic.woff2') format('woff2'),
         url('https://www.docusign.com/assets/fonts/dsindigo-lightitalic.woff') format('woff');
}

@font-face {
    font-display: block;
    font-family: 'DSIndigo';
    font-style: normal;
    font-weight: 400;
    src: url('https://www.docusign.com/assets/fonts/dsindigo-regular.woff2') format('woff2'),
         url('https://www.docusign.com/assets/fonts/dsindigo-regular.woff') format('woff');
}

@font-face {
    font-display: block;
    font-family: 'DSIndigo';
    font-style: normal;
    font-weight: 500;
    src: url('https://www.docusign.com/assets/fonts/dsindigo-medium.woff2') format('woff2'),
         url('https://www.docusign.com/assets/fonts/dsindigo-medium.woff') format('woff');
}

@font-face {
    font-display: block;
    font-family: 'DSIndigo';
    font-style: normal;
    font-weight: 600;
    src: url('https://www.docusign.com/assets/fonts/dsindigo-semibold.woff2') format('woff2'),
         url('https://www.docusign.com/assets/fonts/dsindigo-semibold.woff') format('woff');
}

:root {
    /* Base Color Palette */
    --cobalt: #4C00FF;
    --poppy: #FF5252;
    --ecru: #F8F3F0;
    --deep-violet: #26065D;
    --inkwell: #130032;
    --mist: #CBC2FF;
    --mist-rgb: 203, 194, 255;
    --white: #FFFFFF;
    --black: #000000;

    /* Docusign Fonts */
    --font-docusign-7: '7_Docusign', sans-serif;
    --font-docusign-2: '2_Docusign', sans-serif;
    --font-dsindigo-regular: 'DSIndigo', sans-serif;

    /* Misc. Colors */
    --glow-color-2: #0fffc1;
    --glow-color-3: #7e0fff;

    /* =================================== */
    /* Light Theme (Default)               */
    /* =================================== */
    
    /* Backgrounds */
    --page-background: radial-gradient(100% 100% at 50% 0%, #4C00FF 0%, #26065D 100%) fixed;

    --bg-body-gradient-start: var(--cobalt);
    --bg-body-gradient-end: var(--deep-violet);
    --bg-main: var(--inkwell); /* Region container bg */
    --bg-content: var(--ecru); /* Category container bg, admin panels */
    --bg-content-admin-panel: var(--ecru);

    --bg-content-section-main-contents: var(--ecru);

    --bg-card: var(--white);

    --bg-site-nav-upper: var(--ecru);
    --bg-site-nav-lower: var(--white);

    --bg-header: var(--ecru); /*Top nav - upper row */
    --bg-footer: var(--inkwell);
    --bg-platform-header: var(--inkwell);
    --bg-login-container: var(--ecru);
    --bg-modal: var(--white);
    --bg-modal-alt: var(--ecru);
    --bg-modal-backdrop: rgba(0,0,0,0.6);
    --bg-sidebar: var(--ecru);
    --bg-sidebar-item: var(--white);
    --bg-switch-off: grey;
    --bg-switch-on: var(--poppy);
    --bg-table-header: var(--cobalt);
    --bg-table-row-hover: var(--ecru);
    --bg-form-control: var(--white);
    --bg-search-results-none: #ff0000;
    --bg-input: var(--white);
    --bg-popup-header: var(--mist);
    --bg-recent-links-panel: var(--white);

    --bg-nav-item-hover: var(--ecru);
    --navbar-dropdown-menu-background: var(--white);
    --navbar-dropdown-menu-item-background-hover: var(--ecru);


    /* Scrollbar */
    --scrollbar-thumb-color: #1e1e1e;

    /* Text */
    --text-primary: var(--inkwell);
    --text-primary-inverted: var(--white);
    --text-secondary: #333;
    --text-tertiary: #666;
    --text-muted: #999;
    --text-subtle: #aaa;
    --text-link: var(--cobalt);
    --text-link-hover: var(--poppy);
    --text-button: var(--white);
    --text-button-alt: var(--black);

    --text-navbar-link: var(--black);
    --text-navbar-link-hover: var(--cobalt);
    --text-navbar-link-focus: var(--cobalt);

    --text-navbar-dropdown-link-hover: var(--cobalt);
    --text-navbar-dropdown-link-focus: var(--cobalt);

    --important-text: var(--poppy);
    

    /* Borders */
    --border-primary: #ccc;
    --border-secondary: #aaa;
    --border-strong: var(--inkwell);
    --border-card: var(--cobalt);
    --border-card-alt: #777;
    --border-table: #ddd;
    --border-input-focus: var(--cobalt);
    --border-popup: #555;
    --border-popup-header: #aaa;
    --border-category-section-container: var(--inkwell);
    
    /* Buttons & Actions */
    --btn-primary-bg: var(--cobalt);
    --btn-primary-hover-bg: var(--deep-violet);
    --btn-danger-bg: #dc3545;
    --btn-danger-hover-bg: #c82333;
    --btn-remove-bg: var(--poppy);
    --btn-remove-hover-bg: #c82333; /* Darker poppy */
    --btn-success-bg: #28a745;
    --btn-success-hover-bg: #218838;
    --btn-cancel-bg: #6c757d;
    --btn-cancel-hover-bg: #5a6268;
    --btn-google-bg: var(--poppy);
    --btn-google-hover-bg: #E74B37;
    --btn-google-border: #BB3F30;

    /* Popups & Modals */
    --modal-success-bg: var(--btn-success-bg);
    --modal-error-bg: var(--btn-danger-bg);
    --modal-shadow: var(--black);
    --popup-arrow: var(--cobalt);
    --modal-body-scrollbar-track: #dadedf;
    --modal-body-scrollbar-thumb: #666666;
    
    /* Region Colors */
    --region-latam-bg: #e8edff;
    --region-emea-bg: #fff9e1;
    --region-apj-bg: #ffefed;
    --region-na-bg: #f3fff9;

    /* Shadows */
    --shadow-card: rgba(0, 0, 0, 0.3);
    --shadow-card-hover: rgba(0, 0, 0, 0.5);
    --shadow-sidebar: rgba(0, 0, 0, 0.5);
    --shadow-modal-glow: var(--black);
    --shadow-switch: rgba(0,0,0,0.2);
}

/* =================================== */
/* Dark Theme Overrides                */
/* =================================== */
body.dark-mode {

    --mist-lighter: 203, 194, 255; /* the --mist color stored as rgb to control opacity */

    /* Backgrounds */

    /* Main page background */
    --page-background: url(https://cdn.bfldr.com/HIN7H4LI/at/bv474f4fm59w3x3sth29wqn7/hero_background_color.png?auto=webp&format=webp&quality=90) center / cover no-repeat fixed;
    /*--bg-body-gradient-start: var(--deep-violet);
    --bg-body-gradient-end: var(--inkwell);*/
    --bg-body-gradient-start: #121212;
    --bg-body-gradient-end: #121212;

    /* */
    --bg-main: #181818; /* Darker than Inkwell */
    --bg-content: #181818; /*Section background behind tile category cards*/
    --bg-content-admin-panel: #1d1d1d;
    --bg-content-section-main-contents: #1d1d1d;
    --bg-card: #242424; /* --deep-violet or --mist */ /*Background for individual category cards*/
    --bg-site-nav-upper: #181818;
    --bg-site-nav-lower: #181818;
    --bg-header: #1D1D1D; /*Top navigation banner header - Upper row*/
    --bg-footer: #121212;
    --bg-platform-header: var(--cobalt);  /*Section header background*/
    --bg-login-container: var(--inkwell); /* Sparing use of brand color for a contained page */
    --bg-modal: var(--deep-violet); /* Sparing use of brand color for a popup overlay */
    --bg-modal-alt: var(--inkwell);
    --bg-modal-backdrop: rgba(0,0,0,0.8);
    --bg-sidebar: var(--inkwell);
    --bg-sidebar-item: var(--deep-violet);
    --bg-switch-off: #555;
    --bg-switch-on: var(--cobalt); /* Using primary accent for "on" */
    --bg-table-header: #333333;
    --bg-table-row-hover: rgba(255, 255, 255, 0.07);
    --bg-search-results-none: var(--poppy);
    --bg-input: #333333;
    --bg-search-bar: #130032;
    /*--bg-popup-header: var(--deep-violet);*/
    --bg-popup-header: var(--poppy);
    --bg-recent-links-panel: #242424;
    --demo-banner-image-bg: #FFFFFF;
    --bg-nav-item-hover: var(--cobalt);
    --navbar-dropdown-menu-background: var(--cobalt);
    --navbar-dropdown-menu-item-background-hover: var(--deep-violet);

    /* Scrollbar */
    --scrollbar-thumb-color: var(--cobalt);

    /* Text */
    --text-primary: var(--ecru);
    --text-primary-inverted: var(--white);
    --text-secondary: #B0B0B0;
    --text-tertiary: #888888;
    --text-muted: #888;
    --text-subtle: #777;
    /*--text-link: var(--mist); */
    --text-link: var(--white);

    --text-link-hover: var(--white);
    --text-link-edit: var(--white);
    --text-link-edit-hover: var(--mist);
    --text-button: var(--white);
    --text-button-alt: var(--white);
    --text-navbar-link-hover: var(--white);
    --text-navbar-link-focus: var(--white);

    --text-navbar-link: var(--white);
    --text-navbar-dropdown-link-hover: var(--white);
    --text-navbar-dropdown-link-focus: var(--white);

    --important-text: var(--poppy);


    /* Borders */
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.05);
    --border-strong: var(--mist);
    --border-card: var(--cobalt);
    --border-card-alt: #444444;
    --border-table: var(--border-primary);
    --border-input-focus: var(--cobalt);  /* High-impact accent on active element */
    --border-popup: var(--border-primary);
    --border-popup-header: rgba(255, 255, 255, 0.15);
    --border-category-section-container: var(--cobalt);

    /* Buttons & Actions */
    --btn-primary-bg: var(--cobalt);
    --btn-primary-hover-bg: #6A33FF; /* Lighter Cobalt */
    --btn-danger-bg: #dc3545;
    --btn-danger-hover-bg: #e45563;
    --btn-remove-bg: var(--poppy);
    --btn-remove-hover-bg: #FF7575; /* Lighter poppy */
    --btn-success-bg: #28a745;
    --btn-success-hover-bg: #32c453;
    --btn-cancel-bg: #6c757d;
    --btn-cancel-hover-bg: #868e96;
    --btn-google-bg: var(--poppy);
    --btn-google-hover-bg: #FF7575;
    --btn-google-border: var(--poppy);

    /* Popups & Modals */
    --modal-success-bg: var(--btn-success-bg);
    --modal-error-bg: var(--btn-danger-bg);
    --modal-shadow: 0px 4px 24px rgba(0, 0, 0, 0.7);
    /*--popup-arrow: var(--cobalt);*/
    --popup-arrow: var(--poppy);
    --modal-close-x-text: #FFFFFF;
    --modal-close-x-text-hover: var(--cobalt);
    
    /* Region Colors */
    --region-latam-bg: rgba(255, 82, 82, 0.15);
    --region-emea-bg: rgba(32, 201, 151, 0.15);
    --region-apj-bg: rgba(255, 165, 0, 0.15);
    --region-na-bg: rgba(76, 0, 255, 0.15);

    /* Shadows */
    --shadow-card: 0px 4px 12px rgba(0, 0, 0, 0.5);
    /*--shadow-card-hover: var(--mist);*/
    --shadow-card-hover: var(--cobalt);
    --shadow-sidebar: 10px 0px 30px rgba(0, 0, 0, 0.3);
    --shadow-modal-glow: 0px 4px 24px rgba(0, 0, 0, 0.7); /* light grey glow */
    --shadow-switch: 0 0 8px rgba(0,0,0,0.5);
    /*--shadow-card: rgba(0, 0, 0, 0.6);
    --shadow-card-hover: rgba(0, 0, 0, 0.8);
    --shadow-sidebar: rgba(200, 200, 255, 0.2);
    --shadow-modal-glow: var(--mist);
    --shadow-switch: rgba(0,0,0,0.4);*/
}

html {
    overflow: auto;
}

body {
    font-family: 'DSIndigo', sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    background-color: var(--bg-main);
    /* REMOVED: overflow-x: hidden; */
    /* REMOVED: width: 101%; */
}

/*
body {
    font-family: 'DSIndigo', sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    background-color: var(--bg-main);
    overflow-y: visible;
    overflow-x: hidden;
    width: 101%;
}
    */

/* START - Scrollbar control for main page */
/*
::-webkit-scrollbar {
    width: 15px;    
    margin-top: 10px;
    scroll-margin-top: 10px;
}

::-webkit-scrollbar-track {
    margin-top: 50px;
    scroll-margin-top: 10px;
}

::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 1px;
    background: var(--scrollbar-thumb-color);

}
::-webkit-scrollbar-thumb:window-inactive {
	background: rgba(255,0,0,0.4); 
}
*/
/* END - Scrollbar control for main page */

a {
    color: var(--text-link);
}

a:hover {
    color: var(--text-link-hover);
}

#gradient /* body background only */
{
    
    /*background: radial-gradient(circle, var(--bg-body-gradient-start) 0%, var(--bg-body-gradient-end) 100%);*/
    /*background: radial-gradient(100% 100% at 50% 0%, #4C00FF 0%, #26065D 100%) 100%;*/

    background: var(--page-background);
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    
    /*
    background-image: url(https://cdn.bfldr.com/HIN7H4LI/at/bv474f4fm59w3x3sth29wqn7/hero_background_color.png?auto=webp&format=webp&quality=90);
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;

    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    */
}

#gradient-unauthenticated /* body background only */
{
    background-image: url(https://cdn.bfldr.com/HIN7H4LI/at/bv474f4fm59w3x3sth29wqn7/hero_background_color.png?auto=webp&format=webp&quality=90);
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;

    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
}

/* Loading spinner animation - START */

.loading-indicator {
    font-size: 24px;
    color: var(--text-primary-inverted);
    text-align: center;
}

.loading-indicator-text {
    padding-left: 20px;
}

.spinner-wrapper {
    animation: pulse 2.5s ease-in-out infinite;
    display: inline-block;
}

.spinner-wrapper img {
    animation: rotate 1.5s linear infinite;
    display: block;
    transform-origin: center center;
    width: 25px;
    height: 25px;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.8);  /* smaller than normal */
    }
    50% {
        transform: scale(1.2);  /* larger than normal */
    }
}

/* Loading spinner animation - END */







/* Set up the 2 column layout - main structure. Left column for search and filters, and right column for all main content */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


.important-text {
    color: var(--important-text);
}

.important-text:hover {
    color: var(--important-text);
}

.main-row {
    display: flex;
    gap: 25px;
    margin-top: 25px;
    align-items: flex-start; /* Ensure columns align at the top and grow only as needed */
}

.column-left {
    width: 300px;
    min-width: 300px;

    background-color: transparent;
    
    background-color: rgba(28, 28, 60, 0.8);
    
    /*    
    background: #130032;
    background: linear-gradient(180deg, rgba(19, 0, 50, 1) 0%, rgba(76, 0, 255, 1) 100%);
    */

    margin-left: 35px;
    
    padding: 15px;

    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
    border: 2px solid var(--cobalt);

    border-radius: 8px;

    height: auto;

    color: var(--white);
}

.column-left h2 {
    font-size: 25px;
    margin-left: 10px;
    margin-bottom: 15px;
    color: var(--white);
}

.column-right {
    width: 80%;
    height: auto; /* Let height fit content */
    margin-right: 35px;

    /* to help with testing and adjusting paddings and margins.*/
    /*background-color: #bbb;
    /*border: 2px solid red;*/
}

/* Keep columns side by side always */
@media screen and (max-width: 600px) {
    .main-row {
        flex-direction: column;
        gap: 0;
    }
    .column-left,
    .column-right {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

















/* Forms and other input field styling */

label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

input[type="text"],
input[type="url"],
input[type="password"],
select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
    border: 1px solid var(--border-primary);
    border-radius: 4px;
    background-color: var(--bg-input);
    color: var(--text-primary);
}

input[type="file"] {
    margin-bottom: 10px;
}

.checkbox-group {
    display: inline-flex; /* keeps label and checkbox close together */
    align-items: center;
    gap: 6px; /* spacing between label and checkbox */
}

.checkbox-group label,
.field-hot-item-input {
    margin: 0;
}

.field-hot-item-input {
    position: relative;
    right: 140px;
    top: 0px !important;
    height: 15px;
    margin-left: -9.9rem;
}


.form-group {
    margin-bottom: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

input[type=file]::file-selector-button {
    color: var(--text-button);
    border: 2px solid var(--btn-primary-bg);
    padding: .2em .4em;
    border-radius: .2em;
    background-color: var(--btn-primary-bg);
    transition: 1s;
}
  
input[type=file]::file-selector-button:hover {
    background-color: var(--btn-primary-hover-bg);
    border: 2px solid var(--btn-primary-hover-bg);
}

button {
    display: inline-flex; /* Allows content (icon and text) to align properly */
    align-items: center; /* Vertically centers the icon and text */
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    margin: 10px;
}

button:hover {
    background-color: var(--btn-primary-hover-bg);
}

button.edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-link-edit);
    padding: 0;
    margin: 0;
    outline: none;
}

button.edit-btn:hover {
    color: var(--text-link-edit-hover);
}





/*******************************************************/
/************* BEGIN Login buttons *******************/
/*******************************************************/

.login-required {
    -webkit-font-smoothing: antialiased;
    background: var(--bg-login-container);
    margin: auto;
    margin-top: 100px;
    width:fit-content;
    border: 3px solid var(--border-strong);
    padding: 60px;
    box-shadow: 0 0 200px rgba(76, 0, 255, 0.6);
    border-radius: 8px;
}

/* Shared */
.loginBtn {
    box-sizing: border-box;
    position: relative;
    margin: 0.2em;
    padding: 0 15px 0 46px;
    border: none;
    text-align: left;
    line-height: 34px;
    white-space: nowrap;
    border-radius: 0.2em;
    font-size: 16px;
    color: var(--text-button);
}
.loginBtn:before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    width: 34px;
    height: 100%;
}
.loginBtn:focus {
    outline: none;
}
.loginBtn:active {
    box-shadow: inset 0 0 0 32px rgba(0,0,0,0.1);
}
    
/* Google */
.loginBtn--google {
    background: var(--btn-google-bg);
}
.loginBtn--google:before {
    border-right: var(--btn-google-border) 1px solid;
    background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/14082/icon_google.png') 6px 6px no-repeat;
}
.loginBtn--google:hover,
.loginBtn--google:focus {
    background: var(--btn-google-hover-bg);
}
/*******************************************************/
/**************** END login buttons ********************/
/*******************************************************/

.add-demo-button {
    padding-left: 30px;
}

.add-demo-button-icon {
    font-size: 15px; /* Adjust this based on icon size */
    vertical-align: middle; /* Align icon with text */
    margin-right: 10px; /* Space between the icon and text */
    display: inline-block; /* Ensures icon stays on the same line */
}

.add-demo-button-text {
    font-size: 15px;
    vertical-align: middle; /* Align text with icon */
    display: inline-block; /* Ensures text stays on the same line */
}

/* Edit Button Styles */
.edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-link);
    margin-left: 10px;
}

.edit-btn i {
    font-size: 14px;
    color: var(--text-primary);
}

.edit-btn:hover {
    color: var(--text-link-hover);
}

/* Level 1: Region */
.region {
    width: 90%;
    padding: 20px;
    background-color: var(--bg-main);
    margin-bottom: 20px;
    margin-left: 20px;
    margin-right: 10px;
    border-radius: 5px;
    top: 10;
}

.region > h1 {
    margin-top: 0;
    color: var(--text-primary-inverted);
}

.platform-header {
    background-color: var(--bg-platform-header);
    margin-left: -20px;
    padding-left: 20px;
    color: var(--text-primary-inverted);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border: 2px solid var(--bg-platform-header);
}

.platform-header:last-child {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

h1.platform-header-title-text {
    color: var(--text-primary-inverted);
    font-size: 20px;
}

/* Platforms Container */
.platforms {
    padding-left: 20px;
    display: block;
    border-radius: 5px;
}

.platforms::after {
    content: "";
    display: table;
    clear: both;
}

/* Platform */
.platform {
    position: relative;
    display: block;
    width: 100%;
    padding-left: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
} 

.platform::after {
    display: none;
}

.platform:first-child {
    margin-top: 0;
}

.platform:last-child::after {
    display: none; /* Remove divider after the last platform */
}

.platform h1 {
    margin-top: 0;
}

.platform h2 {
    margin-top: 20px;
}

/* Level 3: Category */
.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;  
    background-color: var(--bg-content-section-main-contents);
    margin-left: -20px !important;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border: 1px solid var(--border-category-section-container);
}

.category {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 5px;
    flex: 1 1 300px; /* Ensures each card is 250px wide */
    max-width: 300px; /* Limits the width to 250px */
    padding: 10px;
    box-sizing: border-box;
    color: var(--text-primary);
}

.category > h3 {
    margin-top: 0;
    font-size: 18px;
}

#slow-transition {
    box-shadow: 0 0 10px 0 var(--shadow-card);
    transition: box-shadow 500ms;
}

#slow-transition:hover {
    box-shadow: 0 10px 50px 0 var(--shadow-card-hover);
}

.card-demo-title-container {
    margin-bottom: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: grid;
    justify-content: center;
}

h3.platform-header-title-text {
    width: 270px;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.category-hot-item {
    border: none;
}

.category-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0.5em 0;
    /*background-color: var(--demo-banner-image-bg);*/
}

.category-logo {
    height: 50px;
    display: block;
    margin-bottom: 10px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    background-color: var(--demo-banner-image-bg);
}

/* BEGIN - Category Modal Styling */
button {
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
    color: var(--text-button);
}

.submit-btn {
    background-color: var(--btn-success-bg);
}

.submit-btn:hover {
    background-color: var(--btn-success-hover-bg);
}

.cancel-btn {
    background-color: var(--btn-cancel-bg);
}

.cancel-btn:hover {
    background-color: var(--btn-cancel-hover-bg);
}

.remove-link-btn {
    background-color: var(--btn-danger-bg);
    margin-top: 36px !important;
}

.remove-link-btn:hover {
    background-color: var(--btn-danger-hover-bg);
}

.add-link-btn,
.add-link-type-btn {
    background-color: var(--btn-primary-bg) !important;
    margin-top: 0px;
}

.add-link-btn:hover,
.add-link-type-btn:hover {
    background-color: var(--btn-primary-hover-bg) !important;
}

/* END - Category Modal Styling */

/* Level 4 & 5: Links */
.links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center; /* Center items horizontally */
    margin-top: -10px;
    width: 100%;
}

.link-card,
.link-card-region {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-secondary);
    padding: 4px;
    border-radius: 4px;
    height: 33px;
    margin: 5px;
    color: var(--text-primary);
}

.link-card-region-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.link-card-region {
    border: 1px solid var(--border-secondary);
    border-radius: 4px;
    flex-wrap: wrap;
    font-size: 75%;
}

.link-card > h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.link-card p {
    margin-top: -10px;
    margin-bottom: -10px;
}

.link-card a {
    color: var(--text-link);
    text-decoration: none;
    line-height:normal;
}

.link-card a:hover {
    text-decoration: underline;
}

.link-card ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

.link-card ul li {
    margin-bottom: 5px;
    line-height: 1.2;
}

.link-card ul li a {
    display: inline;
    line-height: 1.2;
}

.region-color-latam {
    background-color: var(--region-latam-bg) !important;
}
.region-color-emea {
    background-color: var(--region-emea-bg) !important;
}
.region-color-apj {
    background-color: var(--region-apj-bg) !important;
}
.region-color-na {
    background-color: var(--region-na-bg) !important;
}

.link-card-ace {
    font-size: 14px !important;
    margin-bottom: 15px;
    font-weight: bold;
}

.link-card-slack {
    font-size: 14px !important;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Icon popups */
.hover-container {
    position: relative;
}
  
.hover-target {
    position: relative;
    font-size: 2rem;
}

.hover-popup {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    top: 70%;
    left: -33px;
    width: 50ch;
    margin: min(1rem, 20px);
    font-size: 0.8rem;
    background-color: var(--bg-card);
    color: var(--text-primary);
    border-radius: 8px;
    border: 1.5px solid var(--border-popup);
    padding: 0 1.5em 1.5em 1.5em; /* Remove top padding */
    z-index: 42;
    transform: scale(0);
    transition: transform 200ms ease;
    transform-origin: 8% -10px;
}
  
.hover-target:hover + .hover-popup,
.hover-target:focus + .hover-popup,
.hover-popup:hover{
    transform: scale(1);
}
  
.hover-popup :not(:first-child) {
    margin-top: 1rem;
}
  
.hover-popup span {
    color: var(--poppy);
    font-weight: 700;
}
  
.hover-popup::before {
    content: '';
    position: absolute;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--popup-arrow);
    top: -10px;
}

.hover-popup::after {
    content: '';
    position: absolute;
    top: -1rem;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none; 
}
  
@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
      animation-delay: -1ms !important;
      animation-duration: -1ms !important;
      animation-iteration-count: 1 !important;
      background-attachment: initial !important;
      scroll-behavior: auto !important;
      transition-duration: 0s !important;
      transition-delay: 0s !important;
    }
}

.hover-popup-header {
    background-color: var(--bg-popup-header);
    color: var(--text-primary);
    text-align: left;
    padding: 8px 1.5em;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    width: calc(100% + 3em);
    margin-left: -1.5em;
    box-sizing: border-box;
    border-bottom: 1.5px solid var(--border-popup-header);
}
  

.hover-popup-header h4 {
    margin: 0;
}

.hover-popup-link-card {
    display:inline-block;
    font-size: 10px;
    height: 30px;
    width:fit-content;
    background-color:var(--btn-primary-bg);
    color:var(--text-button);
    padding-left: 5px;
    padding-right: 5px;
}

.hover-popup-link-card ul, li {
    font-size: 15px;
}

.hover-popup-link-card ul {
    display: block;
    list-style-type: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 40px;
}

.hover-popup-link-card li {
    font-size: 30px;
}

/* Modal Styles */
.modal {
    display: block;
    position: fixed;
    z-index: 1050; /* Changed from 100 to 1050 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto !important;
    background-color: var(--bg-modal-backdrop);
}

/* modal for viewing, adding, editing demos */
.modal-content {
    background-color: var(--bg-modal);
    color: var(--text-primary);
    margin: 40px auto;
    padding: 10px 25px;
    width: 95%;
    max-width: 1800px; /* max width that impacts all modals */
    border-radius: 8px;
    position: relative;
    overflow-y: auto; 
    overflow-x: auto;
    overflow: auto !important;
}


.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: var(--modal-close-x-text) !important;
    cursor: pointer;
    z-index: 101;
}

.close:hover {
    color: var(--modal-close-x-text-hover) !important;
}

.modal h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 15px;
    }

    button {
        width: 100%;
        margin-bottom: 10px;
    }

    .form-actions {
        text-align: center;
    }
}

label {
    display: block;
    margin-top: 10px;
}

input, select {
    width: 100%;
    padding: 8px;
}

/* Styles for link-fields to arrange inputs and button horizontally */
.link-fields {
    border: 3px solid var(--border-card-alt);
    padding: 10px 5px;
    margin-top: 15px;
    margin-bottom: 10px;
    background-color: var(--bg-modal-alt);
    position: relative; /* For positioning the delete button */
}

/* Edit Links Modal */
.link-number {
    font-size: 20px;
    width: 100px;
    color: var(--text-link);
}

.link-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.link-row .form-group {
    flex: 1;
    min-width: 100px;
}

.order-field {
    flex: 0 0 60px;
}

.multi-select-group select {
    height: 85px;
}
.multi-select-group option {
    border-color: #F8F8F8; /* Remains light for readability */
    border-radius: 0px !important;
    max-height: 23px !important;
    padding: 0 !important;
}

.remove-link-btn {
    background-color: var(--btn-remove-bg);
    color: var(--text-button);
    padding: 8px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    align-self: flex-start;
    margin-left: 10px;
    margin-top: 25px;
}

.form-group select,
.form-group input {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 800px) {
    .link-row {
        flex-direction: column;
    }

    .remove-link-btn {
        margin-left: 0;
        margin-top: 10px;
    }
}

input[type="text"],
input[type="password"],
input[type="url"],
input[type="number"],
option,
select {
    height: 35px;
    width: 100%;
    padding: 8px;
    margin-bottom: 0px;
    box-sizing: border-box;
    border: 1px solid var(--border-primary);
    border-radius: 4px;
}

select[multiple] {
    border: 1px solid var(--border-primary) !important;
}

.form-group {
    margin-top: 0;
    margin-bottom: 0;
}

.link-type-select {
    height: 35px;
}

.field-region-select {
    height: 150px !important;
    border: 0 !important;
}

.field-region-option {
    box-sizing: none;
    border: 0 !important;
}

.field-platform-select {
    height: 150px !important;
    border: 0 !important;
}

.field-platform-option {
    box-sizing: none;
    border: 0 !important;
}

.field-hot-item-label {
    width: 100px;
}

.field-hot-item-input {
    position: relative;
    right: 140px;
    top: 4.5px;
    height: 15px;
}

.field-search-tag {
    margin-top: -10px;
    margin-bottom: -10px;
}

.field-textarea-description {
    width: 100%;
    resize: both;
    max-width: 100% !important;
}

/* Overall container to handle layout */
.main-container {
    display: flex;
    justify-content: space-between;
    
    /*max-width: 100%;*/
    max-width: 97.7vw;
    
    margin: 0 auto; /* Center the container */
    padding: 20px 0px 20px 0px;

    margin-left: -20px;
    margin-right: -20px;

    max-width: 97.7vw;
}

.main-content {
    flex: 1;
    margin-right: 20px; /* Space between the content and sidebar */
}










/* Header Banner and navigation */

/* This is the fix to allow position: sticky to work correctly */
#app, .vue-container {
    overflow: visible !important;
}

.sticky-top-container {
    position: sticky;
    top: 0;
    z-index: 1020;
    /*border-bottom: 1px solid var(--border-strong);*/
}

.header-banner {
    position: relative;
    width: 100%;
    background-color: var(--bg-header);
    color: var(--text-primary);
    height: 80px;
    /*border-top: 3px solid var(--border-strong);*/
    border-bottom: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.header-banner-left {
    display: flex;
    align-items: center;
}

.header-banner-right {
    display: flex;
    align-items: center;
}

.header-banner-logo {
    margin-right: 10px;
    margin-top: -4px;
}

.header-banner-left-text {
    font-size: 15px;
    margin-left: -5px;
}

.header-banner-right-text {
    font-size: 15px;
}

.bg-light {
    background: var(--bg-site-nav-lower) !important;
}

.topnav .search-container {
    float: right;
}
  
.topnav input[type=text] {
    width: 500px;
    padding-left: 40px;
    margin-left: 40px;
    padding: 6px;
    margin-top: 8px;
    font-size: 17px;
    border: none;
}
  
.topnav .search-container button {
    float: right;
    padding: 6px 10px;
    margin-top: 8px;
    margin-right: 16px;
    background: var(--bg-card);
    font-size: 17px;
    border: none;
    cursor: pointer;
}
  
.topnav .search-container button:hover {
    background: var(--border-primary);
}
  
@media screen and (max-width: 600px) {
    .topnav .search-container {
        float: none;
    }
    .topnav a, .topnav input[type=text], .topnav .search-container button {
        float: none;
        display: block;
        text-align: left;
        width: 100%;
        margin: 0;
        padding: 14px;
    }
    .topnav input[type=text] {
        border: 1px solid var(--border-primary);
    }
}

.new-badge {
    background-color: #28a745; 
    color: white;
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: bold;
    margin-right: 0px;
    vertical-align: middle; 
}

.navbar {
    padding-left: 35px;
    border-bottom: 1px solid var(--border-strong);
}
.nav-item a {
    color: var(--text-navbar-link) !important;
    border-radius: 0; /* Reset in case of inheritance */
    background-color: transparent;
    transition: background 0.2s, color 0.2s;
}
.nav-item a:hover {
    color: var(--text-navbar-link-hover) !important;
    background-color: var(--bg-nav-item-hover) !important;
    border-radius: 5px !important;
}

.nav-item a:focus {
    color: var(--text-navbar-link-hover) !important;
}

/* Prevent background on dropdown menu links */

.dropdown-menu .nav-item a,
.dropdown-menu a,
.dropdown-menu-item a,
.dropdown-item-customized a {
    background-color: transparent !important;
    border-radius: 0 !important;
}

.nav-item-divider {
    color: #4D4D4D !important;
    position: relative;
    top: 7px;
}

.dropdown-menu {
    background-color: var(--navbar-dropdown-menu-background) !important;
}

.dropdown-menu-item {
    color: var(--black) !important;
}

a.dropdown-item.dropdown-item-customized:hover {
    color: var(--text-navbar-dropdown-link-hover) !important;
    background-color: var(--navbar-dropdown-menu-item-background-hover) !important;
    border-radius: 0 !important;
}
.dropdown-item-customized a:hover {
    color: var(--text-navbar-dropdown-link-hover) !important;
    background-color: var(--navbar-dropdown-menu-item-background-hover) !important;
    border-radius: 0 !important;
}
.dropdown-item-customized a:focus {
    color: var(--text-navbar-dropdown-link-focus) !important;
    background-color: var(--navbar-dropdown-menu-item-background-hover) !important;
    border-radius: 0 !important;
}



.dropdown .dropdown-menu {
    display: none;
    margin-top: 0; /* Ensures there is no gap between the link and the dropdown menu */
}

.dropdown:hover .dropdown-menu {
    display: block; 
}









.main-search {
    width: auto;
    margin: 0;
    margin-top: 20px;
    margin-bottom: 10px;
}

.has-search .form-control {
    padding-left: 2.375rem;
}

.has-search .form-control-feedback {
    position: absolute;
    display: block;
    width: 2.375rem;
    height: 2.375rem;
    line-height: 2.375rem;
    text-align: center;
    pointer-events: none;
    color: var(--text-subtle);
}

.form-control:focus {
    outline:solid 2px var(--border-input-focus);
}

.form-control-bg {
    /*background-color: var(--bg-search-bar) !important;*/
    background-color: var(--bg-form-control) !important; /* Match the dark base color */
    border: 1px solid #4C00FF !important;  /* Bright purple accent border */
    color: #333 !important;             /* Off-white for input text */
}
.form-control-bg:focus {
    outline: none !important;
    color: #333 !important;
    border-color: #4C00FF !important;

}

.no-search-results-message {
    color: var(--text-button);
    font-style: italic;
    margin-top: 10px;
    padding-left: 20px;
    text-align: center;
    background-color: var(--bg-search-results-none);
}

.region-filters {
    margin: 0;
    margin-left: 20px;
    display: flex;
    align-items: center; 
    gap: 10px;
}

.switch-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-switch-off);
    transition: .4s;
    border-radius: 20px;

}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: var(--white);
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 0 2px var(--shadow-switch);
    padding-top: 0px !important;
}

.switch input:checked + .slider {
    background-color: var(--bg-switch-on);
}

.switch input:checked + .slider:before {
    transform: translateX(20px);
}

.switch-label {
    margin-left: 5px;
    margin-top: 5px;
    font-size: 14px;
    color: var(--text-primary-inverted);
    text-align: center;
}

.search-panel {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 10px 20px;
}
  
.search-panel-left {
    display: flex; 
    flex-direction: column;
    margin-left: 20px;
    width: 600px;
}

/* Styles for Collapsible Filters in left-hand column */
.filter-section {
    margin-bottom: 5px;
}

.filter-title {
    font-weight: bold;
    margin-bottom: 8px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.filter-title:hover {
    background-color: rgba(76, 0, 255, 1);
}

.filter-title .arrow-icon {
    transition: transform 0.3s ease;
    transform: rotate(-90deg); /* Start pointing right */
}

.filter-title.expanded .arrow-icon {
    transform: rotate(0deg); /* Point down when expanded */
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-left: 15px;
}

.filter-item {
    display: flex;
    align-items: center;
}

.filter-controls {
    display: flex;
    gap: 10px;
    margin: 0 10px 15px 10px;
}

.filter-controls button {
    flex: 1; /* Make buttons share space equally */
}

/* Vertical alignment fix for filter switch sliders */
        .filter-item .switch {
            width: 40px !important;
            height: 20px !important;
        }
        .filter-item .slider:before {
            height: 18px !important; /* 20px container - 1px top - 1px bottom */
            width: 18px !important;
            left: 1px !important;
            bottom: 1px !important;
        }
        .filter-item .switch input:checked + .slider:before {
            transform: translateX(20px) !important;
        }





/*
* "Recent Links" panel
*/

.recent-links-panel-gradient-background {
    margin-bottom: -30px !important;
    display: flex;
    flex-wrap: wrap;
}

.recent-links-panel {
    position: relative;
    max-width: 1200px;
    min-width: 1000px;
    background-color: var(--bg-recent-links-panel);
    border: 1px solid var(--border-strong);
    border-radius: 5px;
    padding: 20px;
    margin-left: 10px;
    margin-right: 20px;
    margin-top: 20px;
    color: var(--text-primary);
}

.recent-links-panel::after {
    content: "";
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: inherit;
    background: linear-gradient(45deg,
      var(--poppy),
      var(--cobalt) 
    );
    background-size: 300% 300%;
    filter: blur(16px);
    animation: glowAnimation 5s ease infinite;
    z-index: -1;
    opacity: 0.8;
}
  
@keyframes glowAnimation {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.recent-links-panel h5 {
    padding-top: 10px;
    padding-bottom: 5px;
    margin-top: 0;
    font-family: var(--font-docusign-2);
    font-size: 36px;
    font-weight:400;
    display: inline-block;
    background: -webkit-linear-gradient(var(--cobalt), var(--poppy));
    background: linear-gradient(var(--cobalt), var(--poppy));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.recent-links-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    border-collapse: separate;
    border: 1px solid var(--border-strong);
    border-radius: 5px;
}

.recent-links-table th, .recent-links-table td {
    padding: 5px;
}

.recent-links-table th {
    background-color: var(--bg-table-header);
    color: var(--text-button);
}

.recent-links-table tr:hover {
    background-color: var(--bg-table-row-hover);
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}
  

.recent-links-table tr:last-child:hover {
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    background-color: var(--bg-table-row-hover);
}









/* Admin section */
.admin-section {
    background-color: var(--bg-content-admin-panel);
    color: var(--text-primary);
    padding: 20px;
    margin: 20px 40px;
    border-radius: 5px;
    border: 1px solid var(--bg-platform-header);
    box-shadow: 0px 0px 40px -10px var(--bg-platform-header);
}

.admin-section h2 {
    margin: 0;
    display: flex;
    align-items: center;
}

.admin-section .collapse-btn .collapse-btn-admin {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 24px;
    vertical-align: middle;
    margin-left: 10px;
}

.collapse-btn {
    width: 80%;
    background-color: var(--bg-platform-header);
    border: none;
    color: var(--text-primary-inverted);
    outline: none;
}
.collapse-btn:hover, .collapse-btn:active, .collapse-btn:focus {
    background-color: var(--bg-platform-header);
    border: none;
    outline: none !important;
}
.collapse-btn-size {
    margin-left: -12px;
}

.collapse-btn-admin {
    width: 30px;
    height: 30px;
    background-color: var(--bg-content-admin-panel);
    border: none;
    color: var(--text-primary);
    outline: none;
}
.collapse-btn-admin:hover, .collapse-btn-admin:active, .collapse-btn-admin:focus {
    background-color: var(--bg-content-admin-panel);
    border: none;
    outline: none !important;
}
.collapse-btn-admin-size {
    padding: 0;
    padding-bottom: 10px;
}

.collapse-btn .material-symbols-outlined {
    transition: transform 0.3s ease;
}
  
.collapse-btn.expanded .material-symbols-outlined {
    transform: rotate(-180deg);
}

.collapse-btn-admin .material-symbols-outlined {
    transition: transform 0.3s ease;
}

.collapse-btn-admin.expanded-admin .material-symbols-outlined {
    transform: rotate(-180deg);
}

.admin-content {
    margin-top: 10px;
}

.admin-content button {
    margin-right: 10px;
}

.admin-button {
    color: var(--text-button);
    background-color: var(--btn-primary-bg);
}

.admin-button:hover {
    color: var(--text-button);
    background-color: var(--poppy);
}

.button-collapse-expand {
    margin-left: 0px !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    padding: 5px 5px 5px 5px !important;
    
    text-wrap: nowrap;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.non-admin-card-edit-btn-container {
    margin-top: 5px;
}

/* Sidebar positioning */
.sticky-sidebar {
    position: sticky;
    top: 10px;
    width: 150px;
    border-radius: 5px;
    background: var(--bg-sidebar);
    padding: 10px;
    box-shadow: 0 0 10px var(--shadow-sidebar);
    color: var(--text-primary);
    height: 100%;
    margin-bottom: 30px;
    border: solid var(--border-strong);
    border-radius: 4px;
    border-width: 1px;
    margin-right: 20px;
}

.sticky-item {
    margin: 10px 0;
    padding: 10px;
    background: var(--bg-sidebar-item);
    text-align: center;
    border-radius: 2px;
    border: solid var(--cobalt);
    border-width: 1px;
}

.sticky-item a {
    color: var(--text-primary);
    text-decoration: none;
}

.sticky-item:hover {
    background-color: var(--poppy);
}

.sticky-item:hover a {
    color: var(--white);
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .sticky-sidebar {
        position: relative;
        width: 100%;
        margin-bottom: 20px;
    }
}

.link-hover {
    cursor: pointer;
}

/* Tags Section Styles */
.tags-section {
    margin-top: 20px;
}

.tag-input {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.tag-field {
    display: flex;
    align-items: center;
    width: 100%;
}

.tag-field input {
    flex: 1;
    padding: 8px;
    margin-right: 10px;
}

.remove-tag-btn {
    background-color: var(--btn-remove-bg);
    color: var(--text-button);
    padding: 8px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.remove-tag-btn:hover {
    background-color: var(--btn-remove-hover-bg);
}

.add-tag-btn {
    background-color: var(--btn-primary-bg);
    color: var(--text-button);
    margin-top: 10px;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: -2px;
}

.add-tag-btn:hover {
    background-color: var(--btn-primary-hover-bg);
}

/* Modal Styles for the modal that shows all category details */
.view-all-modal {
    display: block;
    position: fixed;
    z-index: 1050; /* Changed from 100 to 1050 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--bg-modal-backdrop);
}

.view-all-modal .modal-content {
    background-color: var(--bg-modal);
    margin: 5% auto;
    padding: 5px !important;
    /*border: 1px solid transparent;*/ /* Fallback */
    /*border: linear-gradient(var(--bg-modal), var(--bg-modal)), var(--border-modal-glow);
    border-radius: 5px;
    background-image: linear-gradient(var(--bg-modal), var(--bg-modal)), var(--border-modal-glow);
    background-origin: border-box;
    background-clip: content-box, border-box;*/
    width: 80%;
    max-width: 4000px;
    min-width: 800px;
    position: relative;
    box-shadow: 0px 0px 50px var(--shadow-modal-glow);
}

.modal-content {
    background-clip: border-box !important;
    border: 1px solid #AAAAAA !important;
    border-width: 10px !important;
    border-style: solid !important;
    border-radius: 15px !important;
    border-image-slice: 1 !important;
    border-image-source: linear-gradient(to left, #743ad5, #4C00FF) !important;
    clip-path: rect(1px 100% 100% 1px round 10px) !important;
}

.modal-content-padding {
    padding: 25px !important;
    padding-left: 20px !important;
    margin: 25px !important;
}

.modal-wrapper {
    width: 8000px;
    background-image: linear-gradient(white, white), linear-gradient(to right, #4C00FF, #FF5252) !important;
}
  
.view-all-modal .close {
    color: var(--modal-close-x-text);
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    padding-top: 0px;
    padding-right: 10px;
}
  
.view-all-modal .close:hover,
.view-all-modal .close:focus {
    color: var(--modal-close-x-text-hover);
    text-decoration: none;
    cursor: pointer;
}

.modal-category-header {
    text-align: center;
    padding-top: 10px;
    position: relative;
    border-bottom: 1px solid var(--border-table);
}

.modal-category-logo {
    height: 50px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow-card-lighter);
}

.modal-category-header h2 {
    font-size: 2em;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.modal-links-section {
    margin-top: 10px;
    padding-left: 25px;
}
  
.modal-link-type-section {
    margin-bottom: 20px;
}
  
.modal-link-type-section h3 {
    margin-bottom: 10px;
}
  
.modal-link-type-section ul li {
    margin-bottom: 0px;
}
  
.modal-link-type-section ul li a {
    color: var(--text-link);
    text-decoration: none;
}
  
.modal-link-type-section ul li a:hover {
    text-decoration: underline;
}

.modal-link-type-section-link-name-top {
    margin-top: 10px;
}
  
.category-modal-small-font {
    font-size: 0.9em;
    color: var(--text-tertiary);
    line-height: 1;
    max-width: 87%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-modal-header-dates {
    margin: 5px 0;
    padding: 0;
}

.category-modal-header-dates b {
    color: var(--text-link);
    font-weight: 600;
    margin-right: 5px;
}

.category-modal-header-description {
    margin-top: 5px;
    margin-bottom: 10px;
    padding: 15px 20px;
    background-color: var(--bg-content);
    border: 1px solid var(--border-table);
    border-left: 5px solid var(--cobalt);
    border-radius: 5px;
    color: var(--text-secondary);
    font-size: 1em;
    line-height: 1.5;
    text-align: left;
    box-shadow: 0 2px 4px var(--shadow-card-lighter);
    width: 100%;
    box-sizing: border-box;
}

.category-modal-header-description b {
    color: var(--text-link); 
    margin-right: 4px; 
}

.modal-dialog {
    max-height: 90vh;
    margin: auto;
    width: 90% !important;
    max-width: 90%;
}

.modal-content {
    max-height: 90vh;
    overflow: hidden;
}

.modal-body {
    overflow-y: auto;
    max-height: calc(90vh - 120px);
    margin-top: -15px;
    margin-bottom: 5px;
    padding: 25px 0px 0px 0px;
} 


.modal-body::-webkit-scrollbar-track {
    margin-top: 75px;
    margin-bottom: 25px;
    background-color:  var(--modal-body-scrollbar-track); /* #dadedf */
    overflow-y: hidden;
    border-radius: 5px;
}

.modal-body::-webkit-scrollbar {
    display: block;
    width: 12px;
    /*margin-bottom: 10px;*/
    margin-top: 10px;
    height: 50px;
    border-radius: 5px;
}

.modal-body::-webkit-scrollbar-thumb {
    background-color: var(--modal-body-scrollbar-thumb) !important; /* #666666 */
    border-radius: 5px;
    padding: 3px !important;
    border: 1px solid var(--modal-body-scrollbar-track);
}

.category-modal-demos-table-wrapper {
    overflow-x: auto;
    margin: 20px 60px 20px 60px;
    border-radius: 8px;
    box-shadow: 0 2px 5px var(--shadow-card-lighter);
    border: 1px solid var(--border-table);
}

.category-modal-demos-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    background-color: var(--bg-card);
    min-width: 800px;
}

.category-modal-demos-table thead {
    background-color: var(--bg-table-header);
    color: var(--text-button);
}

.category-modal-demos-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.5px;
    background-color: var(--bg-table-header);
    color: var(--text-button);
    border-bottom: 1px solid var(--cobalt);
}

.category-modal-demos-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-table);
    background-color: var(--bg-card);
    vertical-align: top;
}

.category-modal-demos-table tbody tr.hovered-link td {
    background-color: var(--bg-table-row-hover);
    transition: background-color 0.2s ease-in-out;
}

.category-modal-demos-table tbody tr.link-description-row td {
    font-style: italic;
    padding-left: 15px;
    border-top: 1px solid var(--border-table);
}

.category-modal-demos-table td a {
    color: var(--text-link);
    text-decoration: none;
}

.category-modal-demos-table td a:hover {
    text-decoration: underline;
}

.category-modal-demos-table th:first-child {
    border-top-left-radius: 8px;
}

.category-modal-demos-table th:last-child {
    border-top-right-radius: 8px;
}

.category-modal-demos-table-wrapper {
    overflow-x: auto;
}

/* View All Modal */
.large-modal {
    width: 90%;
    max-width: 90%;
    height: 80%;
    overflow: auto;
}

.view-all-table-container {
    overflow-x: auto;
}

.view-all-data-table {
    width: 100%;
    border-collapse: collapse;  
}

.view-all-data-table th,
.view-all-data-table td {
    border: 1px solid var(--border-table);
    padding: 8px;
}

.view-all-data-table th {
    background-color: var(--bg-popup-header);
    text-align: left;
}

.view-all-data-table a {
    color: var(--text-link);
}

.modal-actions {
    margin-bottom: 15px;
    text-align: left; 
}

.download-csv-button {
    background-color: var(--btn-primary-bg);
    color: var(--text-button);
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.download-csv-button:hover {
    background-color: var(--btn-primary-hover-bg);
}

/* Success Modal Styles */
.success-modal {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1051; /* Changed from 1001 (made it 1051 so it can appear over other modals) */
    background-color: var(--modal-success-bg);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease, fadeOut 5.5s ease 7.5s;
    max-width: 500px;
    width: calc(100% - 40px);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-modal .close {
    position: absolute;
    top: 5px;
    right: 10px;
    color: var(--white);
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.success-modal p {
    margin: 0;
    text-align: center;
    padding-right: 25px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Error Modal Styles */
.error-modal {
    background-color: var(--modal-error-bg);
}

/* Footer */
.footer {
    position: relative;
    width: 100%;
    background-color: var(--bg-footer);
    height: 150px;
    align-content: center;
    color: var(--white);
    text-align: center;
}

.footer-logo {
    padding-left: 40px;
    font-size: 15px;
    vertical-align: middle;
    margin-right: 10px;
    display: inline-block;
    margin-top: -2px;
}

.footer-text {
    font-size: 15px;
    vertical-align: middle;
    display: inline-block;
    margin-left: -8px !important;
}

.footer-version {
    font-size: 10px;
    padding-bottom: 25px;
}

.password-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    padding-right: 70px;
    width: 100%;
    box-sizing: border-box;
    height: 40px; 
}

.reveal-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-link);
    font-size: 13px;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.reveal-toggle .material-symbols-outlined {
    font-size: 20px;
}

.modal-close-button:hover{
    background-color: var(--cobalt);
    color: var(--white);
}




/* New Demo Request Modal */

/* Main container for the instructions */
.new-demo-asset-instructions {
    font-family: 'DSIndigo', 'Segoe UI', Tahoma, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6; 
    color: var(----text-primary);   
    max-width: 1200px; 
    margin-bottom: 2rem; 
    border-left: 3px solid var(--cobalt); 
    padding-left: 1.5rem;
}

/* Controls spacing between the paragraphs */
.new-demo-asset-instructions p {
    margin: 0 0 1em 0; 
}

.new-demo-asset-instructions p:last-child {
    margin-bottom: 0; 
}

/* Styling for the links */
.new-demo-asset-instructions a {
    color: var(--text-link); 
    
    font-weight: 500; 
    text-decoration: none; 
    border-bottom: 1px solid var(--text-link); 
    transition: color 0.2s ease, border-bottom-color 0.2s ease; 
}

/* Hover effect for links */
.new-demo-asset-instructions a:hover {
    color: var(--text-link-hover); 
    background-color: var(--bg-nav-item-hover);
    border-bottom-color: var(--text-link-hover);
}




/* Return to "top" of page button - START */

#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: var(--poppy);
  border: 1px solid var(--black);
  color: white;
  font-family: sans-serif;
  font-size: 14px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* New properties for fade effect */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* New class to make the button visible */
#scrollTopBtn.visible {
  opacity: 1;
  visibility: visible;
}

#scrollTopBtn:hover {
  opacity: 0.8;
}

.arrow-up {
  font-size: 20px;
  line-height: 1;
}

.label {
  font-size: 12px;
  margin-top: 2px;
}

/* Return to "top" of page button - END */


/* Controls the popup box that appears when hovering over link type icons within an item card on the main page. If icon is too close to the right hand side edge of the page, then it will truncate / spill off of the page. The styling below works in tandem with javascript in the Vue file to re-orient the popup so it's more left facing rather than right facing, so it shouldn't truncate off of the page. */
.hover-popup.js-popup-right-aligned {
    /* Unset the original 'left' and anchor it to the right instead */
    left: auto;
    right: -33px;

    /* Adjust the transform origin to scale from the top-right */
    transform-origin: 92% -10px;
}

/*
 This rule repositions the arrow to match the new popup alignment.
*/
.hover-popup.js-popup-right-aligned::before {
    /* Unset the default 'left' and position the arrow from the right */
    left: auto;
    right: 25px; /* Adjust this value to help center the arrow */
}