/* /var/www/two14.org/rot-viewer/style.css */

* { box-sizing: border-box; }

body {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: #d4d4d4;
    margin: 0;
    padding: 24px;
    color: #222;
}

.page-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #444;
}

.page-header button {
    font-size: 13px;
    padding: 6px 14px;
    border: 1px solid #999;
    border-radius: 3px;
    background: #f3f3f3;
    cursor: pointer;
}

.page-header button:hover { background: #e6e6e6; }

.page-header label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.panes {
    display: grid;
    grid-template-columns: 1fr 1.35fr 1fr;
    gap: 18px;
}

@media (max-width: 900px) {
    .panes { grid-template-columns: 1fr; }
}

.window {
    border: 1px solid #8f8f8f;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.title-bar {
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.title-bar.hot { background: #0a5bd3; }
.title-bar.sharepoint { background: #038387; }
.title-bar.cold { background: #5a5a5a; }

.breadcrumb {
    background: #e8e8e8;
    border-bottom: 1px solid #c8c8c8;
    padding: 6px 10px;
    font-size: 12px;
    color: #333;
}

.file-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
    table-layout: fixed;
}

.file-table th:first-child,
.file-table td:first-child {
    width: 58%;
}

.file-table th {
    text-align: left;
    padding: 6px 10px;
    color: #666;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
}

.file-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.file-table tr:last-child td { border-bottom: none; }

.file-name {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    overflow: hidden;
}

.file-name span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-name svg { flex-shrink: 0; }

.status-bar {
    background: #e8e8e8;
    border-top: 1px solid #c8c8c8;
    padding: 5px 10px;
    font-size: 11px;
    color: #666;
    display: flex;
    justify-content: space-between;
}

.status-bar a { color: #038387; text-decoration: none; }
.status-bar a:hover { text-decoration: underline; }

.empty-state {
    padding: 24px 10px;
    text-align: center;
    color: #999;
    font-size: 12px;
    white-space: normal;
}

.error-state {
    padding: 12px 10px;
    color: #a32d2d;
    font-size: 12px;
    background: #fcebeb;
}

/* Flash highlight for rows that just appeared - used on the cold pane
   when a file first shows up there after quarantine */
@keyframes flash-new {
    0%   { background: #fff6d6; }
    100% { background: transparent; }
}

.row-new {
    animation: flash-new 2.5s ease-out;
}

.file-name.placeholder-name {
    overflow: visible;
}

.file-name.placeholder-name span {
    white-space: normal;
    text-overflow: unset;
    word-break: break-word;
}

.placeholder-row {
    cursor: pointer;
    color: #6b5300;
}

.placeholder-row:hover {
    background: #fffaf0;
}

.preview-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.preview-modal-box {
    background: #fff;
    border-radius: 6px;
    width: 500px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.preview-modal-header {
    background: #5a4a00;
    color: #fff;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
}

.preview-modal-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

#preview-modal-body {
    margin: 0;
    padding: 16px;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 13px;
    white-space: pre-wrap;
    overflow-y: auto;
}
