/*
 * Copyright (c) 2025 Jeffery Hansen. All rights reserved.
 * Unauthorized copying or use of this file, via any medium, is strictly prohibited.
 * Proprietary and confidential.
 */

/*
 * Core css used by multiple pages.
 */
:root {
    --sidebar-width: 250px;
    --sidebar-background-color: #222222;
    --dark-background: #111111;
    --list-background-color: #334455;
    --top-banner-height: 52px;
    --message-bar-height: 30px;
}

/* root html element */
html {
    height: 100%;
}

/* body element overrides */
body {
    margin: 0px;
    font-family: Verdana;
    font-size: 90%;
    background-color: white;
    height: 100%;
    overflow: hidden;
}

/* scrollbar default */
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #666666;
    border: 0px solid black;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #aaaaaa;
}

.hdiv {
    display: inline-block;
}

.homeTitle {
    font-size: 40px;
    font-style: italic;
    font-weight: bold;
    padding-top: 20px;
    color:white;
    text-align: center;
}

#video_wrapper {
    width: -webkit-fill-available;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    background: #0000dd;
    margin: 50px;
    padding: 0px;
    box-shadow: 0px 0px 50px #0000dd;
}

.youtube {
    width: -webkit-fill-available;
    height: -webkit-fill-available;
}


.w9Feature {
    float: left;
    color: black;
    width: 300px;
    padding: 20px;
}

.bigNotice {
    margin: 50px;
    width: -webkit-fill-available;
    text-align: center;
    font-size: 30px;
    color: #888;
}

.nsaHeaderBar {
    display: flex;
    flex-direction: row;
    margin: 0px;
    background-color: #f2f2f7;
    /*
    background-image: url(../img/warp9-logo-b.png);
    background-repeat: no-repeat;
    background-position: left center;
    */
    background-size: 100%; /* or a specific size like 1000px auto */
    height: 52px;
}
.nsaMainContent {
    margin: 8px;
}

#rootPageDiv {
    height: 100%;
}

#content {
    height: calc(100% - var(--top-banner-height));
}

#content > div {
    height: 100%;
}


#loginButton {
    float: right;
    padding-top: 5px;
    padding-bottom: 6px;
    padding-left: 15px;
    padding-right: 15px;
    color: white;
    cursor: pointer;
}

.user_icon {
    display: table-cell;
    border-radius: 20px;
    width: 40px;
    height: 40px;
    background: #3377cc;
    color: white;
    font-family: sans-serif;
    font-size: 25px;
    vertical-align: middle;
    text-align: center;
    transition: box-shadow 0.2s ease-in-out;
}

.user_icon:hover {
    box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.80);
}

.user_icon_logged_out {
    background: #ccc;
    color: #444;
}

.user_icon_logged_out:hover {
    box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.80);
}


.loginBox {
    display: table-cell;
    height: 32px;
    color: #3377cc;
    border: 2px solid #3377cc;
    padding: 2px;
    font-size: 20px;
    vertical-align: middle;
}

.login-name {
    display: table-cell;
    vertical-align: middle;
    padding-left: 5px;
}

.hline {
    border-bottom: 2px solid #999;
    padding-top: 10px;
}

#content-ships {
    overflow: hidden;
}


#content-home {
    overflow: auto;
}

.pagemenu {
    display: flex;
    flex-direction: row;
    height: 52px;
    margin: 0;
    padding: 0;
    z-index: 9999;
    align-items: flex-end;
}
.pagemenu li {
    margin: 0px;
    border: 0px solid black;
    padding: 0px;
    list-style: none;
    float: left;
}
.pagemenu li span {
    display: inline-block;
    margin: 0 0px 0 0;
    padding: 4px 10px;
    border-bottom: 2px solid transparent;

    cursor: pointer;
    user-select: none;
    color: #444444;
    text-align: center;
}

.pagemenu li span.selected {
    border-bottom: 2px solid black;
    color: black;
}

.pagemenu li span:hover {
    color: black;
}

.login_popup {
    display: none;
    position: absolute;
    background: #fdfdfd;
    z-index: 99;
    top: 60px;
    right: 10px;
    text-align: left;
    border: 2px solid black;
    padding: 15px;
    box-shadow: 5px 5px 5px #555;
    border-radius: 20px 0px 20px 20px;
}

.login_popup input {
    padding: 8px;
    border: 1px solid #aaa;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}
.login_popup input:focus {
    border-color: #3377cc;
    outline: none;
    box-shadow: 0 0 4px rgba(51, 119, 204, 0.5);
}

.login_popup div {
    margin: 0px 0px 15px 0px;
}

.login_popup div div {
    margin: 0px;
}

.login_help_text {
  font-size: 13px;
  color: #444;
  margin-bottom: 10px;
  line-height: 1.3em;
  max-width: 250px;
}

.ufunc div {
    display: table-cell;
    font-size: 18px;
    text-align: center;
    vertical-align: middle;
    padding: 5px;
    cursor: pointer;
    user-select: none;
}

.ufunc:hover {
    background: #ddd;
}

.lbButton {
    padding: 10px 20px 10px 20px;
    margin: 0px 10px 0px 10px;
    font-size: 18px;
    width: -webkit-fill-available;
}

.login-create-link {
    margin-top: 10px;
    text-align: center;
    font-size: 0.9em;
    color: #aaa;
}

.login-create-link a {
    color: #66aaff;
    text-decoration: none;
    font-weight: bold;
}

.login-create-link a:hover {
    text-decoration: underline;
}

#cp-error {
    color: red;
}

.side_scrolled_list {
    cursor: pointer;
    user-select: none;
    overflow-y: auto;
    flex: 1;
    background: #f5f7fa;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px;
    font-family: sans-serif;
    font-size: 14px;
    color: #333;
    scroll-behavior: smooth;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.05);
}

.side_scrolled_list div.selected {
    font-weight: bold;
    color: #1a4d2e; /* Deep forest green */
    background-color: #e3f6e3; /* Very light green background */
    border-radius: 4px;
    padding: 4px 6px;
}

/* Optional: Improve scrollbar look on WebKit browsers */
.side_scrolled_list::-webkit-scrollbar {
    width: 8px;
}

.side_scrolled_list::-webkit-scrollbar-thumb {
    background-color: rgba(100, 100, 100, 0.4);
    border-radius: 4px;
}

.side_scrolled_list::-webkit-scrollbar-track {
    background: transparent;
}






.plain_scrolled_list {
    cursor: pointer;
    user-select: none;
    overflow-y: auto;
    flex: 1;
    background: #f5f7fa;
     font-family: sans-serif;
    font-size: 14px;
    color: #333;
    scroll-behavior: smooth;
}

.plain_scrolled_list div.selected {
    font-weight: bold;
    color: #1a4d2e; /* Deep forest green */
    background-color: #e3f6e3; /* Very light green background */
    border-radius: 4px;
    padding: 4px 6px;
}

/* Optional: Improve scrollbar look on WebKit browsers */
.plain_scrolled_list::-webkit-scrollbar {
    width: 8px;
}

.plain_scrolled_list::-webkit-scrollbar-thumb {
    background-color: rgba(100, 100, 100, 0.4);
    border-radius: 4px;
}

.plain_scrolled_list::-webkit-scrollbar-track {
    background: transparent;
}







.side_scrolled_list_short {
    cursor: pointer;
    user-select: none;
    overflow-y: scroll;
    height: 100px;
    background: var(--list-background-color);
}

/*
#aoi_edit_name {
    position: absolute;
    top: 80px;
    left: 300px;
    color: yellow;
    z-index: 10;
    font-weight: bold;
    font-size: 24px;
}
*/

.overlay_name {
    position: absolute;
    top: 80px;
    left: 300px;
    z-index: 10;
    color: #ffff66; /* softer yellow for better contrast */
    font-weight: bold;
    font-size: 24px;
    text-shadow: 0 0 6px #ffff66;
    pointer-events: none;
    white-space: nowrap;
}


.list_header_name {
    color: yellow;
    font-weight: bold;
    font-size: 18px;
    height: 40px;
    margin-bottom: 10px;
}

.actionButton {
    cursor: pointer;
    user-select: none;
    margin: 10px;
    padding: 10px 16px;
    background: #3377aa;             /* lighter blue for light bg */
    color: white;
    text-align: center;
    width: auto;
    border: none;
    border-radius: 6px;
    font-family: sans-serif;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.actionButton:hover {
    background: #225577;             /* darker on hover */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.basic_search_box  {
  flex: 1;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: border 0.2s ease;
}

.basic_search_box:focus {
  border-color: #3377aa;
  box-shadow: 0 0 0 2px rgba(51, 119, 170, 0.2);
}


.edit_button {
    display: inline-block;
    margin: 5px;
}

#aoi_editor {
    display: inline-block;
    margin: 0px;
    width: 800px;
    height: 800px;
    background: black;
    border-right: 2px solid var(--sidebar-background-color);
    border-bottom: 2px solid var(--sidebar-background-color);
    border-left: 0px solid black;
    border-top: 0px solid black;
    vertical-align: top;
}

#message_bar {
    position: absolute;
    display: none;
    bottom: 50px;
    left: 50px;
    width: 300px;
    height: 50px;
    z-index: 50;
    color: black;
    background: #e25481;
}


.aoi_root_panel {
    background: var(--sidebar-background-color);
    padding: 10px;
    border-bottom: 2px solid #555555;
}
.aoi_object_panel {
    padding: 10px;
}
.aoi_object_panel input[type=text] {
    width: 150px;
}

.aoi_label {
    display: inline-block;
    user-select: none;
    color: yellow;
    font-size: 16px;
    padding-bottom: 5px;
}

.aoi_button_group {
    padding-top: 5px;
    padding-bottom: 5px;
}

#aoi_uuid {
    color: yellow;
    font-size: 10px;
}

.menu_button {
    cursor: pointer;
}

.menu_button:hover {
    cursor: pointer;
    background: #aaaaaa;
}

.menu_symbol  {
    display: inline-block;
    width: 15px;
    height: 15px;
    padding: 3px;
    margin-right: 5px;
}

.menu_symbol div  {
    width: 15px;
    height: 2px;
    margin: 4px 0px;
    background-color: yellow;
}

.menu {
    position: absolute;
    visibility: hidden;
    margin: 0;
    padding: 0;
    background: #EAEBD8;
    border: 1px solid #5970B2;
    z-index: 9999;
}
.menu div {
    cursor: pointer;
    user-select: none;
    display: block;
    margin: 0;
    padding: 5px 10px;
    width: auto;
    white-space: nowrap;
    text-align: left;
    text-decoration: none;
    background: #fff;
    color: black;
}
.menu div:hover {
    background: #ddd;
}

.dialog {
    position: absolute;
    border: 2px solid #112233;
    z-index: 9999;
}

.dialog_titlebar {
    background: #112233;
    width: 100%;
    height: 32px;
    margin-right: 10px;
}
.dialog_close_box {
    display: inline-block;
    vertical-align: top;
    width: 32px;
    height: 32px;
    background-image: url("../img/x-mark.png");
}
.dialog_title {
    vertical-align: top;
    display: inline-block;
    height: 32px;
    color: white;
    font-size: 24px;
    font-weight: bold;
}
.dialog_body {
    background: black;
    color: white;
    min-height: 50px;
}

.dialog_list_box {
    width: 300px;
    height: 150px;
    background: #334455;
    overflow-y: scroll;
    padding: 10px;
    margin-top: 10px;
    cursor: pointer;
}

.dialog_list_box_selected {
    background: #887766;
}

.dialog_list_prompt {
    display:inline-block;
    padding-top: 10px;
    padding-left: 10px;
    vertical-align: top;
}

.dialog_list_input {
    width: 100%;
}
.dialog_list_holder {
    display:inline-block;
    padding: 10px;
    vertical-align: top;
    width: 300px;
}

.dialog_button_holder {
    padding: 10px;
    margin-top: 10px;
    text-align: right;
}

.dialog_basic_content {
    padding: 10px;
}

.dialog_button_holder input {
    margin-left: 10px;
    padding: 5px;
}

.dialog_modal_backing {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 9998;
    background: rgba(255,255,255,0.8);
}

#orrary_canvas {
    height: 700px;
    width: 1080px;
    background:black;
    margin: 10px;
}

#dialog_textbox {
    width: 500px;
    height: 400px;
}

.account-info {
    font-size: 18px;
    color: black;
    padding: 20px;
}

.account-info #account-name {
    font-size: 35px;
 }

.account-table-name {
    padding-top: 20px;
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #555555;
}

.autotable_table {
    border-collapse: collapse;
}

.autotable_header_row {
    font-weight: bold;
}

.autotable_row {
    font-weight: normal;
}

.autotable_cell {
    padding-right: 15px;
}

.res_tabBox {
    padding-top: 20px;
    padding-left: 10px;
    padding-right: 10px;
    margin: 0px;
    border: 0px solid black;
}

.res_tabBox div {
    display: inline-block;
    width: 60px;
    vertical-align: top;
    margin-left: 5px;
    margin-right: 5px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
    border-top: 2px solid transparent;
}

.res_tabBox div:hover {
    background: #777777;
}

.res_tabBox div.selected {
    border-left: 2px solid #aaaaaa;
    border-right: 2px solid #aaaaaa;
    border-top: 2px solid #aaaaaa;
}

#res_list {
    height: calc(100% - 100px);
    overflow-y: scroll;
    width: 230px;
    margin-left: 10px;
    margin-right: 10px;
    background: var(--list-background-color);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

#res_list div:hover {
    background: #555555;
}

#res_list div.selected {
    background: #888888;
}

#res_content {
    display: inline-block;
    width: calc(100% - var(--sidebar-width));
    margin: 0px;
    border: 0px solid black;
    height: 100%;
    background: var(--dark-background);
}

#res_mesh_content {
    width: 100%;
    height: 100%;
}

#content-resources {
    white-space: nowrap;
}

#res_script_content {
    white-space: pre;
    width: 100%;
    height: 100%;
    color: #eeddcc;
    overflow: scroll;
    font-family: monospace;
    font-size: 14px;
}
#res_script_content > div {
    height: 18px;   
}

#res_drop_target {
    position: fixed;
    display: table-cell;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    text-align: center;
    vertical-align: middle;
    background: rgba(255,255,255,0.6);
}

#res_drop_target div {
    top: 0px;
    left: 0px;
    display: block;
    padding: 30px;
    width: 400px;
    height: 50px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 200px;
    text-align: center;
    border: 10px solid #666666;
    border-style: dashed;
    background: #cccccc;
    color: black;
    font-size: 30px;
}

.main_page_block {
    display: flex;
    flex-direction: row;
    margin-top: -20px;
    margin-bottom: 20px;
    align-items: center;
}

.main_page_logo {
    display: inline-block;
    width: 100px;
    height: 100px;
}

.header_logo {
    margin-left: 20px;
    margin-right: 10px;
    width: 50px;
    height: 50px;
}

.main_page_title {
    display: inline-block;
    color: #444444;
    font-family: 'Orbitron', 'Segoe UI', sans-serif;
    font-size: 60px;
    font-weight: bold;
}

.basic_root {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
    margin: 0px;
    padding: 0px;
}

.basic_root.hidden {
    display: none;
}

.warp9-home.hidden {
    display: none;
}

.basic_main {
    flex: 1;
}


.basic_sidebox {
    display: flex;
    flex-direction: column;
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    margin: 0px;
    padding: 10px;
    background: white;
    color: black;
    vertical-align: top;
    border: 0px solid black;
    height: calc(100vh - 72px);
}

.basic_search_results {
    position: absolute;
    z-index: 30;
    background: #f3f4ef;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    font-family: sans-serif;
    font-size: 14px;
    margin-top: 4px;
    min-height: 10px;
    width: 300px; /* Adjust as needed to match input width */
    max-height: 300px; /* Limit height to prevent overflow */
}

.basic_search_results.hidden {
    display: none;
}

/* Individual item style */
.basic_search_results div {
    padding: 4px 6px;
    transition: background-color 0.2s;
}

/* Hover effect for items */
.basic_search_results div:hover {
    background-color: #e6d4d4;
    cursor: pointer;
}

.section {
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 6px;
    background-color: #f7f9fc;
    border: 1px solid #ccc;
}
.section h3 {
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 6px;
    color: #333;
}
