body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: #eef1f5;
}
//* Horní lišta */
.fs-header {
    display: flex;
    justify-content: space-between;   /* název vlevo, tlačítka vpravo */
    align-items: center;
    background: #fff;
    padding: 10px 18px;
    border-bottom: 1px solid #dcdcdc;
    font-size: 15px;
}

/* tlačítka v hlavičce */
.fs-header .header-actions a {
    margin-left: 10px;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
    background: #e5e7eb;
    color: #333;
}

.fs-header .header-actions a:hover {
    background: #d1d5db;
}

/* tlačítko odhlášení */
.fs-header .logout-btn {
    background: #d9534f !important;
    color: #fff !important;
}

.fs-header .logout-btn:hover {
    background: #c9302c !important;
}
/* Modal backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Modal window */
.modal-box {
    background: #fff;
    padding: 32px;
    width: 420px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

/* Nadpis modalu */
.modal-box h2 {
    text-align: center;
    margin: 0 0 22px 0;
    font-size: 22px;
}

/* INPUTY */
.modal-box input {
    width: 100%;
    padding: 12px 14px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
}

/* Chybová hláška */
.modal-error,
.modal-success {
    margin: 6px 0 10px 0;
    font-size: 14px;
}

.modal-error { color: #c00; }
.modal-success { color: #090; }

/* TLAČÍTKA */
.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-buttons button {
    padding: 9px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.modal-save {
    background: #2563eb;
    color: white;
}

.modal-cancel {
    background: #e5e7eb;
    color: #333;
}


/* Odkaz Odhlásit se (nenápadný jako v DSM) */
.logout-link {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 4px;
    transition: 0.2s ease;
}

.logout-link:hover {
    background: #e7e7e7;
    color: #333;
}

.tree-root,
.tree-children {
    list-style:none;
    padding-left: 12px;
}

.tree-folder > .tree-item {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tree-active {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}


.login-box {
    width: 320px;
    padding: 40px;
    background: white;
    margin: 120px auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
    border-radius: 6px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
}

.login-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #0b57d0;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

/* FileStation layout */
.fs-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100vh;
}

.fs-left {
    background: #ffffff;
    border-right: 1px solid #dcdfe6;
    overflow-y: auto;
    padding: 10px;
}

.fs-right {
    padding: 15px;
}

.fs-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.fs-btn {
    background: #f3f4f7;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #c9ccd3;
    cursor: pointer;
}

.fs-header {
    background: #ffffff;
    padding: 12px;
    border-bottom: 1px solid #dcdfe6;
    font-size: 18px;
    font-weight: 600;
}
.fs-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background: #f5f5f5;
    padding: 8px 16px;
    border-bottom: 1px solid #ddd;
}

.fs-left a.toplink {
    font-size: 13px;
    margin-left: 15px;
    color: #555;
    text-decoration: none;
}

.fs-left a.toplink:hover {
    text-decoration: underline;
}

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

.fs-table th {
    text-align: left;
    padding: 8px;
    background: #f3f4f7;
    border-bottom: 1px solid #dcdfe6;
}

.fs-table td {
    padding: 8px;
    border-bottom: 1px solid #ececec;
}

.fs-folder { color: #0b57d0; cursor: pointer; }
.fs-file { cursor: pointer; }

/* ===========================
   FULLSCREEN LOADER
   =========================== */

#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(3px);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    z-index: 999999; /* nad vše */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

#loader-overlay.loader-visible {
    opacity: 1;
    pointer-events: all;
}

/* Spinner */
.loader-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255,255,255,0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    color: white;
    font-size: 18px;
    font-weight: 500;
}

