/* ============================================================
   scenebase.css — SceneBase D64 Browser styles
   ============================================================ */

/* ── Animations ────────────────────────────────────────────── */
.blink-cur  { animation: blink 1s step-end infinite; }
.spin-icon  { display: inline-block; animation: spin .7s linear infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes spin  { to { transform: rotate(360deg); } }

/* ── Results table ─────────────────────────────────────────── */
#resultsBody tr { cursor: pointer; }

/* ── RUN button — red, overrides layout.php btn-search ─────── */
#main-search .btn-search,
#main-search .btn-search:hover { background: none !important; border: none !important; }

/* ── Sort headers ──────────────────────────────────────────── */
.sort-th { cursor: pointer; user-select: none; }
.sort-th:hover { color: #1a5276; }

/* ── Pagination buttons ────────────────────────────────────── */
.pg-btn {
    font-size: 0.9rem;
    padding: 6px 16px;
    border-radius: 4px;
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    color: #495057;
    cursor: pointer;
    transition: all .12s;
    min-width: 40px;
}
.pg-btn:hover:not(:disabled) { border-color: #1a66cc; color: #1a66cc; background: #e8f0fe; }
.pg-btn.active  { background: #2d3748; border-color: #2d3748; color: #fff; }
.pg-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ── GET / download button ─────────────────────────────────── */
.btn-dir {
    font-size: 0.78rem;
    padding: 3px 10px;
    background: #d1e7dd;
    border: 1px solid #a3cfbb;
    color: #0f5132;
    border-radius: 4px;
    white-space: nowrap;
    display: inline-block;
    text-decoration: none;
    transition: all .12s;
}
.btn-dir:hover { background: #0f5132; color: #fff; border-color: #0f5132; }

/* ── C64 Pro font ──────────────────────────────────────────── */
@font-face {
    font-family: 'C64Pro';
    src: url('/css/C64_Pro_Mono-STYLE.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* ── Disk directory modal ──────────────────────────────────── */
.c64-modal-content {
    background: #3328a5 !important;
    border: 4px solid #7b6fd5 !important;
    border-radius: 0 !important;
    color: #7b6fd5;
    font-family: 'C64Pro', 'Courier New', monospace !important;
}
.c64-modal-header {
    background: #241f7b;
    border-bottom: 2px solid #7b6fd5;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'C64Pro', 'Courier New', monospace;
    font-size: 0.78rem;
    color: #7b6fd5;
    letter-spacing: 1px;
}
.c64-modal-path {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 10px;
    color: #8880e8;
    font-size: 0.7rem;
}
.c64-modal-close {
    cursor: pointer;
    color: #7b6fd5;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0 4px;
    flex-shrink: 0;
}
.c64-modal-close:hover { color: #fff; }

.c64-modal-body {
    background: #3328a5 !important;
    padding: 0 !important;
    max-height: 70vh;
    overflow-y: auto;
}
.c64-modal-body::-webkit-scrollbar       { width: 6px; }
.c64-modal-body::-webkit-scrollbar-track { background: #241f7b; }
.c64-modal-body::-webkit-scrollbar-thumb { background: #7b6fd5; }

.c64-modal-footer {
    background: #241f7b;
    border-top: 2px solid #7b6fd5;
    padding: 6px 14px;
    font-family: 'C64Pro', 'Courier New', monospace;
    font-size: 0.72rem;
    color: #7b6fd5;
    text-align: right;
    min-height: 30px;
}
.c64-modal-count { color: #a09af0; }

.c64-directory {
    font-family: 'C64Pro', 'Courier New', monospace;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #7b6fd5;
    background: #3328a5;
    padding: 14px 18px 18px;
    margin: 0;
    white-space: pre;
    letter-spacing: 0.5px;
}
.c64-dir-header { color: #7b6fd5; }
.c64-reverse    { background: #7b6fd5; color: #1a1060; display: inline; padding: 0 1px; }
.c64-dir-file   { color: #7b6fd5; }
.c64-dir-file:hover { color: #fff; background: #241f7b; }
.c64-dir-free   { color: #7b6fd5; }

.c64-loading {
    font-family: 'C64Pro', 'Courier New', monospace;
    color: #7b6fd5;
    font-size: 0.88rem;
    text-align: center;
    padding: 40px 20px;
    letter-spacing: 2px;
}
