#moods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 10px;
}

#moods .mood-container {
    padding: 0;
    margin: 0;
}

.mood-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.mood-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--card-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mood-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.mood-emoji {
    font-size: 2.5rem;
    line-height: 1;
}

.mood-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mood-emotion {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    text-transform: capitalize;
}

.mood-tag {
    font-size: 0.85rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
}

.mood-intensity {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #475569;
    text-transform: capitalize;
}

.intensity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--card-color);
}

.mood-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

.mood-notes {
    font-size: 0.95rem;
    color: #334155;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    line-height: 1.4;
}

.mood-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.stat-card {
    background: linear-gradient(135deg, #02b6fd 0%, #0891b2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(2, 182, 253, 0.3);
}

.stat-card.streak {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.quick-log-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
}

.quick-log-section h3 {
    margin: 0 0 10px 0;
    color: #1e293b;
}

.quick-log-section p {
    margin: 0 0 15px 0;
    color: #64748b;
}

.emoji-picker {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.emoji-btn {
    font-size: 2rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.emoji-btn:hover {
    transform: scale(1.15);
    border-color: #02b6fd;
    box-shadow: 0 4px 12px rgba(2, 182, 253, 0.2);
}

.filter-section {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
}

.filter-section h3 {
    margin: 0 0 15px 0;
    color: #1e293b;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-field {
    flex: 1;
    min-width: 150px;
}

.filter-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
}

.filter-field input,
.filter-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-primary {
    background: #02b6fd;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary:hover {
    background: #0891b2;
}

.btn-secondary {
    background: #e2e8f0;
    color: #475569;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.section-header h2 {
    margin: 0;
    color: #1e293b;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #64748b;
    background: #f8fafc;
    border-radius: 12px;
    width: 100%;
}

.empty-state p {
    margin: 0;
    font-size: 1.1rem;
}

.moods_container {
    margin: 20px auto;
    max-width: 1100px;
    padding: 0 20px;
}

.mood-show-container {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.mood-show-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    overflow: hidden;
}

.mood-show-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.mood-show-emoji {
    font-size: 5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.mood-show-title h1 {
    margin: 0 0 8px 0;
    font-size: 2.5rem;
    color: #1e293b;
    text-transform: capitalize;
}

.mood-show-intensity {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: capitalize;
}

.intensity-dot-large {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mood-show-meta {
    display: flex;
    gap: 30px;
    padding: 24px 40px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.meta-value {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 500;
}

.tag-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.mood-show-notes {
    padding: 32px 40px;
    background: #fafbfc;
}

.mood-show-notes h3 {
    margin: 0 0 12px 0;
    color: #1e293b;
    font-size: 1.1rem;
}

.mood-show-notes p {
    margin: 0;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

.mood-show-notes.empty {
    color: #94a3b8;
    font-style: italic;
}

.mood-show-actions {
    padding: 24px 40px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid #e2e8f0;
}

.btn-edit {
    background: #02b6fd;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-edit:hover {
    background: #0891b2;
    transform: translateY(-2px);
}

.btn-back {
    background: #e2e8f0;
    color: #475569;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: #cbd5e1;
}

.btn-delete {
    background: #fee2e2;
    color: #dc2626;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.btn-delete:hover {
    background: #fecaca;
}