/* common_layout.css */ 

/* Layout properties for the main site -- positioning, sizing, and spacing */
/* Last updated: February 2025 */

/* Core layout
   ---------- */
   body {
    /* display: grid; */
    /* grid-template-rows: auto 1fr; */
    min-height: 100vh;
    /* height: 100%; */  /* Removed - prevents sticky from working */
    margin: 0;
    padding: 0px 0px 140px 0px; /* Add bottom padding for fixed footer */
    /* margin-top: 120px; */
    font-family: Calibri, Tahoma, Verdana, Arial, Helvetica, sans-serif;
    font-size: 12pt;
    line-height: 1.3;
    z-index: 300;
    /* overflow-x: hidden; */
    box-sizing: content-box;
}

/* Basic block element spacing - prevents text from running together */
p {
    margin: 0 0 1rem 0;
    font-family: Calibri, Tahoma, Verdana, Arial, Helvetica, sans-serif;
    font-size: 12pt;
    line-height: 1.3;
}

br {
    line-height: 1.5;
}

strong {
    font-weight: bold;
}

/* Basic spacing for common elements */
.container, .container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Ensure proper spacing between sections */
span {
    display: inline;
}

/* Basic responsive layout helpers */
.mt-3 { margin-top: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.p-3 { padding: 1rem; }


/* Header positioning
   ---------------- */
.header {
    position: sticky;  /* 'sticky' keeps it in the document flow so no top margin is needed in the body.
                         'fixed' would require a top margin in the body to avoid the header overlapping the content. */
    left: 0;
    top: 0;
    z-index: 999;
    width: 100%;
    opacity: 1.0;
    border-bottom: 2px solid #9e9e9e; 
    border-bottom-left-radius: 8px; 
    border-bottom-right-radius: 8px;
    background-color: rgb(220, 232, 245);

    /* Header styling */ 
}

/* Dropdown menu layout
   ------------------ */

.dropdown-container {
    position: relative;
    float: right;
    margin-right: 10px;
}

.dropdown-content {
    position: absolute;
    top: 31px;
    right: -5px;
    display: none;
    z-index: 1;
    width: 150px;
    padding: 10px 20px 10px 11px;
}

.dropdown-content a {
    display: block;
    text-decoration: none;
    padding-bottom: 2px;
}


.dropdown_menu {
    position: relative;
    display: inline-block;
    padding: 8px 20px;
}

.dropdown_menu_container {
    position: relative;
    text-align: center;
}

.dropdown_menu_content {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    min-width: 450px;
    z-index: 1;
    padding: 3px 10px;
}

.dropdown_menu_content a {
    padding: 0px 20px;
    display: block;
}

.LoggedInUser_upperRight {
    position: sticky;
    top: 0;
    z-index: 999;
    padding-right: 50px;
    margin-bottom: 0px;
}


/* List layouts
   ----------- */
OL {
    margin-left: 20px;
    padding-left: 20px;
}

OL LI {
    font-family: Calibri, Tahoma, Verdana, Arial, Helvetica, sans-serif;  
    color: #333333;  
    margin: 8px 40px 8px 40px;
    font-size: 12pt;
    line-height: 14pt;  
    padding-left: 0px; 
    padding-right: 0px; 

}

UL {
    margin-left: 20px;
    padding-left: 20px;
}

UL LI {
    font-family: Calibri, Tahoma, Verdana, Arial, Helvetica, sans-serif;  
    color: #333333;  
    margin: 8px 40px 8px 20px;
    font-size: 12pt;
    line-height: 14pt;  
    padding-left: 20px;
    padding-right: 10px; 

}

.administrator {
    display: none; 
}

.centered {
    text-align: center;
  }





/* Table layout
   ----------- */
table {
    font-family: Calibri, Tahoma, Verdana, Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    border: none; /*  0px solid #666;  */
    table-layout: fixed;
    /* vertical-align: middle; */

}

table.small-font
{
    font-family: Calibri, Tahoma, Verdana, Arial, Helvetica, sans-serif;
    font-size: 9pt;
}

table.full-page-width
{
    width: 100%;
    border-collapse: collapse;
    border: none; /*  0px solid #666;  */
    table-layout: fixed;
    /* vertical-align: middle; */
}

tr 
{
border: none;  /*  1px solid #EEE;  */
/* vertical-align: top;  */
}

tr.centered 
{
text-align: center;
border: none;  /* 1px solid #EEE;  */
/* vertical-align: top;  */
}

th, td {
    border: none;
    width: 100px;
    vertical-align: top;
}

td.left-justified
{
    text-align: left;
}


button
{
    display: inline-block;
    font-family: Calibri, Tahoma, Verdana, Arial, Helvetica, sans-serif;
    font-size: 12pt;
    font-weight: bold;
    color: #000000;
    background-color: #a9b6db;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
}

input
{
    font-family: Calibri, Tahoma, Verdana, Arial, Helvetica, sans-serif;
    font-size: 13pt;
    background-color: #e7eaf7;
    /* margin-bottom: 0.5rem; */
}

/* CSS to take care of the field once the field is automatically filled by the browser */
input[type="text"]:-webkit-autofill,
input[type="password"]:-webkit-autofill,
input[type="email"]:-webkit-autofill 
{
    -webkit-box-shadow: 0 0 0px 1000px #b7c5eb inset !important;
    -webkit-text-fill-color: inherit !important;
    font-family: Calibri, Tahoma, Verdana, Arial, Helvetica, sans-serif;
    font-size: 12pt;
    background-color: #d7e5f0; /* #CEDFEC;*/
}

TEXTAREA  
    {
    font-family: Calibri, Tahoma, Verdana, Arial, Helvetica, sans-serif;  
    color: #333333;  
    background-color: #d7e5f0; /* #CEDFEC;*/
    font-size: 13pt;  
    font-weight: bold;
    line-height: 1.3;  
    margin-bottom: 0.5rem;
}


h1  {
    font-family: Calibri, Tahoma, Verdana, Arial, Helvetica, sans-serif;  
    font-size: 16pt;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    }

h2  {
    font-family: Calibri, Tahoma, Verdana, Arial, Helvetica, sans-serif;  
    font-size: 14pt;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    }

h3  {
    font-family: Calibri, Tahoma, Verdana, Arial, Helvetica, sans-serif;  
    font-size: 13pt;
    font-weight: bold;
    margin-bottom: 0.5rem;
    }

h3.align-right {
    text-align: right;
    margin-bottom: 0.5rem;
}

h4  {
    font-family: Calibri, Tahoma, Verdana, Arial, Helvetica, sans-serif;
    font-size: 11pt;
    font-weight: bold;
    margin-bottom: 0.5rem;
    }

.toggle_element {
    display: none;
}
.visible {
    display: block;
}
.profile-image-box {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    margin-top: 20px;
    margin-right: 20px;
    width: 150px;
    height: 150px;
    border: 1px solid #ddd;
}

.profile-image-box img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
}

.profile_image_box {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    margin-top: 90px;
    margin-right: 20px;
    width: 150px;
    height: 150px;
    border: 1px solid #ddd;
}

.profile_image_box img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
}


.underline-link {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    }

    .underline-link:hover {
    border-bottom: 1px solid blue;
    }



/* Dialog positioning for a toast notification */
#toast {
    position: fixed;
    top: 40px;
    right: 60px;
    min-height: 40px;
    min-width: 300px;
    vertical-align: middle;
    color: #fff;
    background-color: rgba(100, 100, 100, 0.8);
    padding: 12px 20px 20px 20px;
    border-radius: 4px;
    display: none;
    z-index: 1002;
    font-size: 13pt;
}


.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    border: 1px solid black;
    padding: 8px;
}

.data-table th[data-type="numeric"],
.data-table td[data-type="numeric"],
.data-table th[data-type="boolean"],
.data-table td[data-type="boolean"] {
    text-align: center;
}

.data-table th[data-type="alphanumeric"],
.data-table td[data-type="alphanumeric"] {
    text-align: left;
}


.loading_animation_timer {
    font-family: Calibri, Tahoma, Verdana, Arial, Helvetica, sans-serif;
    font-size: 20pt;
    font-weight: bold;
    margin: 4px 0 4px 0;
    color: #6b6b6b;
}


.loading_animation, .loading_animation_logo {
    position: fixed; /* or absolute */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    width: 350px;
}

.loading_animation_content {
    min-width: 600px;
    min-height: 300px;
    text-align: center;
    background-color: white;
    margin: 24px;
    padding: 24px;
    border-radius: 5px;
}


#text_above_animation {
    width: 450px;
}

#text_above_animation_heading{
    color: #999999;
    font-size: 13pt;
    font-weight: bold;
    text-align: left !important;
    margin-top: 0;
    margin-bottom: 0;
    font-weight: bold;
}

#text_above_animation_para{
    color: #999999;
    font-size: 10pt;
    text-align: left;
    margin-top: 10px;
    margin-bottom: 20px;
}


#duration_timer {
    margin-top: 10px;
    margin-bottom: 0px;
    font-size: 14pt;
    color: #999999;
    font-family: Calibri, Tahoma, Verdana, Arial, Helvetica, sans-serif;
}

#overlay {
    position: fixed; 
    display: none; 
    width: 100%; 
    height: 100%; 
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(110, 110, 110, 0.5); 
    z-index: 799;
    cursor: pointer; 
}


.selected_UI_mode {
    font-weight: bold; 
    color: black; 
}

.not_selected_UI_mode {
    font-weight: bold; 
    color: #7494a8; 
}


/* Profile image positioning
   ----------------------- */
.profile-image-box, .profile_image_box {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    margin-top: 20px;
    margin-right: 20px;
    width: 150px;
    height: 150px;
    border: 1px solid #ddd;
}

.profile-image-box img, .profile_image_box img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
}


/* Footer positioning
   ---------------- */
.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 10000;
    min-height: 40px;
    max-height: 60px;
    width: 100%;
    /* margin-top: 20px; */
    text-align: center;
    color: black;
    display: block;
    visibility: visible;
    background-color: #d7e5f0;
    /* background-image: linear-gradient(to right, #b9bfd8 0%, #CDD3EE 40%, #eeddb1); */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    /* border-top: 1px solid #457178; */
    padding: 0px 8px 0px 8px;
}

/* Style the container inside the footer */
.footer_container {
    margin: 0 0 0 0;
    justify-content: space-between;
    align-items: center;
    justify-content: center;
    width: 100%;
}



/* Form element layout
   ----------------- */
select {
    font-weight: bolder;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

option
{
    font-weight: bolder;
    font-size: 10pt;
}

option.bold-option
    {font-weight: bolder;}
option.normal-option
    {font-weight: normal;}



/* Switch/slider layout
   ----------------- */
   .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 27px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 34px;
    border: 2px solid #9295a2;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 17px;
    left: 7px;
    bottom: 3px;
    border-radius: 50%;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}


div {
    font-family: Calibri, Tahoma, Verdana, Arial, Helvetica, sans-serif;
    font-size: 12pt;
    /*  text-align: left;  */
    vertical-align: top;
    /*  display: inline;  */
    box-sizing: content-box;    /* border-box; */
    /* margin-bottom: 0.5rem; */
}

div.indented {
    padding-left: 20px;
    text-align: left;
    font-family: Calibri, Tahoma, Verdana, Arial, Helvetica, sans-serif;
    vertical-align: top;
    /*  display: inline;  */
}

.with_border {
    border: 1px solid #000000;
}
.without_border {
    border: none;
}

span.centered
{
    font-family: Calibri, Tahoma, Verdana, Arial, Helvetica, sans-serif;
    text-align: center;
}

span.indented
{
    font-family: Calibri, Tahoma, Verdana, Arial, Helvetica, sans-serif;
    text-align: left;
    padding-left: 30px;
}
/*
{
    font-family: Calibri, Tahoma, Verdana, Arial, Helvetica, sans-serif;
    text-align: center;
}
*/            

span.small-font
{
    font-family: Calibri, Tahoma, Verdana, Arial, Helvetica, sans-serif;
    font-size: 9pt;
}

span.small-text
{
    font-family: Calibri, Tahoma, Verdana, Arial, Helvetica, sans-serif;
    font-size: 9pt;
}



/* Properties dialog positioning
   --------------------------- */
.div_properties_control_panel {
    position: absolute;
    top: 200px;
    left: 50px;
    width: 300px;
}


      
.middle_center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.chatbot_response_content {
    margin-left: 8px;
}

.expert_system_content {
    margin-left: 8px;
}

.transparent_button {
    background-color: transparent;
    border: none;
    position: relative;
    cursor: pointer;
}
    
.transparent_button:hover .password_tooltip_text {
    visibility: visible;   /* The tooltip becomes visible when the button is hovered. */
}

.password_tooltip_text {
    visibility: hidden; /* The tooltip is hidden by default. */
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -60px;
    /* Transition for smooth visibility change: */
    transition: visibility 0.2s linear;
}
        
.button_with_tooltip:hover .button_tooltip_text {
    visibility: visible;   /* The tooltip becomes visible when the button is hovered. */
}

.button_tooltip_text {
    visibility: hidden; /* The tooltip is hidden by default. */
    width: 600px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -60px;
    /* Transition for smooth visibility change: */
    transition: visibility 0.2s linear;
}

a.small-font
{
    font-family: Calibri, Tahoma, Verdana, Arial, Helvetica, sans-serif;
    font-size: 9pt;
}

/* Interest Selector Tooltip Styles
   ------------------------------- */
.interest-selector-container {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.interest-selector-container:hover .interest_selector_tooltip_text {
    visibility: visible;
}

.interest_selector_tooltip_text {
    visibility: hidden;
    width: 200px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: -30px;
    right: 100%;
    margin-right: 10px;
    transition: visibility 0.2s linear;
    font-size: 10pt;
}

#types_of_engagement_table {
    width: 80vw; /* 90% of viewport width */
    max-width: 1000px; /* Optional: set a maximum width */
    margin-right: 100px;
    /* margin-left: calc((100% - 90vw) / 2); Center the table */
    border-collapse: separate;
    border-spacing: 40px 12px; /* horizontal spacing, vertical spacing */
}

#types_of_engagement_table .interaction_row td {
    padding-top: 10px;
    padding-bottom: 10px;
}

#types_of_engagement_table input[type="checkbox"] {
    transform: scale(1.5); /* Increase size by 50% */
    transform-origin: left center; /* Keep alignment from left side */
}
