/* Styles pour l'espace Score du Jour */

.daily-summary {
    margin-bottom: 30px;
}

.summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.summary-item {
    text-align: center;
}

.summary-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.summary-label {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.summary-detail {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 3px;
}

.date-display {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-top: 15px;
    font-weight: 500;
}

.daily-habits-list {
    display: grid;
    gap: 12px;
}

.daily-habit-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
}

.daily-habit-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.daily-habit-item.validated {
    background: #f0fdf4;
    border: 1px solid #86efac;
}

/* Checkbox personnalisée */
.checkbox-container {
    position: relative;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    display: block;
    height: 28px;
    width: 28px;
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s;
}

.checkbox-container:hover .checkmark {
    border-color: #667eea;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #667eea;
    border-color: #667eea;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 9px;
    top: 5px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.daily-habit-content {
    flex: 1;
    min-width: 0;
}

.daily-habit-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    padding-left: 12px;
}

.daily-habit-description {
    font-size: 14px;
    color: #7f8c8d;
    padding-left: 12px;
}

.daily-habit-points {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    flex-shrink: 0;
}

/* Barre de progression du bonus */
.bonus-progress {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    padding-left: 12px;
}

.bonus-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    max-width: 200px;
}

.bonus-fill {
    height: 100%;
    background: linear-gradient(90deg, #f39c12, #e74c3c);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.bonus-progress.awarded .bonus-fill {
    background: #27ae60;
}

.bonus-text {
    font-size: 11px;
    color: #6c757d;
}

.bonus-progress.awarded .bonus-text {
    color: #27ae60;
    font-weight: 600;
}

/* Options de bonus quotidien */
.daily-bonus-options {
    margin-top: 10px;
    padding-left: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.daily-bonus-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.daily-bonus-radios {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bonus-radio {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 16px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.bonus-radio:hover:not(.selected) {
    border-color: #667eea;
    background: #f0f3ff;
}

.bonus-radio.selected {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.bonus-radio input[type="radio"] {
    display: none;
}

.bonus-radio input:disabled + span {
    cursor: default;
}

/* Points bonus gagnes */
.daily-bonus-earned {
    display: block;
    font-size: 14px;
    color: #27ae60;
    font-weight: 600;
}

/* Etat valide pour les options bonus */
.daily-habit-item.validated .daily-bonus-options {
    opacity: 0.7;
}

.daily-habit-item.validated .bonus-radio {
    cursor: default;
}

/* Responsive */
@media (max-width: 600px) {
    .summary-card {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .summary-value {
        font-size: 28px;
    }

    .daily-habit-item {
        padding: 15px;
    }

    .daily-habit-name {
        font-size: 15px;
    }
}
