/* Mood Note Section */
.mood-note-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(92, 124, 250, 0.15);
}

.mood-note-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 8px;
}

.mood-note-input {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    color: #1E293B;
    background: #F5F7FB;
    border: 2px solid rgba(92, 124, 250, 0.15);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.mood-note-input:focus {
    outline: none;
    border-color: #5C7CFA;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(92, 124, 250, 0.1);
}

.mood-note-input::placeholder {
    color: rgba(30, 41, 59, 0.4);
}

.mood-note-hint {
    font-size: 12px;
    color: rgba(30, 41, 59, 0.5);
    margin-top: 6px;
    font-style: italic;
}

/* Mood History Stats */
.mood-history-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.mood-stat-card {
    padding: 16px;
    background: linear-gradient(135deg, rgba(92, 124, 250, 0.05) 0%, rgba(92, 124, 250, 0.02) 100%);
    border: 1px solid rgba(92, 124, 250, 0.15);
    border-radius: 12px;
    text-align: center;
}

.mood-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #5C7CFA;
    margin-bottom: 4px;
}

.mood-stat-label {
    display: block;
    font-size: 13px;
    color: rgba(30, 41, 59, 0.6);
    font-weight: 500;
}

/* Mood History List */
.mood-history-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.mood-history-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: #F5F7FB;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.mood-history-item:hover {
    background: #FFFFFF;
    border-color: rgba(92, 124, 250, 0.2);
    box-shadow: 0 2px 8px rgba(92, 124, 250, 0.08);
}

.mood-history-emoji {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.mood-history-content {
    flex: 1;
    min-width: 0;
}

.mood-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.mood-history-name {
    font-weight: 600;
    color: #1E293B;
    font-size: 15px;
}

.mood-history-date {
    font-size: 13px;
    color: rgba(30, 41, 59, 0.5);
    white-space: nowrap;
}

.mood-history-note {
    font-size: 14px;
    color: rgba(30, 41, 59, 0.7);
    line-height: 1.5;
    margin-top: 6px;
    font-style: italic;
}

.mood-history-no-note {
    font-size: 13px;
    color: rgba(30, 41, 59, 0.4);
    font-style: italic;
}

/* Mood Chart */
#mood-chart-container {
    background: #F5F7FB;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(92, 124, 250, 0.15);
}

/* Scrollbar styling for mood history list */
.mood-history-list::-webkit-scrollbar {
    width: 6px;
}

.mood-history-list::-webkit-scrollbar-track {
    background: #F5F7FB;
    border-radius: 3px;
}

.mood-history-list::-webkit-scrollbar-thumb {
    background: rgba(92, 124, 250, 0.3);
    border-radius: 3px;
}

.mood-history-list::-webkit-scrollbar-thumb:hover {
    background: rgba(92, 124, 250, 0.5);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .mood-history-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mood-history-item {
        gap: 12px;
        padding: 12px;
    }
    
    .mood-history-emoji {
        font-size: 28px;
    }
    
    .mood-history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .mood-note-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

