/* GitSync Dashboard — style.css */

/* ── Tab Navigation ─────────────────────────────────────── */

.tab-btn {
    padding: 0.75rem 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    background: none;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.tab-btn:hover {
    color: #374151;
    border-bottom-color: #d1d5db;
}

.tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* ── Table ───────────────────────────────────────────────── */

.table-header {
    padding: 0.625rem 0.75rem;
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.table-cell {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    vertical-align: middle;
}

/* ── Status Badges ───────────────────────────────────────── */

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    border: 1px solid;
    white-space: nowrap;
    line-height: 1.5;
}

.overall-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Tooltip ─────────────────────────────────────────────── */

.tooltip {
    position: fixed;
    z-index: 100;
    max-width: 420px;
    padding: 0.625rem 0.875rem;
    background: #1f2937;
    color: #f3f4f6;
    font-size: 0.8125rem;
    line-height: 1.5;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    transition: opacity 0.1s;
}

/* ── Status Cells ────────────────────────────────────────── */

.status-cell {
    cursor: help;
    display: inline-block;
}

.status-cell-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.375rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.15s;
}

.status-cell-mobile:active {
    background-color: #f3f4f6;
}

/* ── Detail Panel ────────────────────────────────────────── */

.detail-panel {
    border-top: 2px solid #e5e7eb;
    animation: slideDown 0.15s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Claude Code Box ─────────────────────────────────────── */

.claude-code-box {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 0.5rem;
    overflow: hidden;
}

.claude-code-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #7c3aed;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

.claude-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background: #7c3aed;
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    flex-shrink: 0;
}

.claude-prompt-text {
    background: white;
    border: 1px solid #e9d5ff;
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-size: 0.75rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 240px;
    overflow-y: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #374151;
}

.claude-prompt-text::-webkit-scrollbar {
    width: 6px;
}

.claude-prompt-text::-webkit-scrollbar-track {
    background: #f5f3ff;
}

.claude-prompt-text::-webkit-scrollbar-thumb {
    background: #c4b5fd;
    border-radius: 3px;
}

/* ── History Timeline ────────────────────────────────────── */

.timeline-block {
    flex: 1;
    height: 1.25rem;
    min-width: 3px;
    transition: opacity 0.15s;
}

.timeline-block:hover {
    opacity: 0.75;
}

/* ── Mobile Tooltip ──────────────────────────────────────── */

.mobile-tooltip {
    animation: slideUp 0.2s ease-out;
}

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

/* ── Refresh spinner ─────────────────────────────────────── */

.refresh-spinning svg {
    animation: spin 0.8s linear infinite;
}

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

/* ── Row hover ───────────────────────────────────────────── */

.repo-row {
    transition: background-color 0.1s;
}
