body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: background-color 0.2s, color 0.2s;
}

.card {
    border-radius: 12px;
    border: 1px solid var(--bs-border-color);
}

.card.border-success {
    border-width: 2px;
}

.btn {
    border-radius: 8px;
}

.navbar-brand {
    font-weight: 700;
}

/* Календарь */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-grid .weekday {
    text-align: center;
    font-weight: 600;
    color: var(--bs-secondary-color);
    padding: 8px 0;
    font-size: 0.9rem;
}

.day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 500;
    background: var(--bs-secondary-bg);
    color: var(--bs-secondary-color);
    transition: transform 0.1s;
}

.day-cell.empty { background: transparent; }

.day-cell.done {
    background: #22c55e;
    color: white;
    font-weight: 700;
}

.day-cell.today {
    box-shadow: 0 0 0 3px #3b82f6;
}

.day-cell:not(.empty):hover {
    transform: scale(1.05);
}

/* Достижения */
.achievement {
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    border: 2px solid var(--bs-border-color);
    transition: transform 0.15s;
}

.achievement.unlocked {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
    color: #78350f;
}

.achievement.locked {
    opacity: 0.4;
    filter: grayscale(1);
}

.achievement.unlocked:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

[data-bs-theme="dark"] .achievement.unlocked {
    background: linear-gradient(135deg, #78350f, #92400e);
    color: #fef3c7;
}

/* Кнопки */
.btn-outline-primary, .btn-outline-secondary, .btn-outline-danger {
    border-radius: 8px;
}

/* Адаптив для мобильных */
@media (max-width: 576px) {
    .calendar-grid { gap: 4px; }
    .day-cell { font-size: 0.8rem; border-radius: 8px; }
    .calendar-grid .weekday { font-size: 0.75rem; }
}