* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #2d3748;
    transition: background-color 0.4s ease;
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.back-button button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: #4a5568;
}

.back-button button:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.evaluation-container {
    display: flex;
    height: 100vh;
    gap: 0;
}

.calendar-section {
    width: 320px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    padding: 80px 24px 24px 24px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #4a5568;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.calendar-header button:hover {
    background: #edf2f7;
}

.calendar-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    letter-spacing: -0.5px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 30px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid transparent;
    padding: 4px;
}

.calendar-day:hover {
    background: #edf2f7;
    border-color: #e2e8f0;
}

.calendar-day.selected {
    background: #4299e1;
    color: white;
}

.calendar-day.other-month {
    color: #a0aec0;
}

.calendar-day.has-hours {
    background: #f0fff4;
    border-color: #48bb78;
}

.calendar-day.has-hours.selected {
    background: #4299e1;
    color: white;
}

.day-number {
    font-weight: 500;
}

.day-hours {
    font-size: 10px;
    color: #48bb78;
    font-weight: 600;
    margin-top: 2px;
}

.calendar-day.selected .day-hours {
    color: rgba(255, 255, 255, 0.8);
}

.stats-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
}

.stats-section h4 {
    margin-bottom: 16px;
    color: #718096;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.stat-item span:first-child {
    color: #4a5568;
}

.stat-item span:last-child {
    font-weight: 600;
    color: #1a202c;
}

.evaluation-section {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 40px 40px 40px;
    overflow-y: auto;
}

.evaluation-header {
    margin-bottom: 30px;
}

.evaluation-header h3 {
    font-size: 56px;
    font-weight: 300;
    color: white;
    letter-spacing: -2px;
    font-feature-settings: 'tnum';
    margin-bottom: 8px;
}

.evaluation-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hours-input-section,
.activities-section,
.progress-section,
.notes-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hours-input-section:hover,
.activities-section:hover,
.progress-section:hover,
.notes-section:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.hours-input-section h4,
.activities-section h4,
.progress-section h4,
.notes-section h4 {
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.activity-input-group input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.activity-input-group input[type="number"] {
    width: 80px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 14px;
    text-align: center;
    outline: none;
    transition: all 0.2s ease;
}

.activity-input-group input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.hours-label {
    color: #4a5568;
    font-weight: 500;
    font-size: 14px;
}

.activity-input-group button {
    background: #48bb78;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-input-group button:hover {
    background: #38a169;
    transform: translateY(-1px);
}

.activities-list {
    margin-bottom: 15px;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f7fafc;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: #edf2f7;
    transform: translateX(2px);
}

.activity-name {
    flex: 1;
    font-weight: 500;
    color: #2d3748;
}

.activity-hours {
    color: #48bb78;
    font-weight: 600;
    margin-right: 12px;
}

.delete-activity {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.delete-activity:hover {
    opacity: 1;
    background: #c53030;
    transform: scale(1.05);
}

.total-hours {
    color: #4a5568;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    padding: 12px;
    background: #e6fffa;
    border: 1px solid #48bb78;
    border-radius: 4px;
}

.total-hours span {
    color: #48bb78;
    font-size: 18px;
}

.week-progress {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.week-day {
    text-align: center;
    padding: 12px 8px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 12px;
}

.week-day.active {
    background: #e6fffa;
    border-color: #48bb78;
    color: #38a169;
}

.week-day-name {
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.week-day-hours {
    font-weight: 600;
    color: #48bb78;
}

.week-day-activities {
    font-size: 10px;
    color: #4a5568;
    margin-top: 2px;
    line-height: 1.2;
}

.notes-section textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    outline: none;
    transition: all 0.2s ease;
}

.notes-section textarea:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* Rimuovi le frecce dai campi numerici */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

@media (max-width: 768px) {
    .evaluation-container {
        flex-direction: column;
    }
    
    .calendar-section {
        width: 100%;
        height: 400px;
        padding: 60px 20px 20px 20px;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .evaluation-section {
        padding: 20px;
    }
    
    .evaluation-header h3 {
        font-size: 36px;
    }
    
    .week-progress {
        grid-template-columns: repeat(3, 1fr);
    }
}
