* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: #0d1117;
    color: #e5e7eb;
    transition: background 0.3s, color 0.3s;
}
body.light {
    background: #f4f6fb;
    color: #111827;
}

/* ── Header ─────────────────────────────────────────── */
.home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 60px;
    background: rgba(13,17,23,0.95);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(12px);
}
body.light .home-header {
    background: rgba(255,255,255,0.95);
    border-bottom-color: rgba(0,0,0,0.08);
}

.home-logo {
    display: flex; align-items: center; gap: 0.5rem;
}
.logo-icon { font-size: 1.75rem; color: #3b82f6; }
.logo-text {
    font-size: 1.15rem; font-weight: 700; letter-spacing: -0.5px;
    color: #93c5fd;
}
body.light .logo-text { color: #1d4ed8; }

.header-actions { display: flex; align-items: center; gap: 0.625rem; }

.btn-icon {
    width: 36px; height: 36px; border: none;
    background: transparent; border-radius: 8px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: #6b7280; transition: all 0.15s;
}
.btn-icon:hover { background: rgba(255,255,255,0.07); color: #e5e7eb; }
body.light .btn-icon:hover { background: rgba(0,0,0,0.06); color: #111827; }

.btn-new {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: #3b82f6; color: white;
    border: none; border-radius: 8px;
    font-size: 0.85rem; font-weight: 600;
    cursor: pointer; transition: all 0.18s;
    font-family: 'Inter', sans-serif;
}
.btn-new:hover { background: #2563eb; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59,130,246,0.4); }
.btn-new.large { padding: 0.65rem 1.5rem; font-size: 0.95rem; border-radius: 10px; }

/* ── Main ───────────────────────────────────────────── */
.home-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.section-header {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.section-title {
    font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: #6b7280;
}

/* ── Table ──────────────────────────────────────────── */
.boards-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}
body.light .boards-table { border-color: rgba(0,0,0,0.08); }

.boards-table thead tr {
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
body.light .boards-table thead tr {
    background: rgba(0,0,0,0.03);
    border-bottom-color: rgba(0,0,0,0.07);
}

.boards-table th {
    padding: 0.625rem 1rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6b7280;
    user-select: none;
    white-space: nowrap;
}
.boards-table th.col-name { width: 50%; }
.boards-table th.col-date { width: 25%; }

/* Row */
.board-row {
    background: #161b27;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}
body.light .board-row { background: #ffffff; border-bottom-color: rgba(0,0,0,0.06); }
.board-row:last-child { border-bottom: none; }
.board-row:hover { background: rgba(59,130,246,0.07); }
body.light .board-row:hover { background: rgba(59,130,246,0.05); }

.board-row td { padding: 0.75rem 1rem; vertical-align: middle; }

/* Name cell with mini thumbnail */
.cell-name {
    display: flex; align-items: center; gap: 0.875rem;
}
.row-thumb {
    width: 52px; height: 36px; flex-shrink: 0;
    border-radius: 6px;
    background: #0d1117;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
}
body.light .row-thumb { background: #f1f5f9; border-color: rgba(0,0,0,0.08); }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-thumb-icon { color: #374151; font-size: 1.1rem !important; }
body.light .row-thumb-icon { color: #d1d5db; }

.row-name {
    font-size: 0.9rem; font-weight: 500; color: #f1f5f9;
}
body.light .row-name { color: #111827; }

/* Date cells */
.cell-date {
    font-size: 0.8rem; color: #6b7280; white-space: nowrap;
}

/* Row actions (appear on hover) */
.row-actions {
    display: flex; align-items: center; justify-content: flex-end; gap: 0.25rem;
    opacity: 0; transition: opacity 0.15s;
}
.board-row:hover .row-actions { opacity: 1; }

.row-action-btn {
    width: 28px; height: 28px; border: none;
    border-radius: 6px; background: transparent;
    cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    color: #6b7280; transition: all 0.12s;
}
.row-action-btn:hover { background: rgba(255,255,255,0.08); color: #e5e7eb; }
.row-action-btn.delete:hover { background: rgba(239,68,68,0.15); color: #f87171; }
body.light .row-action-btn:hover { background: rgba(0,0,0,0.07); color: #111827; }
body.light .row-action-btn.delete:hover { background: rgba(239,68,68,0.1); color: #ef4444; }
.row-action-btn .material-symbols-outlined { font-size: 16px !important; }

/* ── Empty State ─────────────────────────────────────── */
.empty-state {
    text-align: center; padding: 6rem 2rem;
}
.empty-icon {
    width: 88px; height: 88px;
    background: rgba(59,130,246,0.1); border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem; color: #3b82f6;
}
body.light .empty-icon { background: rgba(59,130,246,0.08); }
.empty-state h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.4rem; color: #f1f5f9; }
body.light .empty-state h2 { color: #111827; }
.empty-state p { color: #6b7280; margin-bottom: 1.75rem; font-size: 0.95rem; }
