/* Runout Admin — full-page hand list, dark theme */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #111827;
    color: #e5e7eb;
    min-height: 100vh;
}

.hidden { display: none !important; }

/* Header */
#admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #1f2937;
    border-bottom: 1px solid #374151;
}

#admin-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

#admin-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

#admin-brand {
    font-size: 18px;
    font-weight: 700;
    color: #eab308;
}

#hand-count {
    font-size: 13px;
    font-weight: 400;
    color: #9ca3af;
}

.version-badge {
    font-size: 11px;
    color: #9ca3af;
    background: #374151;
    padding: 2px 8px;
    border-radius: 4px;
}

.version-badge--inline {
    position: static;
    pointer-events: auto;
    user-select: auto;
}

/* Access denied */
#admin-denied {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vh;
    color: #ef4444;
    font-size: 18px;
}

/* Content area */
#admin-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

/* Hand list */
#hand-list {
    min-height: calc(100vh - 110px);
}

.hand-item {
    padding: 12px 20px;
    border-bottom: 1px solid #252b3b;
    cursor: pointer;
    transition: background 0.15s;
}

.hand-item:hover {
    background: #1f2937;
}

.hand-item-time {
    font-size: 12px;
    color: #9ca3af;
}

.hand-item-preview {
    font-size: 14px;
    color: #d1d5db;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.hand-item-omit {
    display: inline-block;
    font-size: 11px;
    color: #f59e0b;
    margin-left: 6px;
}

/* Pager */
#hand-list-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    border-top: 1px solid #374151;
    font-size: 13px;
}

#hand-list-pager button {
    background: #374151;
    color: #e5e7eb;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

#hand-list-pager button:disabled {
    opacity: 0.4;
    cursor: default;
}

#hand-list-pager button:not(:disabled):hover {
    background: #4b5563;
}

#page-info {
    color: #9ca3af;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111827;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}
