﻿:root {
    --top-block-height: 200px;
}
/* Common form states */
input:disabled,
textarea:disabled,
select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Error state */
input.error,
textarea.error,
select.error {
    border: 1px solid #e74c3c;
    background-color: #fff4f4;
}

/* Success state */
input.success,
textarea.success,
select.success {
    border: 1px solid #2ecc71;
    background-color: #f0fff5;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

form {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

.page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 20px; /* This creates the margin effect */
    box-sizing: border-box;
    gap: 20px; /* Optional: spacing between layout and footer */
}

/* Main layout container */
.layout {
    flex: 1; /* This allows it to take all available space except footer */
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: #e6eaee;
    box-sizing: border-box;
    overflow: hidden;
    font-family: Tahoma, sans-serif;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}
    .layout.no-scroll {
        overflow: visible;
    }

/* Left column (200px fixed width) */
.left-column {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Right column (fills remaining space) */
.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* === Top blocks (fixed 200px height) === */
.left-top,
.right-header {
    height: var(--top-block-height);
    box-sizing: border-box;
    border-radius: 4px;
    padding: 20px;
    color: #f0eede;
}

/* Top-left box (logo + countdown) */
.left-top {
    background-color: #2e3e4b;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 10px;
}

    .left-top .logo {
        font-size: 1.2em;
        font-weight: bold;
        text-transform: uppercase;
    }

    .left-top .countdown {
        font-size: 1.4em;
        font-family: monospace;
    }
        .left-top .countdown a {
            text-decoration: none;
            color: #f0eede;
            background-color: #44576a;
            color: #f0eede;
            padding: 4px 8px;
            border: none;
            border-radius: 2px;
            cursor: pointer;
            text-transform: uppercase;
            font-weight: bold;
            transition: background-color 0.3s;
            margin: 5px;
        }

/* Top-right header */
.right-header {
    background-color: #3b4a59;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #f0f0f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.header-title {
    font-size: 1.4em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-footer {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.9em;
}

    .header-footer a {
        color: #d0d0d0;
        text-decoration: none;
    }

        .header-footer a:hover {
            text-decoration: underline;
        }

/* Scrollable content below top-right */
.right-content {
    flex: 1;
    overflow-y: auto;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-right: 5px;
}
    .right-content.no-scroll {
        overflow-y: visible;
    }

/* Fill available vertical space */
.flex-fill {
    flex: 1;
    min-height: 0; /* Important to allow scroll area to shrink */
    display: flex;
    flex-direction: column;
}

/* Scroll only when needed */
.scrollable-inner {
    flex: 1;
    min-height: 0; /* Required to allow overflow */
    overflow-y: auto;
    background: #f0f0f0; /* for visibility */
    padding: 10px;
}

.box-no-clip {
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Common box styling */
.box {
    border-radius: 4px;
    overflow: hidden;
}

/* Box title bar */
.box-title {
    padding: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Box content */
.box-content {
    padding: 15px;
    font-size: 0.9em;
}

/* Left box theme (dark) */
.left-box {
    background-color: #2e3e4b;
    color: #f0eede;
}

    .left-box .box-title {
        background-color: #1d2b35;
        color: #fff;
    }

    .left-box .box-content a {
        color: #f0eede;
        text-decoration: none;
    }

        .left-box .box-content a:hover {
            text-decoration: underline;
        }

    .left-box .current-location {
        border-left: 4px solid #3e5a91; /* darker blue accent */
        border-right: 1px solid #3e5a91; /* your left column's header blue */
        border-top: 1px solid #3e5a91; /* your left column's header blue */
        border-bottom: 1px solid #5E80BD; /* your left column's header blue */
        margin: 8px 0;
        font-weight: bold;
        font-size: 0.95em;
    }

    .left-box .current-location-FAIL {
        background-color: #5E80BD; /* your left column's header blue */
        color: #ffffff;
        padding: 8px 12px;
        margin: 8px 0;
        border-left: 4px solid #3e5a91; /* darker blue accent */
        font-weight: bold;
        font-size: 0.95em;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-radius: 4px;
    }


.box.right-box {
  margin-bottom: 20px;
  overflow: hidden;
}

/* Right box theme (light) */
.right-box {
    background-color: #fdfdfd;
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

    .right-box .box-title {
        background-color: #cdd6e2;
        color: #2c3e50;
    }

/* Left column: form styling */
.left-box input[type="text"],
.left-box input[type="password"],
.left-box select,
.left-box textarea {
    /*width: 100%;*/
    padding: 8px;
    background-color: #1d2b35;
    border: 1px solid #3a4a59;
    color: #f0eede;
    border-radius: 4px;
    margin-bottom: 10px;
    font-family: Tahoma, sans-serif;
}

.left-box input[type="checkbox"],
.left-box input[type="radio"] {
    accent-color: #5ea5ff;
    margin-right: 6px;
}

.left-box label {
    color: #f0eede;
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
}

.left-box button,
.left-box input[type="submit"] {
    background-color: #44576a;
    color: #f0eede;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s;
}

    .left-box button:hover,
    .left-box input[type="submit"]:hover {
        background-color: #5a6e83;
    }

.left-box input:disabled,
.left-box textarea:disabled,
.left-box select:disabled {
    background-color: #1d2b35;
    color: #999;
}

/* Error (left) */
.left-box input.error,
.left-box textarea.error,
.left-box select.error {
    background-color: #3b1f1f;
    border-color: #e74c3c;
    color: #f8d7da;
}

/* Success (left) */
.left-box input.success,
.left-box textarea.success,
.left-box select.success {
    background-color: #1f352a;
    border-color: #2ecc71;
    color: #d4edda;
}

/* Right column: form styling */
.right-box input[type="text"],
.right-box input[type="password"],
.right-box select,
.right-box textarea {
    /*width: 100%;*/
    padding: 8px;
    background-color: #ffffff;
    border: 1px solid #b0becf;
    color: #333;
    border-radius: 4px;
    margin-bottom: 10px;
    font-family: Tahoma, sans-serif;
}

.right-box input[type="checkbox"],
.right-box input[type="radio"] {
    accent-color: #5e80bd;
    margin-right: 6px;
}

.right-box label {
    color: #2c3e50;
    display: inline;
    margin-bottom: 4px;
    font-weight: bold;
}

.right-box button,
.right-box input[type="submit"] {
    background-color: #5e80bd;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s;
}

.right-box button:hover,
.right-box input[type="submit"]:hover {
    background-color: #4a6aa5;
}
.right-box input:disabled,
.right-box textarea:disabled,
.right-box select:disabled {
    background-color: #f5f7f9;
    color: #999;
}

/* Error (right) */
.right-box input.error,
.right-box textarea.error,
.right-box select.error {
    background-color: #fff4f4;
    border-color: #e74c3c;
    color: #c0392b;
}

/* Success (right) */
.right-box input.success,
.right-box textarea.success,
.right-box select.success {
    background-color: #f0fff5;
    border-color: #2ecc71;
    color: #27ae60;
}
.right-box-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}



.centered-box {
    background-color: #fdfdfd;
    border: 1px solid #ccd6e3;
    border-radius: 8px;
    font: 1em Tahoma, Arial, Helvetica, sans-serif;
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: auto;
    max-width: 600px;
    min-width: 280px;
}

    .centered-box .box-title {
        background-color: #cdd6e2;
        color: #2c3e50;
        font-weight: bold;
        border-bottom: 1px solid #e0e6ee;
        margin-bottom: 10px;
        padding: 10px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .centered-box .box-content {
        padding-top: 5px;
    }

/* Right column: form styling */
    .centered-box input[type="text"],
    .centered-box input[type="password"],
    .centered-box select,
    .centered-box textarea {
        /*width: 100%;*/
        padding: 8px;
        background-color: #ffffff;
        border: 1px solid #b0becf;
        color: #333;
        border-radius: 4px;
        margin-bottom: 10px;
        font-family: Tahoma, sans-serif;
    }

    .centered-box input[type="checkbox"],
    .centered-box input[type="radio"] {
        accent-color: #5e80bd;
        margin-right: 6px;
    }

    .centered-box label {
        color: #2c3e50;
        display: inline;
        margin-bottom: 4px;
        font-weight: bold;
    }

    .centered-box button,
    .centered-box input[type="submit"] {
        background-color: #5e80bd;
        color: #fff;
        padding: 8px 16px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        text-transform: uppercase;
        font-weight: bold;
        transition: background-color 0.3s;
    }

        .centered-box button:hover,
        .centered-box input[type="submit"]:hover {
            background-color: #4a6aa5;
        }

    .centered-box input:disabled,
    .centered-box textarea:disabled,
    .centered-box select:disabled {
        background-color: #f5f7f9;
        color: #999;
    }

/* Error (right) */
    .centered-box input.error,
    .centered-box textarea.error,
    .centered-box select.error {
        background-color: #fff4f4;
        border-color: #e74c3c;
        color: #c0392b;
    }

/* Success (right) */
    .centered-box input.success,
    .centered-box textarea.success,
    .centered-box select.success {
        background-color: #f0fff5;
        border-color: #2ecc71;
        color: #27ae60;
    }

    .centered-box.full-width {
        width: 100%;
        max-width: none;
    }

.footer {
    background-color: #2e3e4b;
    color: #f0eede;
    padding: 20px;
    font-size: 0.85em;
    text-align: center;
    border-top: 4px solid #1d2b35;
    /*margin-top: 20px;*/
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.footer-links {
    margin-bottom: 10px;
}

    .footer-links a {
        color: #b0c4de;
        margin: 0 10px;
        text-decoration: none;
    }

        .footer-links a:hover {
            text-decoration: underline;
        }

.footer-note {
    font-style: italic;
    color: #ccc;
}

.breadcrumb-bar {
    background: linear-gradient(to bottom, #f9f9fb, #e9edf2);
    padding: 10px 15px;
    font-size: 0.9em;
    color: #5E80BD;
    border-bottom: 1px solid #ccd6e3;
    margin-bottom: 20px;
    border-radius: 4px;
}

    .breadcrumb-bar a {
        color: #5E80BD;
        text-decoration: none;
        font-weight: 500;
    }

        .breadcrumb-bar a:hover {
            text-decoration: underline;
            color: #3e5a91;
        }

    .breadcrumb-bar span {
        color: #4a4a4a;
        font-weight: bold;
    }

.form-table {
  display: table;
  width: inherit;
}

.form-row {
    display: table-row;
    width: inherit;
}

.form-cell {
  display: table-cell;
  padding: 8px;
  vertical-align: middle;
}

    .form-cell input[type="text"],
    .form-cell input[type="password"] {
    }

.form-cell-full {
    display: table-cell;
    padding: 8px;
    text-align: center;
    /* Span across two "columns" */
    width: 100%;
    /* Optional styling */
    font-weight: bold;
}

.centertext {
    text-align: center;
}

.iconwithmargin
{
    margin: 10px;
}

.smaller {
    font-size: 0.7em;
}

.dropZone {
    border: 2px dashed #ccc;
    padding: 30px;
    text-align: center;
    background-color: #f9f9f9;
    margin-bottom: 20px;
    cursor: pointer;
}

    .dropZone.dragover {
        background-color: #e6f7ff;
    }

.uploadedFilesList div {
    margin-bottom: 6px;
}


/* Extend right-box layout for file list */
/*.file-list {
    padding: 20px;
    font-family: Tahoma, sans-serif;
}*/

/* Table layout */
/*.file-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-family: inherit;
}

    .file-table thead th {
        background-color: #cdd6e2;
        color: #2c3e50;
        text-align: left;
        padding: 8px;
        border-bottom: 1px solid #b0becf;
    }

    .file-table tbody td {
        padding: 8px;
        border-bottom: 1px solid #e0e6ed;
    }

    .file-table tbody tr {
        cursor: context-menu;
    }


*/




.file-browser {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.breadcrumb-bar {
    margin-bottom: 10px;
    font-size: 14px;
    color: #2c3e50;
    font-weight: bold;
}

.breadcrumb-path {
    background-color: #e6eef6;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
}

.breadcrumb-close-icon {
    float: right;
    padding: 0 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin-left: auto;
}

    .breadcrumb-close-icon:hover .icon {
        stroke: #e74c3c;
    }

.breadcrumb-refresh-icon {
    float: right;
    padding: 0 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

    .breadcrumb-refresh-icon:hover .icon {
        stroke: #3498db; /* A calm blue hover */
    }


.breadcrumb-bar {
    position: relative;
}

.breadcrumb-icons {
    position: absolute;
    top: 50%;
    right: 10px;
    display: flex;
    gap: 2px;
    transform: translateY(-50%);
}

    .breadcrumb-icons a {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.browser-layout {
    display: flex;
    gap: 20px;
}

/* Left Column */
.folder-list {
    width: 200px;
    background-color: #f5f7f9;
    border: 1px solid #b0becf;
    border-radius: 6px;
    padding: 10px;
}

.folder-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.folder-title-icon {
    color: #2c3e50;
}
    .folder-title-icon:hover .icon {
        stroke: #3498db; /* A calm blue hover */
    }

.folder-items {
    list-style: none;
    padding-left: 0;
    margin: 0;
    text-align: left;
}

    .folder-items li {
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        gap: 8px; /* spacing between icon and text */
    }

    .folder-items a {
        text-decoration: none;
        color: #5e80bd;
        font-family: Tahoma, sans-serif;
    }

        .folder-items a:hover {
            text-decoration: underline;
        }

/* Right Column */
.file-list {
    flex-grow: 1;
}

/* Existing from earlier */
.file-icon-img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
}

.file-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-family: Tahoma, sans-serif;
}

    .file-table thead th {
        background-color: #cdd6e2;
        color: #2c3e50;
        text-align: left;
        padding: 8px;
        border-bottom: 1px solid #b0becf;
    }

    .file-table tbody td {
        padding: 8px;
        border-bottom: 1px solid #e0e6ed;
    }

    .file-table tbody tr {
        cursor: context-menu;
    }

    /*
#fileBrowserBox {
    background-color: white;
    z-index: 1000;
    overflow: auto;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(0,0,0,0.2);
}*/


.context-menu {
    cursor: pointer;
}


#fileBrowserBox {
    display: flex; /* Hidden by default */
    position: fixed;
    top: 80px; /* Adjust based on your header */
    left: 200px; /* Respect the left column width */
    right: 30px;
    bottom: 30px;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 900;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Important: allow internal scrolls only */
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.file-browser-container {
    position: fixed;
    top: 80px; /* adjust as needed */
    left: 200px; /* to respect your left column */
    right: 30px;
    bottom: 30px;
    background: #fff;
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 900;
}

/* Fixed breadcrumb */
.breadcrumb-bar {
    background-color: #cdd6e2;
    color: #2c3e50;
    padding: 12px 16px;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Flex body */
.file-browser-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Left folder list */
.folder-list-scroll {
    width: 250px;
    overflow-y: auto;
    border-right: 1px solid #ddd;
    padding: 10px;
}

/* Right file list */
.file-list-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

/* Sticky file table header */
.file-table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
}

    .file-table th,
    .file-table td {
        padding: 8px;
        border-bottom: 1px solid #e0e6ed;
        text-align: left;
    }

    .file-table th {
        background-color: #cdd6e2;
        color: #2c3e50;
        position: sticky;
        top: 0;
        z-index: 1;
    }

.file-row.selected {
    background-color: #e0f3ff;
    outline: 2px solid #2a9fd6;
}

.folder-drop-target.drag-over {
    background-color: #d0f0d0;
    outline: 2px dashed #2a2;
}

.currentfolder {
    font-weight: bold;
    text-decoration: none;
    color: #000000;
}


.upload-drop-box {
    margin-top: 10px;
    border: 2px dashed #b0becf;
    border-radius: 6px;
    background-color: #f9f9fb;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    color: #2c3e50;
    font-family: Tahoma, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .upload-drop-box:hover,
    .upload-drop-box.dragover {
        background-color: #e6f7ff;
        border-color: #5e80bd;
    }

    .upload-drop-box .upload-icon {
        margin-bottom: 12px;
    }

    .upload-drop-box .upload-text p {
        margin: 4px 0;
        font-size: 0.95em;
    }

    .upload-drop-box .smaller {
        color: #999;
        font-size: 0.75em;
    }


.folder-bar {
    display: flex;
    align-items: center;
    font-family: Tahoma, sans-serif;
    font-size: 0.95em;
}

    .folder-bar img.arrow-icon {
        width: 14px;
        height: 14px;
        margin-right: 5px;
    }

    .folder-bar .dots {
        margin-right: 8px;
    }

.folder-link {
    color: #5e80bd;
    text-decoration: none;
    font-weight: bold;
}

    .folder-link:hover {
        text-decoration: underline;
    }


.button {
    display: inline-block;
    padding: 10px 16px;
    background-color: #5e80bd;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
}

    .button:hover {
        background-color: #4a6aa5;
    }

.buttonsmall {
    display: inline-block;
    padding: 5px 8px;
    margin: 4px;
    background-color: #5e80bd;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
}

    .button:hover {
        background-color: #4a6aa5;
    }
