@import url('https://cdn.jsdelivr.net/npm/@mdi/font@7.2.96/css/materialdesignicons.min.css');
@import url('./utility.css');

:root {
    /* General variables */
    --text-color-light: white;
    --text-color-dark: black;
    --border-color: white;
    --font-family: inherit;

    --border-rounded: 10px;
    --border-circled: 50%;
    --border-sharp: 0px;
    --position-left: -6px;
    --position-top: -6px;
    --position-right: -6px;
    --position-bottom: -6px;

    /* Color Themes */
    --bg-azusa: hsla(191, 22%, 10%, var(--container-opacity));
    --bg-light: hsl(0, 0%, 100%, var(--container-opacity));
    --bg-retro: hsl(45, 47%, 80%, var(--container-opacity));
    --bg-forest: hsl(0, 12%, 8%, var(--container-opacity));
    --bg-aqua: hsl(219, 53%, 43%, var(--container-opacity));
    --bg-night: hsl(222, 46%, 11%, var(--container-opacity));


    --bg-secondary-azusa: hsl(191, 22%, 10%);
    --bg-secondary-light: hsl(213, 22%, 80%);
    --bg-secondary-retro: hsl(45, 31%, 67%);
    --bg-secondary-forest: hsl(161, 37%, 15%);
    --bg-secondary-aqua: hsl(205, 54%, 50%);
    --bg-secondary-night: hsl(217, 33%, 17%);

    --bg-accent-azusa: hsla(329, 77%, 68%, 0.721);
    --bg-accent-light: hsl(180, 2%, 90%);
    --bg-accent-retro: hsl(44, 47%, 68%);
    --bg-accent-forest: hsl(0, 0%, 0%);
    --bg-accent-aqua: hsl(219, 53%, 36%);
    --bg-accent-night: hsl(240, 100%, 0%);

    --bg-highlight-azusa: hsl(328, 44%, 13%);
    --bg-highlight-light: hsl(220, 7%, 92%);
    --bg-highlight-retro: hsl(45, 32%, 74%);
    --bg-highlight-forest: hsl(0, 6%, 15%);
    --bg-highlight-aqua: hsl(220, 43%, 48%);
    --bg-highlight-night: hsl(221, 27%, 18%);

    /* Base colors */
    --bg-primary: var(--bg-azusa);
    --bg-secondary: var(--bg-secondary-azusa);
    --bg-accent: var(--bg-accent-azusa);
    --bg-highlight: var(--bg-highlight-azusa);

    /* Border radius*/
    --border-radius: var(--border-rounded);

    /* Container.js */
    --container-border-radius: var(--border-radius);
    --container-bg-color: hsl(191, 21, 10);
    --container-opacity: 0.755;
    --container-padding: 10px;
    --container-margin: 6px;
    --container-display: flex;
    --container-justify-content: flex-start;
    --container-align-items: stretch;
    --container-wrap: wrap;
    --container-gap: 4px;
    --container-position: absolute;
    --container-pos-top: 8px;
    --container-pos-right: 8px;

    /* Button.js */
    --button-radius: var(--border-circled);
    --button-bg-color: var(--bg-secondary);
    --button-border-color: var(--border-color);
    --button-font-weight: normal;

    --bg-dark-gray: rgb(48, 48, 48);
    
    /* pipe color category */
    --bg-blue: rgb(77, 129, 163);
    --bg-green: rgb(50, 107, 75);
    --bg-gray: rgb(166, 166, 166);
    --bg-silver: rgb(192, 192, 192);
    --bg-red: rgb(183, 31, 51);
    --bg-yellow: rgb(255, 186, 0);
    --bg-black: rgb(38, 38, 38);
    --bg-brown: rgb(176, 103, 72);
    --bg-pink: rgb(208, 123, 157);
    --bg-orange: rgb(244, 122, 47);
}

/*pipe  color  category*/
.at_pipe_category-bg-blue { background-color: var(--bg-blue); }
.at_pipe_category-bg-green { background-color: var(--bg-green); }
.at_pipe_category-bg-gray { background-color: var(--bg-gray); }
.at_pipe_category-bg-silver { background-color: var(--bg-silver); }
.at_pipe_category-bg-red { background-color: var(--bg-red); }
.at_pipe_category-bg-yellow { background-color: var(--bg-yellow); }
.at_pipe_category-bg-black { background-color: var(--bg-black); }
.at_pipe_category-bg-brown { background-color: var(--bg-brown); }
.at_pipe_category-bg-pink { background-color: var(--bg-pink); }
.at_pipe_category-bg-orange { background-color: var(--bg-orange); }

/* end pipe color category  */

.at_pipe-save-btn{
    /* background: var(--bg-highlight-light); */
    color: var(--text-color-light);
    line-height: 20px;
}

/* pipe circle */
.at_circle {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  position: relative;
  color: white; /* for checkmark */
  font-size: 18px;
  cursor: pointer;
}

.at_circle.selected::after {
  content: "✓";
  position: absolute;
  color: black;
  font-size: 20px;
  font-weight: 900;
}
/* end circle */

/* pipe classes */


/* .at_dropdown-option{
    transition: background-color 0.2s ease;
}

.at_dropdown-option.selected{
    background-color: var(--bg-accent-azusa);
    color: var(--text-color-dark);
    border-radius: 2px;
}

.at_dropdown-option:hover{
    background-color: var(--bg-accent-azusa);
    color: var(--text-color-dark);
    border-radius: 2px;
} */

.at_locate_area_container {
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
}

.at_locate_area_container.selected {
    background-color: var(--bg-accent-azusa);
    color: var(--text-color-dark);
    border-radius: 2px;
}

.at_locate_area_container:hover {
    background-color: var(--bg-accent-azusa);
    color: var(--text-color-dark);
    border-radius: 2px;
}

.at_pipe-dots-bg{
    color: black;
    line-height: 20px;
}

.at_draw_pipe_btn{
    white-space: nowrap;
    width: 100%;
    font-weight: 900;
}

.at_pipe-vertex-bg{
    /* background-color: var(--bg-lime-yellow); */
    color: black;
    line-height: 20px;
    
}


.at_pipe_content{
    background-color: var(--bg-dark-gray);
    padding: 5px;
    font-size: 12px;
    text-align: center;
}
.at_pipe_container{
    background-color: var(--bg-accent-forest);
    padding: 10px;
    border-radius: 10px;
    /* height: 40vh; */
}
.at_pipe_category-container{
    font-size: 35px;
}

.at_pipe_label {
    position: absolute;
    top: 20px; 
    /* left: 12px;   */
    text-align: left;
    display: inline-block;
    /* padding: 0 4px; */
    height: 14px;
    line-height: 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-color-light);
    cursor: text;
    transition: all .15s ease-in-out;
}

.at_pipe_input {
    position: relative;
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--bg-highlight-light);
    color: var(--text-color-light);
    background-color: transparent;
    margin: 0px auto;
    /* padding: 6px 4px 4px 14px; */
    height: 40px;
    outline: none !important;
    /* font-size: 14px; */
    transition: all .1s ease-in-out;
}
.at_pipe_input:hover, .at_pipe_input:focus { border-bottom: 2px solid var(--bg-highlight-light); }

.at_pipe_input:valid + label, .at_pipe_input:focus + label { 
    top: -4px;
    color: var(--text-color-light);
    font-weight: bold;
}
/* end pipe classes */

/* collapse classes */

.at_collapse_container{
    width: 100%;
    /* height: calc(100vh - 298px); */
    overflow: auto;
}

.at_collapsible_section{
    margin-bottom: 0 20px;
}

/* .at_collapse-content{
    height: 400px; 
} */

.at_collapsible_container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.at_collapsible_header {

    cursor: pointer;
    border-bottom: none;
}

.at_collapsible_content {
    height: 0;
    overflow: hidden;
    border: none;
}

.at_collapsible_content.expand {
    height: 100%; 
}

.at-collapse-toggle-btn{
    display: inline-block;
    transform: rotate(-90deg); 
}

.at-collapse-toggle-btn.active{
    transform: rotate(0deg); 
}

.at_collapsible_content div {
    margin: 0;
}

.at_collapsible_content span{
    cursor: pointer;
}

/* end collapse classed */



.at_align_item_end{
    align-items: end
}



.at_topLeft {
    top: var(--position-top);
    left: var(--position-left);
}

.at_topRight {
    top: var(--position-top);
    right: var(--position-right);
}

.at_bottomLeft {
    bottom: var(--position-bottom);
    left: var(--position-left);
}

.at_bottomRight {
    bottom: var(--position-bottom);
    right: var(--position-right);
}

.at_container {
    display: var(--container-display);
    background-color: var(--bg-primary);
    color: var(--text-color-light);
    border-radius: var(--border-sharp);
    padding: var(--container-padding);
    justify-content: var(--container-justify-content);
    align-items: var(--container-align-items);
    flex-wrap: var(--container-wrap);
    gap: var(--container-gap);
    flex-direction: column;
    margin: 2px;
    pointer-events: auto;
}

.at_toolbar_sidebar_container {
    position: absolute;
    /* background-color: hsla(191, 22%, 10%, 0.495); */
    top: var(--position-top);
    right: var(--position-right);
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: stretch;
    pointer-events: none;
}

.at_toolbar_container {
    display: var(--container-display);
    background-color: var(--bg-primary);
    color: var(--text-color-light);
    border-radius: var(--border-sharp);
    padding: var(--container-padding);
    justify-content: var(--container-justify-content);
    align-items: var(--container-align-items);
    flex-wrap: var(--container-wrap);
    flex-direction: column;
    gap: var(--container-gap);
    margin: 2px;
    pointer-events: auto;
}

.at_scrollable_container {
    max-height: 60vh;
    gap: 4px;
    overflow-y: scroll;
    padding: 2px 2px;
    scroll-behavior: smooth;
}

.at_scrollable_container::-webkit-scrollbar {
    width: 3px;
    /* width of the entire scrollbar */
}

.at_scrollable_container::-webkit-scrollbar-track {
    background: transparent;
    /* color of the tracking area */
}

.at_scrollable_container::-webkit-scrollbar-thumb {
    background-color: var(--bg-secondary);
    /* color of the scroll thumb */
    border-radius: 1px;
    /* roundness of the scroll thumb */
}

.at_flex_tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.at_button {
    font-weight: var(--button-font-weight);
    padding: 6px 0.8em 6px;
    border-radius: var(--border-radius);
    max-height: 2.5em;
    cursor: pointer;
    text-align: center;
}

/* Smaller version for inline use */
.at_button--small {
    font-size: 0.8em;
    padding: 2px 0.6em;
    line-height: 1.2em;
    max-height: 1.8em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    
}

.at_button_icon {
    padding: 2px 8px;
    cursor: pointer;
    font-size: 20px;
}

.at_button_icon:hover {
    border-radius: var(--border-radius);
    background-color: var(--bg-accent);
    color: var(--text-color-dark);
}

.at_search_button {
    font-weight: var(--button-font-weight);
    background: var(--bg-accent);
    color: var(--text-color-light);
    padding: 9px 0.8em 9px;
    max-height: 3em;
    cursor: pointer;
    text-align: center;
}

.at_search_button:hover {
    background-color: var(--bg-accent-azusa);
    color: var(--text-color-dark);
}

.at_icon {
    font-size: 1.6em;
    cursor: pointer;
}

.at_icon:hover {
    color: var(--bg-accent-azusa)
}

.at_button_active {
    background-color: var(--bg-secondary);
    color: var(--text-color-light);
    outline: solid white 2px;
    border-radius: var(--border-radius);
}

.at_button_row {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 4px;
    margin-bottom: 8px;
    margin-top: 8px;
}

.at_button_search_tag{
    cursor: pointer;
    position: absolute;
    z-index: 99;
    top: 10px;
    right: 75px;
}

.at_button_search{
    cursor: pointer;
    position: absolute;
    z-index: 99;
    top: 10px;
    right: 12px;
}

.at_search_icon{
    cursor: pointer;
    position: absolute;
    z-index: 98;
    top: 10px;
    right: 12px;
}

.at_justify_start {
    justify-content: flex-start;
}

.at_justify_end {
    justify-content: flex-end;
}

.at_justify_between {
    justify-content: space-between;
}

.at_justify_center {
    justify-content: center;
}

.at_items_center {
    align-items: center;
}

.at_sidebar_button_icon {
    padding: 4px 8px;
    cursor: pointer;
    font-size: 25px;
}

.at_sidebar_action_button_icon {
    padding: 4px 8px;
    cursor: pointer;
    font-size: 25px;
}

.at_sidebar_button_icon:hover {
    border-radius: var(--border-radius);
    background-color: var(--bg-accent);
    color: var(--text-color-light);
}

.at_sidebar_action_button_icon:hover {
    border-radius: var(--border-radius);
    background-color: var(--bg-accent);
    color: var(--text-color-light);
}

/* CSS for tooltip text */
.at_sidebar_button_icon:hover .at_icon_tooltip {
    transition: opacity 0.3s ease;
    visibility: visible;
    opacity: 1; 
    
}

.at_sidebar_action_button_icon:hover .at_icon_tooltip {
    transition: opacity 0.3s ease;
    visibility: visible;
    opacity: 1; 
    
}

.at_icon_tooltip {
    position: absolute;
    top: 50%;
    right: calc(100% + 18px); 
    color: #fff;
    transform: translateY(-50%); 
    font-size: 12px; 
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1;
    visibility: hidden;
    background-color: #2A2B26;
    opacity: 0;
    transition: opacity 0.3s ease;
}
  
.at_icon_tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #2A2B26;
}
  
.at_sidebar_button_icon_active {
    border-radius: var(--border-radius);
    background-color: var(--bg-accent);
    color: var(--text-color-light);
}

.at_panel_header {
    text-align: right;
    font-size: larger;
    /* width: 100%; */
    color: var(--text-color-light);
    padding: .0em .2em;
    border-bottom: solid 1px white;
    margin: .2em;
    max-height: 2.5em;
}

.at_grouped_center {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.at_scrollable_container table {
    width: 100%;
}

.at_scrollable_container tr {
    border-bottom: solid white 1px;
}

.at_scrollable_container tr:hover td {
    background-color: var(--bg-highlight-azusa);
    cursor: pointer;
}

.at_scrollable_container tr td {
    padding: 2px 6px;
}

.at_scrollable_container tr td span {
    padding-left: 6px;
}

.at_scrollable_container tr td span:hover {
    color: var(--bg-secondary)
}

/* ORIGINAL CSS */
/* .at_colored-indicator {
    width: 1em;
    height: 1em;
    border-radius: 50%;
    border: solid black 1px;
    display: inline-block;
    margin-right: 0.5em;
} */


.at_colored-indicator {
    width: 1.2em;
    height: 1.2em;
    border-radius: 50%;
    border: solid black 1px;
    /* display: inline-block; */
    margin-right: 0.5em;
}

.at_colored-indicator-img {
    width: 80%;
    height: 80%; 
    border-radius: 50%; 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    padding: 0.4em; 
    box-sizing: border-box; 
    position: absolute; 
    top: 0; 
    left: 0; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
}

.at_table_button_row {
    display: flex;
    justify-content: end;
    width: fit-content;
}

.at_table_label_row{
    width: 130px;
}

.at_table_label_row span {
    display: block; 
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*Form Classes*/
.at_form_container {
    display: var(--container-display);
    color: var(--text-color-light);
    border-radius: var(--container-border-radius);
    padding: var(--container-padding);
    justify-content: var(--container-justify-content);
    flex-wrap: nowrap;
    gap: 16px;
    flex-direction: column;
    margin: 6px;
}

.at_field {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
}

.at_number_field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
}

.at_rounded_input {
    border-radius: var(--container-border-radius);
    padding: 8px 4px;
    background-color: var(--bg-highlight);
    color: var(--text-color-light);
    text-align: center;
    font-weight: bold;
    font-size: 1em;
}

.at_flex {
    display: flex;
}

.at_flex_row {
    flex-direction: row;
}

.at_flex_column {
    flex-direction: column;
}

.at_space_between {
    justify-content: space-between;
}

.at_flex_end {
    justify-content:flex-end;
}
.at_field label {
    color: var(--text-color-light);
    font-size: 1em;
}


.at_field_input {
    border: 0;
    background: transparent;
    border-bottom: solid white 2px;
    font: 3em;
    color: var(--text-color-light);
    padding: 10px 8px;
    margin-top: 4px;
}

.at_field_input:focus {
    outline: solid white 2px;
    border-radius: var(--border-radius);
}

.at_field_search_input {
    border: 0;
    background: var(--bg-secondary);
    color: var(--text-color-light);
    font: 3em;
    padding: 10px 8px;
    margin-top: 1px;
    margin-left: 4px;
    height: 2.45rem;
    width: 100%;
    /* width: 11.75rem */
}

.at_field_search_input:focus {
    outline: solid white 2px;
    border-radius: var(--border-radius);
}
/* Old dropdown */

.at_transparent_dropdown {
    background: rgba(37, 30, 30, 0.8);
    outline: 0;
    border: 0;
    font-weight: bolder;
    color: white;
    padding:
        /*8px*/
        0px 6px;
    /* margin-top: 4px; */
    margin-bottom: 2px;
    border-radius: var(--border-radius);
    border-bottom: solid white 2px;
}

.at_transparent_dropdown::-webkit-scrollbar {
    width: 2px;
    /* width of the entire scrollbar */
}

.at_transparent_dropdown::-webkit-scrollbar-track {
    background: transparent;
    /* color of the tracking area */
}

.at_transparent_dropdown::-webkit-scrollbar-thumb {
    background-color: rgba(24, 23, 23, 0.877);
    /* color of the scroll thumb */
    border-radius: 1px;
    /* roundness of the scroll thumb */
}

/* New dropdown */

.at_dropdown {
    width: calc(100% - 8px);
    margin: 4px;
    background-color: var(--bg-secondary);
    color: var(--text-color-light);
    font-family: Arial, sans-serif;
    padding: 8px 8px;
    transition: opacity 0.3s ease-in-out;
    cursor: pointer;
}

.at_dropdown_options {
    display: none;
    padding: 4px;
    z-index: 10;
    background-color: var(--bg-secondary);
}

.at_options_container{
    position: absolute;
}

.at_option {
    cursor: pointer;
    padding: 4px 8px;
}

.at_option:hover {
    background-color: var(--bg-accent);
}

.at_dropdown_options.open {
    display: block;
    opacity: 1;
    z-index: 10;
    position: relative;
}

.at_dropdown_toggle {
    display: flex;
    justify-content: left;
    align-items: center;
}

.at_avatar_xs {
    width: 24px;
}

.at_avatar_sm {
    width: 48px;
}

.at_avatar_md {
    width: 96px;
}

/* CSS Class for Transparent Textarea with White Bottom Border */
.at_textarea {
    border: none;
    border-bottom: 1px solid white;
    background-color: transparent;
    resize: none;
    /* Disable textarea resizing */
    width: 100%;
    padding: 0.5rem;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
    /* Add a smooth transition to the border color */
}

/* Change border color on focus (optional) */
.at_textarea:focus {
    border-color: #ffffff;
    /* Change to the desired focus color */
}

/*Alert*/

.at_alert {
    display: flex;
    flex-direction: row;
    gap: 10px;
    border-radius: var(--border-radius);
    background-color: var(--bg-secondary);
    padding: 10px 12px;
}

.at_alert_message {
    display: flex;
    flex-direction: column;
    color: var(--text-color-light);
}

/*Color classes*/
/* Primary Background Colors */
.at_primary_azusa {
    background-color: var(--bg-primary);
    color: var(--text-color-light);
}

.at_primary_azusa:hover {
    background-color: var(--bg-accent);
    color: var(--text-color-light);
}

.at_primary_light {
    background-color: var(--bg-light);
    color: var(--text-color-dark);
}

.at_primary_retro {
    background-color: var(--bg-retro);
    color: var(--text-color-dark);
}

.at_primary_forest {
    background-color: var(--bg-forest);
    color: var(--text-color-light);
}

.at_primary_aqua {
    background-color: var(--bg-aqua);
    color: var(--text-color-dark);
}

.at_primary_night {
    background-color: var(--bg-night);
    color: var(--text-color-light);
}

/* Secondary Background Colors */

.at_secondary_azusa {
    background-color: var(--bg-secondary);
    color: var(--text-color-light);
}

.at_secondary_light {
    background-color: var(--bg-secondary-light);
    color: var(--text-color-dark);
}

.at_secondary_retro {
    background-color: var(--bg-secondary-retro);
    color: var(--text-color-light);
}

.at_secondary_forest {
    background-color: var(--bg-secondary-forest);
    color: var(--text-color-light);
}

.at_secondary_aqua {
    background-color: var(--bg-secondary-aqua);
    color: var(--text-color-dark);
}

.at_secondary_night {
    background-color: var(--bg-secondary-night);
    color: var(--text-color-light);
}

/* Accent Background Colors */

.at_accent_azusa {
    background-color: var(--bg-accent-azusa);
    color: var(--text-color-dark);
}

.at_accent_azusa:hover {
    background-color: var(--bg-highlight-azusa);
    color: var(--text-color-light);
}

.at_accent_light {
    background-color: var(--bg-accent-light);
    color: var(--text-color-dark);
}

.at_accent_retro {
    background-color: var(--bg-accent-retro);
    color: var(--text-color-light);
}

.at_accent_forest {
    background-color: var(--bg-accent-forest);
    color: var(--text-color-light);
}

.at_accent_aqua {
    background-color: var(--bg-accent-aqua);
    color: var(--text-color-dark);
}

.at_accent_night {
    background-color: var(--bg-accent-night);
    color: var(--text-color-light);
}

.at_ghost {
    border: solid white 2px;
}

.at_ghost:hover {
    background-color: var(--bg-secondary);
    /* background-color: var(--bg-accent); */
}

.at_ghost_active {
    background-color: var(--bg-secondary);
}

.at_accent {
    border: solid white 2px;
}

.at_accent:hover {
    background-color: var(--bg-accent);
}

.at_accent_active {
    background-color: var(--bg-accent);
}



/*Card classes*/

/* Equivalent CSS Classes */

.at_card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
    background-color: var(--bg-secondary);
    margin-bottom: 8px;
}

.at_card:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    outline: solid 2px white;
    cursor: pointer;
}

.at_card_active {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    outline: solid 2px white;
}

.at_image {
    aspect-ratio: 2.5/1;
    object-fit: cover;
}

.at_card-body {
    padding: .5rem;
    color: var(--text-color-light)
}

.at_title {
    font-size: 1.25rem;
    font-weight: bold;
}

.at_title_small {
    font-size: 0.7rem;
    font-weight: bold;
}

.at_badge {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 0.25rem;
    color: var(--text-color-light);
    background-color: var(--bg-primary);
}

.at_badge-text {
    display: inline-block;
}

.at_primary {
    background-color: #3490dc;
    color: #fff;
}

.at_warning {
    background-color: #f6e05e;
    color: #333;
}

.at_card-details {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.at_card-detail {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.at_detail-text {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    font-weight: medium;
    color: #333;
}

.at_price {
    margin-top: 1rem;
}

.at_price-text {
    font-size: 2rem;
    font-weight: bold;
    color: #3490dc;
}

.at_card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6px 8px 6px;
}

.at_contact {
    display: flex;
}

.at_css3DElement {
    opacity: 0;
    transition: opacity 1000ms;
}

/* CSS Class for Chat Bubble Container */
.at_chat_container {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding: 10px;
}

/* CSS Class for Chat Bubble */
.at_chat_bubble {
    display: flex;
    max-width: 70%;
    margin: 2px 10px 10px 10px;
    padding: 10px;
    border-radius: 15px;
    word-wrap: break-word;
    /* Wrap long words */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* CSS Class for Sent Chat Bubble */
.at_chat_bubble_sent {
    background-color: var(--bg-highlight);
    color: var(--text-color-light);
    align-self: flex-end;
}

/* CSS Class for Received Chat Bubble */
.at_chat_bubble_received {
    background-color: var(--bg-accent);
    color: var(--text-color-light);
    align-self: flex-start;
}

/* CSS Class for Chat Avatar */
.at_chat_avatar {
    max-width: 30px;
    max-height: 30px;
    border: 2px solid #fff;
    border-radius: 12px;
    margin: 2px;
    padding: 4px 8px;
    font-weight: bolder;
    text-align: center;
}

.at_chat_avatar_received {
    background-color: var(--bg-highlight);
    color: var(--text-color-light);
}

.at_chat_avatar_sender {
    background-color: var(--bg-accent);
    color: var(--text-color-light);
}

.at_chat_media {
    max-width: 60%;
}

.at_chat_textarea {
    background-color: white;
    color: black;
    border: none;
    resize: none;
    outline: none;
    padding: 10px;
    font-size: 1em;
    /* Adjust font size as needed */
}

.at_send_chat_button {
    padding: 4px 8px;
    cursor: pointer;
    font-size: 25px;
}

.at_send_chat_button:hover {
    background-color: var(--bg-accent);
    color: var(--text-color-light);
}

/* MODAL CLASSES */

#at-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    animation: slide-down 0.3s ease;
    animation-fill-mode: forwards;
    transform: translateY(-100%);
}

#at-preview-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: flex-start;
    align-items: center;
    animation: at_fade-in 0.3s ease;
}

#at-preview-modal-overlay.show {
    display: flex;
}

@keyframes at_fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.at_preview_modal {
    background-color: #222222;
    color: var(--text-color-light);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 66.5vw;
    height: 95vh;
    max-width: 66.5vw;
    max-height: 95vh;
    overflow: hidden;
    position: relative;
    animation: at_slide-up 0.4s cubic-bezier(.39, .575, .565, 1.000) both;
    display: flex;
    flex-direction: column;
    margin-left: 0.5vw;
}

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

.at_preview_modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    min-height: 50px;
}

.at_preview_modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color-light);
    word-break: break-word;
}

.at_preview_modal-close-btn {
    background: none;
    border: none;
    color: var(--text-color-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

.at_preview_modal-close-btn:hover {
    background-color: var(--bg-accent);
    color: var(--text-color-dark);
}

.at_preview_modal-body {
    padding: 0;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100% - 50px);
    width: 100%;
}

.at_preview_modal-content {
    color: var(--text-color-light);
    line-height: 1.6;
    font-size: 1rem;
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.at_preview_modal-iframe {
    border: none;
    border-radius: 0;
    background: white;
    width: 100%;
    height: 100%;
    flex: 1;
    display: block;
    min-width: 0;
    min-height: 0;
}

.at_preview_modal-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

/* Resize handles for preview modal */
.at_preview_modal-resize-handle {
    position: absolute;
    z-index: 10;
}

.at_preview_modal-resize-handle--top,
.at_preview_modal-resize-handle--bottom {
    left: 8px;
    right: 8px;
    height: 8px;
    cursor: ns-resize;
}

.at_preview_modal-resize-handle--left,
.at_preview_modal-resize-handle--right {
    top: 8px;
    bottom: 8px;
    width: 8px;
    cursor: ew-resize;
}

.at_preview_modal-resize-handle--top {
    top: 0;
}

.at_preview_modal-resize-handle--right {
    right: 0;
}

.at_preview_modal-resize-handle--bottom {
    bottom: 0;
}

.at_preview_modal-resize-handle--left {
    left: 0;
}

.at_preview_modal-resize-handle--top-left,
.at_preview_modal-resize-handle--top-right,
.at_preview_modal-resize-handle--bottom-left,
.at_preview_modal-resize-handle--bottom-right {
    width: 16px;
    height: 16px;
}

.at_preview_modal-resize-handle--top-left {
    top: 0;
    left: 0;
    cursor: nwse-resize;
}

.at_preview_modal-resize-handle--top-right {
    top: 0;
    right: 0;
    cursor: nesw-resize;
}

.at_preview_modal-resize-handle--bottom-left {
    bottom: 0;
    left: 0;
    cursor: nesw-resize;
}

.at_preview_modal-resize-handle--bottom-right {
    bottom: 0;
    right: 0;
    cursor: nwse-resize;
}

@keyframes slide-down {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.at_modal {
    max-width: 480px;
    height: 260px;
    max-height: 300px;
    margin: 200px auto;
    background-color: #ffff;
    border-radius: 5px;
    padding: 0rem 1rem;
    animation: scale-up-center .4s cubic-bezier(.39, .575, .565, 1.000) both
}

@keyframes scale-up-center {
    0% {
        transform: scale(.5)
    }

    100% {
        transform: scale(1)
    }
}

.at_close-icon {
    font-size: 2rem;
    text-align: right;
    cursor: pointer;
}

.at_modal-content {
    text-align: center;
    padding-top: 10px;
}

.at_modal-content-heading {
    font-size: 2rem;
    font-weight: bolder;
    margin-top: 0;
}

.at_modal-content-subheading {
    font-size: 1.2rem;
    line-height: 1.5;
    padding: 8px;
}

.at_close-button,
.at_open-modal-btn {
    background-color: #d51a4c;
    color: #ffff;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px 1rem;
    margin-top: 1rem;
    outline: none;
    border: none;
    text-transform: uppercase;
    font-weight: 600;
}

.at_close-button:hover {
    background-color: #c73259;
    outline: #fff;
}

.at_open-modal-btn:hover,
.at_open-modal-btn:focus {
    background-color: #ffff;
    color: #4E56EE;
    border: 1px solid #4E56EE;
}

/* Room */

.at_empty_display {
    display: var(--container-display);
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin-top: -10px;
}

.at_partition_footer {
    display: flex; /* Use flexbox to align items in a row */
    gap: 4px;
    margin-top: auto;
}

.at_undo_redo_container {
    display: var(--container-display);
    flex-direction: column; 
    gap: 5px;
    height: 100%;
}

.at_undo_btn,
.at_redo_btn,
.at_draw_partition_btn,
.at_add_window_door_btn {
    background-color: black;
    border: solid white 2px;
    font-size: smaller;
    padding: 4px 0.8em 4px;
    border-radius: 8px;
    min-height: 31.3px;
    align-items: center;
    justify-content: center;
}


.at_draw_partition_btn,
.at_add_window_door_btn {
    flex-grow: 2;
}

.at_draw_partition_btn_jp_font_size {
    font-size: x-small;
}

.at_draw_partition_btn_active,
.at_add_window_door_btn_active {
    background-color: var(--bg-accent);
    border: solid white 2px;
    font-size: smaller;
    padding: 4px 0.8em 4px;
    border-radius: 8px;
    flex-grow: 2;
}

.at_converted_coordinates_title {
    display: var(--container-display);
    background-color: hsla(0,0%,19%,1);
    border-radius: 4px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: normal;
    font-family: Arial, sans-serif;
    padding-left: 2px;
    padding-right: 18px;
}

.at_face_item {
    display: var(--container-display);    
    border-radius: 4px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 2px 5px 2px 5px; 
}

.at_face_item.selected {
    background-color: hsla(220, 20%, 25%, 1);
}

.at_edit_name, .at_edit_material {
    display: flex;
    align-items: center;
    padding-bottom: 4px;
    width: 100%;
}

.at_edit_name_input, .at_edit_material_input {
    display:flex;
    background-color: inherit;
    font-family: Arial, sans-serif;
    font-size: 10px;
    box-sizing: border-box;
    border:none;
    color:white;
    border-bottom: 1px solid;
    outline: none;
    padding-bottom: 2px;
    height: 20px;
    width: 100%;
}

.at_edit_name .mdi-check,
.at_edit_name .mdi-pencil,
.at_edit_material .mdi-check,
.at_edit_material .mdi-pencil {
    display: inline-flex; 
    align-items: center; 
    cursor: pointer;
    border-bottom: 1px solid;
    height: 20px;
    padding-bottom: 3px;
}

.at_invisible {
    visibility: hidden;        
    pointer-events: none;
    cursor: default;
}

@media screen and (max-width: 540px) {

    .at_modal {
        max-width: 300px;
        height: 320px;
        padding: 0rem 1rem;
    }

    .at_panel_header, 
    .at_transparent_dropdown, 
    .at_chat_textarea, 
    .at_chat_bubble{
        font-size: 12px;
    }
    .at_container{
        flex-direction: column;
        margin: 2px;
        pointer-events: auto;
        max-height: 90vh; 
        overflow-y: auto; 
    }
}


/* CUSTOM CLASSES */
.at_tag_list_pane {
    margin: 6px 6px 0px 6px !important;
    gap: 0px !important;
    padding: 0px 5px 5px 10px !important;
}

/* Basic styling for the tree */
/* .at_tree {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.at_tree li {
    margin: 0;
    padding: 5px 0 5px 20px;
    position: relative;
}
.at_tree li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 1px;
    background: #ccc;
}
.at_tree li::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: #ccc;
}
.at_tree li:last-child::after {
    height: 10px;
}
.at_tree ul {
    margin-left: 20px;
    padding-left: 0;
}
.at_tree .toggle {
    cursor: pointer;
}
.at_tree .hidden {
    display: none;
} */

/* Simplified tree styles */
.at_room_tree {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.at_room_tree li {
    margin: 5px 0;
}

.at_room_tree_parent {
    padding-left: 0 !important;
}

.at_room_tree_parent span {
    padding-left: 5px;
}

.at_room_tree .toggle {
    cursor: pointer;
    /* padding-right: 5px;
    border-radius: 4px;  */
    display: flex;
    justify-content: space-between;
}

.at_room_tree_child{
    /* cursor: pointer; */
    display: block;
    padding-left: 5px;
    margin-left: 20px !important;
    border-radius: 4px; 
}

.at_room_tree_child li {
    margin: 5px 0;
    margin-left: 30px;
    padding-right: 5px;
    display: flex;
    justify-content: space-between;
}

.at_room_tree .selectable {
    cursor: pointer;
    display: block;
    border-radius: 4px; 
    display: flex;
    justify-content: space-between;
}

.at_room_tree .selected {
    background-color: #0F0E0E;
    padding-right: 5px;
    border-radius: 4px; 
    border: 2px solid white;
}

.at_room_tree .hidden {
    display: none;
}

.at_room_edit_btn, 
.at_room_visible_btn, 
.at_child_visible_btn, 
.at_room_delete_btn {
    cursor: pointer;
}

.at_toggle {
    padding-right: 5px;
}

.at_icon_hover {
    padding-right: 0.5em;
    padding-left: 0.5em;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out;
    position: relative;
}

.at_icon_hover:hover {
    background-color: rgba(128, 128, 128, 0.5);
}

.at_custom_tooltip {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 6px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out;
    width: max-content;
    max-width: none;
    z-index: 10;
    white-space: nowrap;
}

.at_icon_hover:hover .at_custom_tooltip {
    opacity: 1;
    visibility: visible;
}

.at_custom_tooltip .shortcut {
    background-color: rgba(128, 128, 128, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
    color: white;
    display: inline-block;
    margin: 2px 0;
}

/* Tooltip Arrow */
.at_custom_tooltip::after {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent black transparent;
}

.at_icon_hover:hover .at_custom_tooltip {
    display: block;
}

.at_tooltip_title {
    display: block;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3px;
    font-size: 14px;
}

/* BIM */
.at_mt_static_text_container {
    text-align: center;
    background: var(--bg-secondary-azusa);
    padding-bottom: 5px;
}

.at_mt_static_text_container.hidden{
    display: none;
}

.at_mt_cal_text{
    /* background: var(--text-color-light); */
    color: white;
    /* padding-left: 3px;
    padding-right: 3px; */
    position: relative;
}

.at_mt_cal_text::after{
    position: absolute;
}

.at_cat_confirm_btn{
    background-color: var(--bg-highlight) !important;
    color: var(--text-color-light) !important;
}

.at_cat_confirm_btn:hover {
    background-color: var(--bg-accent-azusa) !important;
    color: var(--text-color-light) !important;
}

.at_calibrate_basepoint_btn{
    background-color: var(--bg-accent-azusa);
    color: var(--text-color-light);
    border-radius: 6px;
    border: 1px solid white;
    margin-bottom: 10px;
}   

.at_calibrate_basepoint_btn.active {
    background-color: var(--bg-highlight-azusa);
    color: var(--text-color-light);
}

.at_converted_coordinates_title {
    font-size: 14px;
}

.at_scrollable_container.settings {
    max-height: 80vh;
    gap: 4px;
    overflow-y: scroll;
    padding: 2px 2px;
    scroll-behavior: smooth;
}

.at_coordinates_container {
    margin-bottom: 4px;
    display: var(--container-display);
    background-color: hsla(0,0%,19%,1);
    flex-direction: column;
    border-radius: 4px;
    margin: 4px 8px 4px 8px;
}

.at_coordinate_title_container {
    display: var(--container-display);    
    border-radius: 4px;
    justify-content: center;
    align-items: center;
    padding: 2px 5px 2px 5px; 
    margin: 2px;
}

.at_xyz_coordinate {
    display: var(--container-display);
    background-color: hsla(0, 3%, 6%, 0.8);
    border-radius: 4px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 4px 4px 4px 4px; 
    margin: 0px 6px 2px 6px;
}

.at_coordinate_title {
    background-color: hsla(0, 3%, 6%, 0.8);
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-family: Arial, sans-serif;
    text-align: center;
    width: 135px;
}

.at_coordinate_value {
    border-radius: 4px;
    color: white;
    font-size: 12px;
    font-family: Arial, sans-serif;
    white-space: nowrap;
    text-align: center;
    width: auto;
}

.at_bim_icon_left {
    width: 20px;
    height: 20px;
    line-height: 1;
    background-color: hsla(71,96%,62%,1);
    color: black;
    border-radius: 4px;
    padding: 2px;
    cursor: default;
    text-align: center;
}

.at_bim_icon_right {
    width: auto;
    height: 20px;
    line-height: 1;
    /* background-color:hsla(0,0%,100%,0.8) ; */
    color: white;
    border-radius: 4px;
    padding: 2px;
    cursor: default;
    text-align: center;
}

.at_bim_settings_img {
    width: 24px; /* Image size */
    height: 24px;
    object-fit: contain; /* Prevents distortion */
    filter: brightness(0) invert(1); /* Makes the image white */
    position: relative;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centers the image perfectly */
}

.at_origin_value {
    /* background-color:hsla(0,0%,100%,0.8); */
    /* width: 30px; */
    border-radius: 4px;
    text-align: center;
    color: white;
}

.at_origin_value_container {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
    margin-top:5px;
    gap: 1rem;
}

.at_converted_coordinates_list_container {
    display: var(--container-display);
    border-radius: var(--border-radius);
    background-color: black;
    flex-direction: column;
    padding: 8px 6px 8px 6px;
    max-height: 25rem;
}

.at_scale_factor_input {
    width: 50px
}

.at_default_coordinate_system {
    margin-top: 15px;
}

.at_user_list_card {
    /* border-radius: var(--border-radius); */
    /* background: var(--bg-secondary); */
    padding: 0px 10px;
    margin: 2px 0px;
    transition: background 0.2s ease;
    height: 42px;
}

/* .at_user_list_card:hover {
    background: var(--bg-accent);;
} */
.at_online_user_row {
    background-color: #303030;
    border-radius: 3px;
    padding: 2px;
    margin-bottom: 3px;
    border: none !important;
}

.at_offline_user_row {
    background-color: #686767;
    border-radius: 3px;
    padding: 2px;
    margin-bottom: 3px;
    border: none !important;
}

.at_users_online_indicator {
    height: 12px;
    width: 12px;
    background-color: green;
    border-radius: 50%;
    margin-right: 5px;
}

.at_users_ofline_indicator {
    height: 12px;
    width: 12px;
    background-color: whitesmoke;
    border-radius: 50%;
    margin-right: 5px;
}

.at_offline_user_name_text {
    color: #b7b6b6;
}

.at_disable_hover_users_list tr:hover td {
    background-color: initial !important;
}

.at_user_screen_sharing_state {
    background-color: var(--bg-accent);
    border-radius: 2px;
    padding-inline: 5px;
}

.at_no_hover_text_online_user:hover {
    color: white !important;
}

.at_no_hover_text_offline_user:hover {
    color: #b7b6b6 !important;
}

.at_comment_unsend_container{
    cursor: pointer;
}

.at_comment_unsend_container{
    cursor: pointer;
}

.at_capitalize {
    text-transform: capitalize;
}

.at_screen_share_guest_card {
    background-color: #303030;
    border-radius: 3px;
    padding:5px 10px 5px 10px;
    flex-grow: 1;
}

.at_items_stretch {
    justify-items: stretch;
}

.at_subtitle_text {
    font-size: 0.8rem;
}

.at_gap_half_rem {
    gap: 0.5rem;
}

.at_screen_share_pointer_choices {
    position: relative;
}

.at_screen_share_pointer_choices::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
}

.at_screen_share_pointer_choices select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #0f151a;
    color: white;
    border: none;
    padding: 14px 40px 14px 16px;
    font-size: 16px;
    width: 100%;
    border-radius: 2px;
    cursor: pointer;
}

.at_screen_share_pointer_choices select:focus {
    outline: none;
    box-shadow: none;   
    border: none;
}

.at_back_user_list_link {
    display: flex;
    justify-items: center;
    align-items: center;
    text-decoration: underline;
    margin-top: 1rem;
    cursor: pointer;
}

.at_SCREEN_SHARE_HOST_END_SESSION_btn {
    border: 2px solid white;
    border-radius: 5px;
    background-color: red;
    color: white;
    margin-top: 0.5rem;
    padding-block: 5px;
    align-self: stretch;
    text-align: center;
    outline: none;
    font-size: 14px;
    cursor: pointer;
}

.at_end_session_button {
    border: 2px solid white;
    border-radius: 5px;
    background-color: #d51a4c;
    color: white;
    margin-top: 0.5rem;
    padding-block: 5px;
    /* align-self: stretch; */
    text-align: center;
    outline: none;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
}
.at_end_session_button-mobile {
    background-color: #d51a4c;
    border-radius: 8px;
    border: 2px solid white;
    border-radius: 5px;
    color: white;
    /* padding-block: 5px; */
    /* align-self: stretch; */
    text-align: center;
    outline: none;
    cursor: pointer;
    width: 45px !important;
    height: 45px !important;
    font-size: 25px;
}

.at_bg_transparent{
    /* border:  1px solid black; */
    background-color: transparent !important;
    /* width: 18rem;     */
}

.at_screen_share_request_modal {
    width: 600px;
    height: 300px;
    background-color: white;
    outline: none;
    border: none;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
}

dialog#at-screen-share-request-modal[open] {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

dialog#at-screen-share-request-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.at_screen_share_request_modal_content {
    width: 100%;
    height: 100%;
}

.at_screen_share_icon {
    font-size: 95px;
}

.at_screen_share_request_message {
    font-size: 24px;
    font-weight: 700;
    color: #263646ef !important;
    padding: none !important;
    margin: none !important;
}

.at_screen_share_request_sub_message {
    font-size: 16px;
}

.at_screen_share_leave_confirmation_cancel_btn,
.at_screen_share_leave_confirmation_leave_btn {
    cursor: pointer;
    margin-block: 1rem;
    padding: 8px 15px 8px 15px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    outline: none;
    border: none;
}

.at_screen_share_leave_confirmation_cancel_btn {
    background-color: #a0a0a0;
}

.at_screen_share_leave_confirmation_leave_btn {
    background-color: #d51a4c;
}


.at_font_size_14px {
    font-size: 14px;
}

.at_screeh_share_pane_header {
    margin-left: 5px;
    margin-top: 5px;
}

#at-screen-share-pane-content {
    padding: unset !important;
    gap: 5px !important;
}

#at-user-list-container {
     padding: unset !important;
     gap: unset !important;
     overflow-y: unset !important;
}

#at-screen-share-end-session-btn-outer {
    margin-top: 5px !important;
}

#at-user-leave-session-btn {
    /* background-color: #d51a4c; */
    border-radius: 8px;
}

#at-screen-share-end-session-btn {
    background-color: #d51a4c;
    border-radius: 8px;
    color: white;
    /* padding-top: 8.75px !important;
    padding-bottom: 8.75px !important; */
    max-height: 3rem !important;
    width: 100%;
}

.at_display_flex_end{
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.at_gap_2rem {
    gap: 2rem;
}
.at_tag_sort_option,
.at_object_sort_option {
    margin: 3px 0 3px 0;
    cursor: pointer;
    padding: 2px 5px 2px 5px;
    border-radius: 2px;
}

.at_tag_sort_option:hover,
.at_object_sort_option:hover {
    background-color: grey;
}

.at_sort_btn_container {
    display: flex;
    flex-direction: column;
    align-items: end;
    margin-top: 1px;
}


#at-object-sort-icon {
    background-color: var(--bg-secondary);
}

.at_sort_option_selected {
    background-color: var(--bg-accent) !important;
}

/* Generic Elements */

.at_section {
    display: var(--container-display);
    border-radius: var(--border-radius);
    background-color: black;
    flex-direction: column;
    padding: 8px 6px 8px 6px;
    min-height: 22rem;
}

.at_section .at_title {
    display: var(--container-display);
    background-color: hsla(0,0%,19%,1);
    border-radius: 4px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: normal;
    font-family: Arial, sans-serif;
    padding-left: 2px;
    padding-right: 18px;
}

.at_section .at_title .at_back_btn{
    cursor: pointer;   
    background-color: hsla(0, 3%, 6%, 0.8);
    line-height: 1;
    padding: 2px;
    border-radius: 4px;
}

.at_section .at_body {
    display: var(--container-display);
    flex-direction: column;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.at_section .at_body .at_container{
    display: block;
    background-color: hsla(0,0%,19%,1);
    flex-direction: column;
    border-radius: 4px;
    padding: 0px;
}

.at_section .at_body .at_item {
    display: var(--container-display);    
    background-color: hsla(0,0%,19%,1);
    border-radius: 4px;
    justify-content: space-between;
    align-items: center;
    padding: 2px 5px 2px 5px;
}

.at_section .at_body .at_item .at_subitem_left {
    line-height: 1;
    background-color: hsla(173,75%,58%,1);
    color: black;
    border-radius: 4px;
    padding: 1px;
}

.at_section .at_body .at_item .at_subitem_right {
    cursor: pointer;
}

.at_section .at_body .at_item .at_subitem_right:hover {
    color: var(--bg-accent-azusa)
}

.at_section .at_body .at_item .at_name {
    display: flex;
    background-color: hsla(0, 3%, 6%, 0.8);
    border-radius: 4px;
    justify-content: space-between;
    flex: 1;
    padding: 0 5px 0 5px;
    margin: 0 20px 0 20px;
    font-size: 12px;
    font-family: Arial, sans-serif;
}

.at_section .at_body .at_item.selected {
    background-color: hsla(220, 20%, 25%, 1);
}

.at_dropdown_item_container {
    display: var(--container-display);
    flex-direction: column;
    border-radius: 4px;
    padding: 4px;
}

.at_dropdown_item_container.show {
    display: var(--container-display);
}

.at_section .at_body .at_container .at_dropdown_item_container .at_dropdown_item {
    display: var(--container-display);
    background-color: hsla(0, 3%, 6%, 0.8);
    border-radius: 4px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2px 2px 2px 2px; 
    margin: 0px 4px 2px 4px;
}

.at_section .at_body .at_container .at_dropdown_item_container .at_dropdown_item.selected {
    background-color: hsla(220, 25%, 25%, 1)
}

.at_dropdown_item .at_subitem_left {
    display: inline-block;
    line-height: 1;
    background-color: hsla(71,96%,62%,1);
    color: black;
    border-radius: 4px;
    padding: 2px;
    margin: 2px;
}

.at_dropdown_item .at_subitem_right {
    cursor: default;
    display: flex;
}

.at_dropdown_item .at_subitem_right .mdi-check,
.at_dropdown_item .at_subitem_right .mdi-pencil,
.at_dropdown_item .at_subitem_right .mdi-delete-outline {
    cursor: pointer;
}

.at_dropdown_item .at_subitem_right span:hover{
    color: var(--bg-accent-azusa)
}

.at_dropdown_item .at_subitem_center {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 4px;
}

.at_dropdown_item .at_subitem_center .at_icon {
    font-size: 1em;
}

.at_dropdown_subitem_container {
    display: var(--container-display);
    background-color: hsla(0, 3%, 6%, 0.8);
    border-radius: 4px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 2px 2px 2px 2px; 
    margin: 0px 4px 2px 4px;
    width: 100%;
}

.at_subitem_center .at_name {
    max-width: 75px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
}

.at_subitem_center .at_tooltip {
    position: absolute;
    top: -70%;
    left: -10%;
    width: min-content;
    color: #fff;
    transform: translateY(-50%); 
    font-size: 12px; 
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 9999999;
    visibility: hidden;
    background-color: #2A2B26;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.at_subitem_center:hover .at_tooltip {
    transition: opacity 0.3s ease;
    visibility: visible;
    opacity: 1; 
}

.at_subitem_center .at_tooltip::after {
    content: "";
    position: absolute;
    top: 115%;
    left: 50%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2A2B26 transparent transparent transparent;
}

.at_subitem_center .at_name,
.at_subitem_center .at_distance {
    font-size: 12px;
    font-family: Arial, sans-serif;
    white-space: nowrap;
    text-align: center;
    padding-left: 5px;
    padding-right: 5px;
}

.at_subitem_center .at_distance {
    background-color:hsla(0,0%,100%,0.8) ;
    border-radius: 4px;
    color: black;
}

.at_container .at_item .at_subitem_center {
    background-color: hsla(0, 3%, 6%, 0.8);
    border-radius: 4px;
    cursor: pointer;
    margin: 4px;
    font-size: 12px;
    text-align: center;
    width:100px;
}

.at_tags_filter_section {
    display: flex;
    flex-direction: row;
    gap: 2px !important;
    height: max-content;
    height: 3rem;
}

.at_partition_wall_row_item {
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.at_partition_child_header {
    width: 100%;
    padding-left: 5px;
    padding-right: 5px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.at_partition_floor_row_item {
     cursor: pointer;
}

.at_section_title {
    display: var(--container-display);
    background-color: hsla(0,0%,19%,1);
    border-radius: 4px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: normal;
    font-family: Arial, sans-serif;
    padding-left: 2px;
    padding-right: 18px;
}


/* IOT */

.at_iot_item_container {
    display: var(--container-display);
    flex-direction: column;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.at_iot_list_container {
    display: var(--container-display);
    border-radius: var(--border-radius);
    background-color: black;
    flex-direction: column;
    padding: 8px 6px 8px 6px;
    min-height: 22rem;
}

.at_partition_child_expand_icon {
    padding: unset !important;
}

li.at_partition_floor_row_item,
li.at_partition_wall_row_item {
    padding-right: unset !important;
}

.at_partition_child_header.selected {
    padding-right: 5px !important;
    border: 2px solid white;
}

.at_hidden {
    display: none;
}

.at_window_row_item.selected {
    padding-left: 5px;
    border: 2px solid white;
}

.at_save_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    height: 20px; /* match input height */
    padding: 0 6px; /* enough for 保存 */
    font-size: 10px;
    line-height: 1; /* prevent vertical text overflow */
    white-space: nowrap; /* keep 保存 on one line */
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    background: none;
    font-family: Arial, sans-serif;
    transition: all 0.2s ease;
    margin-left: 4px;
    box-sizing: border-box;
}

.at_listbox {
    width: 230px;
    background-color: var(--bg-secondary);
}

.at_listbox_options {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 160px;
  overflow-y: auto;
}

.at_listbox_option {
  padding: 8px 12px;
  cursor: pointer;
}

.at_listbox_option:hover {
    background-color: var(--bg-accent);
}

.at_listbox_option.is-selected {
    background-color: var(--bg-accent);
    font-weight: 600;
}

/* FLEXIBLE MODAL CLASSES */

.at_flexible_modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: at_fade-in 0.3s ease;
}

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

@keyframes at_fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.at_flexible_modal {
    background-color: #222222;
    color: var(--text-color-light);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: at_slide-up 0.4s cubic-bezier(.39, .575, .565, 1.000) both;
    display: flex;
    flex-direction: column;
}

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

.at_flexible_modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.at_flexible_modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color-light);
    word-break: break-word;
}

.at_flexible_modal-close-btn {
    background: none;
    border: none;
    color: var(--text-color-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

.at_flexible_modal-close-btn:hover {
    background-color: var(--bg-accent);
    color: var(--text-color-dark);
}

.at_flexible_modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.at_flexible_modal-content {
    color: var(--text-color-light);
    line-height: 1.6;
    font-size: 1rem;
}

.at_flexible_modal-content h1,
.at_flexible_modal-content h2,
.at_flexible_modal-content h3,
.at_flexible_modal-content h4 {
    color: var(--text-color-light);
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 600;
}

.at_flexible_modal-content h1 { font-size: 1.8rem; }
.at_flexible_modal-content h2 { font-size: 1.5rem; }
.at_flexible_modal-content h3 { font-size: 1.3rem; }
.at_flexible_modal-content h4 { font-size: 1.1rem; }

.at_flexible_modal-iframe {
    border: none;
    border-radius: 4px;
    background: white;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.at_flexible_modal-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .at_flexible_modal {
        max-width: 95%;
        margin: 10px;
    }

    .at_flexible_modal-header {
        padding: 12px 16px;
    }

    .at_flexible_modal-body {
        padding: 16px;
    }

    .at_flexible_modal-footer {
        padding: 12px 16px;
    }

    .at_flexible_modal-title {
        font-size: 1.2rem;
    }

    .at_flexible_modal-iframe {
        min-height: 300px;
    }
}

@media screen and (max-width: 480px) {
    .at_flexible_modal {
        max-width: 98%;
        margin: 5px;
    }

    .at_flexible_modal-header,
    .at_flexible_modal-body,
    .at_flexible_modal-footer {
        padding: 12px;
    }

    .at_flexible_modal-title {
        font-size: 1.1rem;
    }

    .at_flexible_modal-close-btn {
        font-size: 1.2rem;
        min-width: 28px;
        min-height: 28px;
    }
}
span.at_room_name_text.toggle.selectable.selected {
    border: none !important;    
}

span.at_partition_name_text.toggle.selectable.selected {
    border: none !important;    
}


.at-iot-tag-row-name {
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.at-iot-tag-row-name span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.at_linked_systems_options_contianer label {
    cursor: pointer;
}

.at_linked_systems_options_contianer input {
    cursor: pointer;
}

.at_name span {
  flex: 1;
  min-width: 0;
  white-space: normal !important;
  word-break: break-all !important;
}