:root {
    --primary: #007bff;
    --active: #28a745;
    --bg: #f4f4f9;
}

body { font-family: sans-serif; background: var(--bg); margin: 0; padding: 20px; }

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

button {
    padding: 20px;
    border: 2px solid var(--primary);
    background: white;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    border-radius: 8px;
}

/* The "Only one pressed" visual state */
button.active {
    background: var(--active);
    color: white;
    border-color: #1e7e34;
    transform: scale(0.98);
}
.task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.task-row.active {
    background: #e8f5e9;
}

.task-row {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.task-name {
    flex-grow: 1;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px;
}

.task-checkbox {
    width: 25px;
    height: 25px;
    cursor: pointer;
}

/* Form styling */
#add-task-form {
    display: flex;
    gap: 10px;
}

#task-name {
    flex-grow: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}
.status-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 1000;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc; /* Default */
}

/* State Colors */
.status-synced .status-dot  { background: #28a745; }
.status-syncing .status-dot { background: #ffc107; }
.status-offline .status-dot { background: #dc3545; }