/* Root font size (1rem = 16px by default, but can be adjusted) */
/* Ensure elements are sized properly, including padding and border */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    height: 6vh;
    width: 100%;
    /* background-color: #b2defe; */
    color: #005da2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
    font-size: 1.1rem;
    overflow: visible; /* Prevent overflow of navbar */
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
}

/* Left side (Title) */
.navbar-left {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Prevent it from shrinking */
}

/* Title styling */
.app-title {
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.app-logo {
    width: 120px !important;
    height: 45px !important;
}

/* Right side (Icons) */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto; /* Push to the right */
    justify-content: flex-end; /* Ensure icons align to the right */
    position: relative;
}

.searchbar {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.searchbar .search-count {
    font-size: 0.9rem;
    color: #222;
    text-align: center;
    height: 4vh;
    min-width: 5vh;
    padding: 0.4rem 0.5rem;
    display: none;
}

.searchbar input {
    width: 20rem;
    height: 4vh;
    font-size: 0.9rem;
    border: 1px solid #aaa;
    border-radius: 0.3rem;
    color: #222;
    padding: 0.2rem 0.5rem;
}

.searchbar .search-nav {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.searchbar .search-nav button {
    width: 4vh;
    align-items: center;
    border: none;
    background: #005da2;
    cursor: pointer;
    border-radius: 3px;
    font-size: 0.9rem;
    transition: all 0.1s ease;
}

.search-nav button:hover {
    background: #0078b5;
}

.search-nav button:active {
    transform: scale(0.95);
    background: #0078b5;
}

.searchbar .search-nav button:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    border: 1px solid #999;
    opacity: 0.7;
}

.search-nav button i {
    font-size: 0.8rem;
    align-items: center;
}

mark.active {
    background: orange;  /* highlight for current match */
    color: black;
}

.navbar-right button {
    width: 10vh;
    height: 4vh;
    border-radius: 0.3rem;
    background-color: #005da2;
    color: white;
    font-weight: 600;
    font-size: medium;
    cursor: pointer;
    border-color: none;
    border: none;
}

.navbar-right button:hover {
    background-color: #004d89;
}

.navbar-right .avatar {
    width: 2rem;
    height: 2rem;
    background-color: #005da2;
    color: white;
    font-size: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.avatar-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background-color: #ffffff;
    color: #333;
    min-width: 14rem;
    border-radius: 0.5rem;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.3);
    overflow: hidden;
    z-index: 1500;
    transition: all 0.3s ease;
}

/* Top profile info */
.avatar-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border-bottom: 2px solid #ddd;
    margin-bottom: 0.2rem;
}

.dropdown-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #005da2;
    color: white;
    font-size: 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-username {
    font-weight: bold;
    font-size: 0.9rem;
    color: #333;
}




.avatar-links {
    margin-bottom: 0.2rem;
}

/* Links section */
.avatar-links .avatar-link {
    display: block;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.avatar-links .avatar-link:hover {
    background-color: #f1f1f1;
}

.avatar-links a {
    display: block;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.avatar-links a:hover {
    background-color: #f1f1f1;
}

.inv-navbar {
    flex-shrink: 0;
    height: 5vh;
    width: 100%;
    background-color: #f4f6f8;
    color: #005da2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    z-index: 1000;
    font-size: 1.1rem;
    overflow: hidden; /* Prevent overflow of navbar */
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 0.3rem;
}

/* Left side (Title) */
.inv-navbar-left {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Prevent it from shrinking */
}

/* Title styling */
.inv-app-title {
    font-size: 1.2rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Right side (Icons) */
.inv-navbar-right {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    width: 30rem;
}

.inv-input {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #bbb;
    background-color: white;
    /* color: white; */
    font-size: 0.95rem;
    width: 100%;
    height: 4vh;
}

.inv-button {
    height: 4vh;
    width: 6rem;
    border-radius: 0.3rem;
    background-color: #005da2;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    border-color: none;
    border: none;
    transition: transform 0.1s ease-in-out, background-color 0.1s ease-in-out;
}

.inv-button:hover {
    background-color: #007bff;
}

.inv-button:active {
    transform: scale(0.95);
    background-color: #007bff;
}

.inv-button:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    border: 1px solid #999;
    opacity: 0.7;
}

.inv-navbar-right i.bx {
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.inv-navbar-right i.bx:hover {
    background-color: #e0e0e0;
}

.sectionbar {
    height: 4vh;
    width: 100%;
    background-color: #005da2;
    display: flex;
    align-items: stretch;
    padding-left: 0.2rem;
    padding-right: 0.4rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 6vh; /* right below navbar */
    left: 0;
    z-index: 999;
    font-size: 1rem;
    font-weight: 500;
}

.sectionbar a {
    text-decoration: none;
    color: white;
    padding: 0 1.2rem;
    display: flex;
    align-items: center;
    height: 100%;               /* Make it fill the .sectionbar height */
    transition: background-color 0.2s ease;
    font-size: 0.85rem;
}

.sectionbar a:hover {
    background-color: #004d89;
}

/* Highlight active section in section bar */
.sectionbar a.active-section {
    background-color: #003d6b;
    color: #fff;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 10.1vh; /* Below navbar */
    left: -13vw;
    width: 13vw; /* Keep the sidebar width responsive */
    height: 90vh;
    padding-top: 0.1rem;
    z-index: 999;
    overflow-y: auto;
    box-shadow: 2px 0 0 rgba(170, 170, 170, 0.3);
    background-color: white;
}

/* Sidebar open state */
.sidebar.open {
    left: 0; /* slide in */
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    position: relative;
    padding: 0;
}

.sidebar ul li a {
    display: block;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    padding-left: 1.5rem;
    padding-right: 1rem;
    color: black;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;                    /* Ensure full width */
    height: 100%;                   /* Optional: full height */
}

.sidebar ul li:hover {
    background-color: #f9f9f9;
}

.sidebar ul li.active {
    background-color: #f1f1f1;
}

/* Layout wrapper */
.container {
    display: flex;
    flex-direction: row;
    padding-top: 10.1vh; /* Height of navbar */
    height: 100vh;
}

/* Main Content */
.main-content {
    margin-left: 0; /* Reserve space for sidebar */
    margin-right: 0;
    padding-top: 0.2rem;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    flex: 1;
    overflow-y: auto;
    height: 89.9vh; /* Full screen minus navbar height */
    font-size: 1rem;
}

.sidebar.open ~ .main-content {
    margin-left: 13vw; /* reserve space for sidebar */
}

.main-content.sidebar-open {
    margin-right: 18vw;
}

.pass-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s ease-in;
}

.pass-modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 360px;
    max-width: 95%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: slideUp 0.3s ease-in;
}

.pass-modal-content h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Modal Background */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease-in;
}
  
/* Modal Box */
.modal-content {
    background: #fff;
    /* color: #fff; */
    margin: 10% auto;
    padding: 2.5rem;
    border-radius: 12px;
    width: 360px;
    max-width: 95%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.3s ease-in;
    position: relative;
}

/* Heading */
.modal-content h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.modal-content p {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    /* color: #bbb; */
}

/* Form Fields */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    padding-left: 0.2rem;
    /* color: #ddd; */
}

.form-group input {
    width: 100%;
    padding: 0.65rem;
    border-radius: 6px;
    border: 1px solid #444;
    background-color: #fff;
    /* color: #fff; */
    font-size: 1rem;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 0.7rem;
    background: #005da2;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-btn:hover {
    background: #004d89;
}

/* Close Button */
.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #aaa;
    cursor: pointer;
}

/* Inventory Table Styling */
.inventory-table-wrapper {
    background-color: #f4f6f8;
    overflow: auto; /* allow scroll */
    max-height: 81vh; /* enables vertical scroll */
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
}

.inventory-table-wrapper table thead th {
    position: sticky !important;
    top: 0;
    z-index: 10;
    background-color: #005da2 !important;
    color: white !important;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.inventory-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    border: 1px solid #ddd;
}

.inventory-table-wrapper th,
.inventory-table-wrapper td {
    padding: 1rem 1.2rem;
    text-align: left;
    border: none;
}

.inventory-table-wrapper thead th {
    position: sticky;
    top: 0;
    background-color: #005da2 !important;
    color: white;
    z-index: 10;
    padding: 1.2rem;
}

.inventory-table-wrapper tbody tr:nth-child(even) {
    background-color: #eee;
}

.inventory-table-wrapper tbody tr:nth-child(odd) {
    background-color: #fff;
}

/* Preserve Action column header hover/edit behavior */
.inventory-table-wrapper i.bx {
    color: #005da2;
    transition: color 0.3s ease;
}

.new-row {
    background-color: #f9f9f9;
    border-top: 2px dashed #ccc;
}

/* .inventory-table-wrapper i.bx:hover {
    color: #007bff;
} */

.inventory-table-wrapper select {
    padding: 0.3rem 1.5rem 0.3rem 0.3rem;
    border-radius: 0.3rem;
    border: 1px solid #ccc;
    font-size: 0.9rem;
    background-color: #fff;
    outline: none;
    transition: border-color 0.2s ease;
}

.inventory-table-wrapper select:focus {
    border-color: #005da2;
    box-shadow: 0 0 3px rgba(0, 93, 162, 0.5);
}

.inventory-table-wrapper input[type="text"] {
    padding: 0.3rem 0.5rem;
    border-radius: 0.3rem;
    border: 1px solid #ccc;
    font-size: 0.9rem;
    background-color: #fff;
    outline: none;
    width: 50%;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inventory-table-wrapper input[type="text"]:focus {
    border-color: #005da2;
    box-shadow: 0 0 3px rgba(0, 93, 162, 0.5);
}

.row-checkbox {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    accent-color: #005da2;
}



/* .header-label {
    display: inline-block;
} */

.toggle-active {
    width: 40px;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    background: #ccc;
    outline: none;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-active:checked {
    background: #005da2;
}

.toggle-active::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 1px;
    left: 1px;
    transition: transform 0.3s;
}

.toggle-active:checked::before {
    transform: translateX(20px);
}

.sort-arrow {
    position: absolute;
    left: 0.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: white;
    pointer-events: none;
}

/* .inventory-table-wrapper tbody tr:hover {
    background-color: #ddd;
    transition: background-color 0.3s ease;
} */

/* Animations */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideUp {
    from {transform: translateY(40px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

/* ------------------------------
   General Layout
------------------------------ */
.dashboard-content {
    width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;
    min-height: 86.5vh;
}

.docviewer-wrapper {
    display: flex;
    flex-direction: row;
    position: relative;
    background-color: white; /* ensures white background behind everything */
}

.doc-main-content {
    flex: 1;
    padding: 0 2rem;
    background-color: white; /* white main content background */
}

/* ------------------------------
   TOC Sidebar (Merged)
------------------------------ */
.doc-toc-sidebar {
    position: fixed;
    top: 10.1vh;
    right: -18vw;
    width: 18vw; 
    height: 90vh;
    padding: 1rem;
    z-index: 999;
    overflow-y: auto;
    box-shadow: -2px 0 0 rgba(170, 170, 170, 0.3);
    background-color: #fff; /* keep white for sidebar */
    border-left: 1px solid #ccc;
    transition: right 0.3s ease;
}

.doc-toc-sidebar.open {
    right: 0;
}

.doc-toc-sidebar h4 {
    margin-top: 0;
    position: sticky;
    top: 0;
    background-color: #fff;
    color: #005da2;
    font-size: 1.2rem;
    border-bottom: 1px solid #ccc;
    padding: 0.7rem 0;
}

/* ------------------------------
   Nested TOC Tree
------------------------------ */
.toc-tree, .toc-tree ul {
    list-style: none;
    padding-left: 1em;
    margin: 0;
}

.toc-tree li {
    margin: 3px 0;
    position: relative;
    cursor: pointer;
}

.toc-tree li a {
    display: block;
    text-decoration: none;
    color: #000;
    font-size: 0.95rem;
    padding: 0.3rem 0.5rem;
    transition: all 0.3s ease;
}

.toc-tree li a:hover {
    color: #004d89;
    font-weight: 500;
}

.toc-tree li > ul {
    display: none;
    margin-left: 1em;
}

.toc-tree li.open > ul {
    display: block;
}

/* Expand/collapse icons */
.toc-tree li::before {
    content: "▶";
    font-size: 10px;
    position: absolute;
    left: -0.8em;
    top: 0.25em;
}

.toc-tree li.open::before {
    content: "▼";
}

/* ------------------------------
   Document Content
------------------------------ */
.doc-content {
    width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;
    min-height: 88vh;
    background-color: white; /* ✅ white background for content */
}

.doc-content h1 {
    color: #005da2;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
}

.doc-content h2 {
    color: black;
    font-size: 1.3rem;
    font-weight: 600;
    padding-left: 4rem;
}

.doc-content h3 {
    color: black;
    font-size: 1.1rem;
    font-weight: 600;
    padding-left: 4rem;
}

h1[id], h2[id], h3[id] {
    scroll-margin-top: 1rem;
}

.doc-content p {
    line-height: 1.6;
    font-size: 1rem;
    color: black;
    font-weight: 500;
    padding-left: 4rem;
    background-color: white; /* ensures text area stays clean white */
}

/* ------------------------------
   Document Header
------------------------------ */
.doc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0 1.5rem;
    padding: 0.5rem;
    border-bottom: 1px solid #ccc;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    background-color: white; /* white header background */
}

.doc-version {
    float: left;
}

.doc-date {
    float: right;
}

/* ------------------------------
   Image Modal
------------------------------ */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
}

.image-modal-center {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-content {
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.close-image-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 10001;
}


.download-list {
    list-style: disc;
    margin: 0.8rem 5rem;
    padding: 0;
    font-size: 1.2rem;
}

.download-list li {
    margin-bottom: 1rem;
}

.download-list a {
    color: #0078b5;   /* Teal blue like your screenshot */
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

.download-list a:hover {
    text-decoration: underline;
}

.login-required {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #cce4ff;
    border: 1px solid #cce4ff;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
}

.filemanagement-content {
    width: 100%;
    padding: 0.5rem;
    background-color: #f4f6f8;
    border-radius: 0.3rem;
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
    height: 81.5vh;
    display: flex;
    flex-direction: column;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    flex-shrink: 0;
}

.tab-button {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    color: #005da2;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tab-button:hover {
    background-color: #f4f6f8;
}

.tab-button.active {
    border-bottom: 3px solid #005da2;
    color: #005da2;
}

.tab-content {
    flex: 1; /* take up the remaining height */
    display: none;
    flex-direction: column;
    margin-top: 0.3rem;
    min-height: 0;
}

.tab-content.active {
    display: flex;         /* show active tab */
}

.files-content {
    flex: 1;
    display: flex;
    gap: 0.3rem;
    width: 100%;
    background-color: #f4f6f8;
    min-height: 0;
}

.files-content .left{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 25%;
    padding: 0.3rem;
    background-color: #fff;
    border: 1px solid #ccc;
    overflow: auto;
}

.files-content .left input{
    height: 2rem;
    width: 100%;
    border-radius: 0.3rem;
    font-size: 0.9rem;
    padding: 0.5rem;
    border: 1px solid #aaa;
}

.folders-files {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
    border-top: 1px solid #ccc;
    padding-top: 0.5rem;
}

.folders-files ul {
    list-style: none;
    margin: 0;
    padding-left: 1rem;
}

.folders-files li {
    cursor: pointer;
    padding: 0.2rem 0;
}

.folder {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.2rem 0;
    border-radius: 0.2rem;
    gap: 0.1rem;
}

.folder-name {
    flex: 1;
    padding: 0.2rem 0;
    border-radius: 0.2rem;
    transition: background 0.2s;
}

.folder:hover .folder-name{
    background-color: #e6f0fa;   /* light blue */
}

.folder .folder-name.active {
    background-color: #cce4ff;   /* stronger blue */
}

.arrow {
    font-size: 0.8rem;
    margin-right: 0.2rem;
    color: #005da2;
}

.nested {
    display: none;
    padding-left: 1rem;
}

.file-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
}

.files-content .file-list {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background-color: #fff;
    border: 1px solid #ccc;
    width: 75%;
    overflow: auto;
}

.filepath-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0 0.3rem 0.3rem 0.3rem;
    border-bottom: 1px solid #ddd;
}

.filepath-header span {
    font-size: 1.3rem;
    font-weight: 600;
}

.filepath-header button {
    display: flex;
    align-items: center;
    height: 2rem;
    border-radius: 0.3rem;
    background-color: #005da2;
    color: white;
    font-weight: 600;
    font-size: medium;
    cursor: pointer;
    border-color: none;
    border: none;
    padding: 0 1rem;
    transition: all 0.1s ease;
    align-items: center;
}

.filepath-header button:hover {
    background-color: #004d89;
}

.filepath-header button:active {
    transform: scale(0.95);
    background-color: #004d89;
}

.file-lists {
    flex: 1;
    overflow: auto;
    padding: 0 1rem;
    border-radius: 0.2rem;
}

.file-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.3rem 0.5rem 1rem;
    border-bottom: 1px solid #ddd;
    transition: background 0.2s;
}

.file-row:hover {
    background-color: #e6f0fa;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
}

.file-icon {
    font-size: 1.5rem;
    color: #005da2;
}

/* Actions */
.file-actions {
    position: relative;
    flex-shrink: 0;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.2rem 1rem;
}

/* Dropdown */
.menu-options {
    display: none;
    position: absolute;
    right: 85%;
    top: 20%;
    background: #f9f9f9;
    border: 1px solid #ccc;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border-radius: 0.1rem;
    z-index: 10;
    width: 15rem;
    color: #444;
    padding: 0.1rem;
}

.menu-options div {
    padding: 0.5rem 0.8rem;
    font-size: 0.95rem;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

.menu-options div:hover {
    background-color: #f0f0f0;
}

.menu-options.show {
    display: block;
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-box {
  background: #fff;
  padding: 1.2rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  width: 400px;
}

.modal-box h3 { 
    margin-top: 0; 
    font-size: 1.3rem;
    text-align: center;
}

.modal-actions {
  display: flex;
  margin-top: 1rem; 
  gap: 0.5rem;
}

#renameInput {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #444;
    border-radius: 0.3rem;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.modal-actions button { 
    padding: 0.5rem 0.8rem; 
    border: none; 
    border-radius: 0.3rem; 
    cursor: pointer; 
    width: 50%;
    font-size: 0.95rem;
}

#renameCancel { 
    background: red;
    color: #fff;
    transition: all 0.1s ease;
}

#renameCancel:hover {
    background: darkred;
}

#renameCancel:active {
    transform: scale(0.95);
    background: darkred;
}

#renameConfirm { 
    background: #005da2; 
    color: #fff;
    transition: all 0.1s ease;
}

#renameConfirm:hover {
    background: #004d89;
}

#renameConfirm:active {
    transform: scale(0.95);
    background: #004d89;
}

#renameConfirm:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    border: 1px solid #999;
    opacity: 0.7;
}

.filename {
    font-size: 1rem;
    padding: 0.5rem 0;
}

#createFolderInput {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #444;
    border-radius: 0.3rem;
    font-size: 0.95rem;
    box-sizing: border-box;
}

#createFolderCancel { 
    background: red;
    color: #fff;
    transition: all 0.1s ease;
}

#createFolderCancel:hover {
    background: darkred;
}

#createFolderCancel:active {
    transform: scale(0.95);
    background: darkred;
}

#createFolderConfirm { 
    background: #005da2; 
    color: #fff;
    transition: all 0.1s ease;
}

#createFolderConfirm:hover {
    background: #004d89;
}

#createFolderConfirm:active {
    transform: scale(0.95);
    background: #004d89;
}

#createFolderConfirm:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    border: 1px solid #999;
    opacity: 0.7;
}

#deleteFolderCancel { 
    background: red;
    color: #fff;
    transition: all 0.1s ease;
}

#deleteFolderCancel:hover {
    background: darkred;
}

#deleteFolderCancel:active {
    transform: scale(0.95);
    background: darkred;
}

#deleteFolderConfirm { 
    background: #005da2; 
    color: #fff;
    transition: all 0.1s ease;
}

#deleteFolderConfirm:hover {
    background: #004d89;
}

#deleteFolderConfirm:active {
    transform: scale(0.95);
    background: #004d89;
}

#deleteFileCancel { 
    background: red;
    color: #fff;
    transition: all 0.1s ease;
}

#deleteFileCancel:hover {
    background: darkred;
}

#deleteFileCancel:active {
    transform: scale(0.95);
    background: darkred;
}

#deleteFileConfirm { 
    background: #005da2; 
    color: #fff;
    transition: all 0.1s ease;
}

#deleteFileConfirm:hover {
    background: #004d89;
}

#deleteFileConfirm:active {
    transform: scale(0.95);
    background: #004d89;
}

#downloadDeleteFileCancel { 
    background: red;
    color: #fff;
    transition: all 0.1s ease;
}

#downloadDeleteFileCancel:hover {
    background: darkred;
}

#downloadDeleteFileCancel:active {
    transform: scale(0.95);
    background: darkred;
}

#downloadDeleteFileConfirm { 
    background: #005da2; 
    color: #fff;
    transition: all 0.1s ease;
}

#downloadDeleteFileConfirm:hover {
    background: #004d89;
}

#downloadDeleteFileConfirm:active {
    transform: scale(0.95);
    background: #004d89;
}

#downloadRenameInput {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #444;
    border-radius: 0.3rem;
    font-size: 0.95rem;
    box-sizing: border-box;
}

#downloadRenameCancel { 
    background: red;
    color: #fff;
    transition: all 0.1s ease;
}

#downloadRenameCancel:hover {
    background: darkred;
}

#downloadRenameCancel:active {
    transform: scale(0.95);
    background: darkred;
}

#downloadRenameConfirm { 
    background: #005da2; 
    color: #fff;
    transition: all 0.1s ease;
}

#downloadRenameConfirm:hover {
    background: #004d89;
}

#downloadRenameConfirm:active {
    transform: scale(0.95);
    background: #004d89;
}

#downloadRenameConfirm:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    border: 1px solid #999;
    opacity: 0.7;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* space between logo and title */
}

.app-logo {
    width: 35px;   /* adjust size as needed */
    height: 35px;
    object-fit: contain;
}


html {
    scroll-behavior: smooth;
}

