:root {
    --bg-primary: #111827;
    --bg-secondary: #1F2937;
    --bg-tertiary: #374151;
    --bg-tertiary-hover: #4B5563;
    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --border-color: #4B5563;
}

[data-theme="light"] {
    --bg-primary: #F9FAFB;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #E5E7EB;
    --bg-tertiary-hover: #D1D5DB;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
    --border-color: #D1D5DB;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
}
.bingo-cell {
    background-color: var(--bg-tertiary);
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 0.75rem;
    line-height: 1.1;
    word-break: break-word;
    hyphens: auto;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.bingo-cell:hover { background-color: var(--bg-tertiary-hover); transform: translateY(-2px); }
.bingo-cell.sortable-ghost { background: var(--bg-tertiary-hover); opacity: 0.5; }
.bingo-cell.sortable-chosen { cursor: grabbing; }
@media (min-width: 640px) { .bingo-cell { font-size: 0.875rem; padding: 0.5rem; } }
.bingo-cell.completed { background-color: #22c55e; color: #ffffff; }
.bingo-cell.completed .goal-text { text-decoration: line-through; text-decoration-thickness: 2px; }
.bingo-cell.completed:hover { background-color: #16a34a; }
.bingo-cell.completed .date-text { color: #d1fae5; }
.bingo-cell img { width: 100%; height: 100%; object-fit: cover; }
.modal-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex; align-items: center; justify-content: center;
    z-index: 50; backdrop-filter: blur(4px);
}
.modal-content { background-color: var(--bg-secondary); padding: 2rem; border-radius: 0.75rem; width: 90%; max-width: 500px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
input, textarea, .bg-input { background-color: var(--bg-tertiary); border: 1px solid var(--border-color); color: var(--text-primary); }
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

[data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="light"] input[type="time"]::-webkit-calendar-picker-indicator {
    filter: none;
}

#boards-count-badge {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background-color: #3b82f6; /* blue-500 */
    color: white;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: bold;
    height: 1.5rem;
    width: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 0 0 2px var(--bg-primary);
}