/* === STILI PER LA SEZIONE CALORIE BRUCIATE === */

.calories-section {
    margin-bottom: 30px;
}

.calories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calories-header h2 {
    margin: 0;
    color: #4a5568;
    font-size: 24px;
}

.calories-toggle-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.calories-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--color-primary-200);
}

.calories-content {
    transition: all 0.3s ease;
}

.calories-content.hidden {
    display: none;
}

/* === FORM INSERIMENTO CALORIE === */

.calories-input-section {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.calories-input-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-500), var(--color-primary-600));
    animation: shimmer 3s infinite;
}

.calories-input-section h3 {
    margin: 0 0 15px 0;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 18px;
    font-weight: 700;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.calories-input-form {
    display: grid;
    grid-template-columns: auto 2fr auto;
    gap: 10px;
    align-items: center;
}

.calories-input-form input[type="date"] {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.calories-input-form input[type="number"] {
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: border-color 0.3s;
}

.calories-input-form input:focus {
    outline: none;
    border-color: #ff6b6b;
}

.calories-input-form button {
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.calories-input-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--color-primary-200);
}

/* === STATISTICHE CALORIE === */

.calories-stats-section {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.calories-stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-500), var(--color-primary-600));
    animation: shimmer 3s infinite;
}

.calories-stats-section h3 {
    margin: 0 0 20px 0;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 18px;
    font-weight: 700;
}

.calories-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.calories-stat-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.calories-stat-card:hover {
    border-color: var(--color-primary-500);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--color-primary-200);
}

.calories-stat-card.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.calories-stat-card.clickable:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--color-primary-200);
    border-color: var(--color-primary-500);
}



.calories-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

/* Colori per obiettivo raggiunto */
.calories-stat-card.goal-reached .stat-value {
    color: #48bb78;
}

.calories-stat-card.goal-exceeded .stat-value {
    color: #38a169;
}

/* Hint per box cliccabile */
.goal-hint {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.calories-stat-card.clickable:hover .goal-hint {
    opacity: 1;
}

.calories-stat-card h4 {
    margin: 0 0 8px 0;
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calories-stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 3px;
}

.calories-stat-card .stat-unit {
    font-size: 0.9rem;
    color: #718096;
}

.calories-stat-card .stat-total {
    font-size: 0.8rem;
    color: #a0aec0;
    margin-top: 4px;
    font-weight: normal;
}

/* === GRAFICO CALORIE === */

.calories-chart-section {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.calories-chart-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-500), var(--color-primary-600));
    animation: shimmer 3s infinite;
}

.calories-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calories-chart-header h3 {
    margin: 0;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 18px;
    font-weight: 700;
}

.calories-chart-granularity-wrapper {
    position: relative;
}

.calories-chart-granularity-bubble {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.calories-chart-granularity-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.calories-chart-granularity-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: var(--z-sticky);
    min-width: 200px;
    margin-top: 5px;
}

.calories-chart-granularity-dropdown.hidden {
    display: none;
}

.calories-chart-granularity-dropdown .dropdown-option {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
    transition: background 0.3s;
}

.calories-chart-granularity-dropdown .dropdown-option:hover {
    background: #f7fafc;
}

.calories-chart-granularity-dropdown .dropdown-option:first-child {
    border-radius: 8px 8px 0 0;
}

.calories-chart-granularity-dropdown .dropdown-option:last-child {
    border-radius: 0 0 8px 8px;
}

.calories-chart-container {
    position: relative;
    height: 300px;
}

/* === INSIGHT CALORIE === */

.calories-insights-section {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.calories-insights-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-500), var(--color-primary-600));
    animation: shimmer 3s infinite;
}

.calories-insights-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calories-insights-header h3 {
    margin: 0;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 18px;
    font-weight: 700;
}

.calories-insights-toggle-btn {
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.calories-insights-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--color-primary-200);
}

.calories-insights-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.calories-insight-item {
    position: relative;
    padding: 20px;
    border-radius: 12px;
    border-left: 6px solid;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 252, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.calories-insight-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: inherit;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calories-insight-item:hover {
    transform: translateY(-4px) translateX(4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.calories-insight-item:hover::before {
    width: 8px;
}

.calories-insight-item.positive {
    border-left-color: #48bb78;
}

.calories-insight-item.positive::before {
    background: linear-gradient(180deg, #48bb78 0%, #38a169 100%);
}

.calories-insight-item.negative {
    border-left-color: #f56565;
}

.calories-insight-item.negative::before {
    background: linear-gradient(180deg, #f56565 0%, #e53e3e 100%);
}

.calories-insight-item.neutral {
    border-left-color: var(--color-primary-400);
}

.calories-insight-item.neutral::before {
    background: linear-gradient(180deg, var(--color-primary-400), var(--color-primary-500));
}

.calories-insight-item h4 {
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
}

.calories-insight-item p {
    margin: 0;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.calories-advanced-insights-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.calories-advanced-insights-container.hidden {
    display: none;
}

/* === STORICO CALORIE === */

.calories-history-section {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.calories-history-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-500), var(--color-primary-600));
    animation: shimmer 3s infinite;
}

.calories-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calories-history-header h3 {
    margin: 0;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 18px;
    font-weight: 700;
}

.calories-history-buttons {
    display: flex;
    gap: 10px;
}

.calories-history-toggle-btn {
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.calories-history-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--color-primary-200);
}

.calories-history-content {
    transition: all 0.3s ease;
}

.calories-history-content.hidden {
    display: none;
}

.calories-history-list {
    max-height: 400px;
    overflow-y: auto;
}

.calories-history-list::-webkit-scrollbar {
    width: 8px;
}

.calories-history-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.calories-history-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
    border-radius: 10px;
}

.calories-history-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--color-primary-600), var(--color-primary-700));
}

.calories-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f7fafc;
    transition: all 0.3s ease;
}

.calories-history-item:hover {
    background: #edf2f7;
    transform: translateX(5px);
}

.calories-history-item:last-child {
    margin-bottom: 0;
}

.calories-history-info {
    flex: 1;
}

.calories-history-date {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.calories-history-details {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #4a5568;
}

.calories-history-value {
    font-weight: bold;
    color: #e53e3e;
}

.calories-history-activity {
    font-style: italic;
}

.calories-history-actions {
    display: flex;
    gap: 5px;
}

.calories-history-actions button {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.edit-calories-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
    color: var(--color-primary-500);
}

.edit-calories-btn:hover {
    background: linear-gradient(135deg, #bee3f8 0%, #90cdf4 100%);
    opacity: 1;
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.delete-calories-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
    color: #e53e3e;
}

.delete-calories-btn:hover {
    background: linear-gradient(135deg, #fed7d7 0%, #fc8181 100%);
    opacity: 1;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

/* === RESPONSIVE === */

@media (max-width: 768px) {
    .calories-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .calories-input-form {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .calories-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .calories-chart-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .calories-history-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .calories-history-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .calories-history-details {
        justify-content: center;
    }
    
    .calories-insights-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* === ANIMAZIONI === */

@keyframes caloriesPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.calories-stat-card.updated {
    animation: caloriesPulse 0.6s ease-in-out;
}

.calories-success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: var(--z-overlay);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* === SEZIONE CALORIE TARGET PER PESO DESIDERATO === */
.calories-target-section {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--color-primary-200);
}

.calories-target-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
}

.calories-target-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.calories-target-header .calories-icon {
    font-size: 2rem;
}

.calories-target-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 600;
}

.calories-target-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calories-target-main {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
}

.calories-target-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-primary-500);
    margin-bottom: 8px;
}

.calories-target-description {
    font-size: 0.95rem;
    color: #718096;
}

.calories-target-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.calories-target-detail-item {
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary-500);
}

.calories-target-detail-item h4 {
    margin: 0 0 8px 0;
    color: #4a5568;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.calories-target-detail-item .detail-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2d3748;
}

.calories-target-detail-item .detail-unit {
    font-size: 0.85rem;
    color: #a0aec0;
    margin-left: 4px;
}

.calories-target-detail-item.positive {
    border-left-color: #48bb78;
}

.calories-target-detail-item.positive .detail-value {
    color: #48bb78;
}

.calories-target-detail-item.negative {
    border-left-color: #f56565;
}

.calories-target-detail-item.negative .detail-value {
    color: #f56565;
}

.calories-target-detail-item.neutral {
    border-left-color: #ed8936;
}

.calories-target-detail-item.neutral .detail-value {
    color: #ed8936;
}

/* Responsive */
@media (max-width: 768px) {
    .calories-target-details {
        grid-template-columns: 1fr;
    }
    
    .calories-target-value {
        font-size: 2rem;
    }
}

/*
 === TOGGLE MODALITÀ INSERIMENTO === */

.calories-input-mode-toggle {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 10px;
    background: #f7fafc;
    border-radius: 8px;
}

.toggle-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-option:hover {
    border-color: var(--color-primary-500);
    background: #f0f4ff;
}

.toggle-option input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.toggle-option input[type="radio"]:checked + span {
    color: var(--color-primary-500);
    font-weight: 600;
}

.toggle-option:has(input[type="radio"]:checked) {
    border-color: var(--color-primary-500);
    background: #f0f4ff;
}

/* === MODALITÀ INSERIMENTO === */

.calories-input-mode-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.calories-input-mode-content.hidden {
    display: none;
}

#calories-split-mode input {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

#calories-split-mode input:focus {
    outline: none;
    border-color: var(--color-primary-500);
    box-shadow: 0 0 0 3px var(--color-primary-100);
}

.calories-split-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f0f4ff;
    border-radius: 8px;
    border: 2px solid var(--color-primary-500);
}

.calories-split-total span {
    color: #4a5568;
    font-size: 14px;
}

.calories-split-total strong {
    color: var(--color-primary-500);
    font-size: 18px;
    font-weight: 600;
}


/* === BREAKDOWN CALORIE NELLO STORICO === */

.calories-breakdown {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    font-size: 13px;
}

.calories-rest,
.calories-activity {
    padding: 4px 8px;
    background: #f7fafc;
    border-radius: 4px;
    color: #4a5568;
}

.calories-rest {
    border-left: 3px solid var(--color-primary-500);
}

.calories-activity {
    border-left: 3px solid #48bb78;
}


/* === MODAL CALORIE === */

.calories-modal {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calories-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.calories-modal .modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #2d3748;
    font-weight: 600;
}

.calories-modal .close-modal {
    background: none;
    border: none;
    font-size: 28px;
    color: #a0aec0;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.calories-modal .close-modal:hover {
    background: #f7fafc;
    color: #4a5568;
}

.calories-modal .modal-content {
    padding: 24px;
}

.calories-modal .modal-description {
    color: #718096;
    margin-bottom: 20px;
    font-size: 14px;
}

.calories-modal .form-group {
    margin-bottom: 20px;
}

.calories-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
    font-size: 14px;
}

.calories-modal .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.calories-modal .form-group input:focus {
    outline: none;
    border-color: var(--color-primary-500);
    box-shadow: 0 0 0 3px var(--color-primary-100);
}

.calories-modal .form-hint {
    display: block;
    margin-top: 6px;
    color: #a0aec0;
    font-size: 12px;
}

.calories-modal .modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.calories-modal .cancel-btn,
.calories-modal .save-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.calories-modal .cancel-btn {
    background: #f7fafc;
    color: #4a5568;
}

.calories-modal .cancel-btn:hover {
    background: #edf2f7;
}

.calories-modal .save-btn {
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
    color: white;
}

.calories-modal .save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--color-primary-200);
}

.toggle-mode-btn {
    width: 100%;
    padding: 10px;
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    color: var(--color-primary-500);
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.toggle-mode-btn:hover {
    background: #edf2f7;
    border-color: var(--color-primary-500);
}

#edit-calories-date {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
}
