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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #000000;
    line-height: 1.5;
    font-weight: 300;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header {
    text-align: center;
    background: #ffffff;
    padding: 60px 30px;
    margin-bottom: 40px;
}

.header h1 {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #000000;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.header p {
    font-size: 1.1rem;
    color: #666666;
    margin-bottom: 32px;
    font-weight: 400;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.year-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.year-selector button {
    background: #ffffff;
    color: #444444;
    border: 1px solid #cccccc;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
}

.year-selector button:hover {
    border-color: #000000;
    color: #000000;
}

#current-year {
    font-size: 1.5rem;
    font-weight: 200;
    font-family: 'Inter', sans-serif;
    color: #000000;
    letter-spacing: -0.02em;
}

.mood-selector {
    background: #ffffff;
    padding: 24px 40px;
    margin-bottom: 40px;
    text-align: center;
}

.tracking-status {
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

.tracking-status.logged {
    background: #f0f8f0;
    color: #2d5a2d;
    border: 1px solid #c8e6c8;
}

.tracking-status.not-logged {
    background: #fef8f0;
    color: #8b4a00;
    border: 1px solid #f4d1a6;
}

.mood-note-container {
    margin-top: 20px;
    animation: fadeIn 0.3s ease-in;
}

.mood-note-container input {
    width: 100%;
    max-width: 400px;
    padding: 10px 15px;
    border: 1px solid #e5e5e5;
    background: #ffffff;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    color: #444444;
    transition: border-color 0.2s ease;
}

.mood-note-container input:focus {
    outline: none;
    border-color: #cccccc;
}

.mood-note-container input::placeholder {
    color: #aaaaaa;
    font-style: italic;
}

.mood-selector h3 {
    margin-bottom: 32px;
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.mood-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.mood-btn {
    background: transparent;
    border: none;
    padding: 8px;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Subtle desaturation with hint of color */
    filter: saturate(0.4) brightness(1.1);
}

.mood-btn:hover {
    transform: scale(1.1);
    filter: saturate(1) brightness(1);
}

.mood-btn.selected {
    transform: scale(1.2);
    filter: saturate(1) brightness(1) drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.clear-mood-btn {
    background: transparent;
    color: #999999;
    border: none;
    padding: 8px 16px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.15s ease;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.clear-mood-btn:hover {
    color: #000000;
    transform: translateY(-1px);
}

.clear-mood-btn.selected {
    color: #000000;
    font-weight: 500;
}

.calendar-container {
    background: #ffffff;
    padding: 60px 40px;
    margin-bottom: 80px;
}

.calendar-navigation {
    margin-bottom: 30px;
    text-align: center;
}

#back-to-year {
    background: transparent;
    border: none;
    color: #444444;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.2s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.025em;
}

#back-to-year:hover {
    color: #000000;
}

#month-view-title {
    font-size: 1.2rem;
    font-weight: 400;
    color: #000000;
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
}

.month-labels {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.month-label {
    font-weight: 300;
    color: #444444;
    padding: 8px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
}

.month-label:hover {
    color: #000000;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(52, 1fr);
    gap: 2px;
    max-width: 100%;
    overflow-x: auto;
    padding: 20px 0;
    background: #ffffff;
}

.calendar-grid.month-view {
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    max-width: 100%;
    overflow-x: visible;
    border: 1px solid #e8e8e8;
}

.day-cell {
    width: 18px;
    height: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border: 1px solid #d5d5d5;
    background: #f0f0f0;
}

.day-cell:hover {
    transform: scale(1.5);
    z-index: 100;
    border-color: #cccccc;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.day-cell.has-mood {
    font-size: 0.8rem;
    border-color: #cccccc;
    background: #ffffff;
    /* Subtle desaturation to match mood buttons */
    filter: saturate(0.4) brightness(1.1);
}

.day-cell.selected {
    border-color: #000000;
    background: #f0f0f0;
    transform: scale(1.3);
}

.day-cell.today {
    border: 1px solid #8B0000;
    background: #8B0000;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(139, 0, 0, 0.4);
}

.day-cell.today:hover {
    background: #A52A2A;
    border-color: #A52A2A;
    color: #ffffff;
}

.day-label {
    width: auto;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: #444444;
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
}

.month-day {
    width: auto;
    height: 60px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 5px;
    font-size: 0.9rem;
    font-weight: 400;
}

.month-day.has-mood {
    background: #f5f5f5;
}

.day-mood {
    font-size: 1.5rem;
    margin-top: 5px;
    filter: saturate(0.4) brightness(1.1);
    transition: filter 0.3s ease;
}

.month-day:hover {
    transform: none;
    background: #f0f0f0;
    box-shadow: none;
}

.month-day:hover .day-mood {
    filter: saturate(1) brightness(1);
}

.month-day.selected {
    background: #e8e8e8;
    border-color: #000000;
    transform: none;
}

.summary-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: #ffffff;
    padding: 40px;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
}

.summary-card:hover {
    border-color: #cccccc;
}

.summary-card h3 {
    color: #000000;
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.summary-content {
    line-height: 1.5;
    color: #444444;
    font-weight: 300;
    /* Consistent emoji styling */
    filter: saturate(0.4) brightness(1.1);
    transition: filter 0.3s ease;
}

.summary-card:hover .summary-content {
    filter: saturate(1) brightness(1);
}

.mood-distribution {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.mood-count {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    font-size: 0.85rem;
    font-weight: 300;
    /* Consistent emoji styling */
    filter: saturate(0.4) brightness(1.1);
    transition: filter 0.3s ease;
}

.mood-count:hover {
    filter: saturate(1) brightness(1);
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #ffffff;
    padding: 40px;
    text-align: center;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: #cccccc;
}

.stat-card h4 {
    color: #444444;
    margin-bottom: 16px;
    font-size: 0.8rem;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.stat-card span {
    font-size: 2rem;
    font-weight: 200;
    color: #000000;
    font-family: 'Inter', sans-serif;
    display: block;
    letter-spacing: -0.02em;
    /* Consistent emoji styling */
    filter: saturate(0.4) brightness(1.1);
    transition: filter 0.3s ease;
}

.stat-card:hover span {
    filter: saturate(1) brightness(1);
}

.data-section {
    background: #ffffff;
    padding: 30px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
    margin-top: 40px;
}

.data-section h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #000000;
    margin-bottom: 20px;
}

.data-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.data-btn {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    color: #000000;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 400;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.data-btn:hover {
    background: #f8f8f8;
    border-color: #d0d0d0;
    transform: translateY(-1px);
}

.data-btn:active {
    transform: translateY(0);
}

.data-note {
    font-size: 0.8rem;
    color: #888888;
    margin: 0;
    font-weight: 300;
}

.insights-section {
    background: #ffffff;
    padding: 40px;
    margin-bottom: 40px;
    border-top: 1px solid #e5e5e5;
}

.insights-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.insights-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #000000;
    margin-bottom: 20px;
}

.insights-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #444444;
    font-weight: 300;
    /* Consistent emoji styling */
    filter: saturate(0.4) brightness(1.1);
    transition: filter 0.3s ease;
}

.insights-card:hover .insights-content {
    filter: saturate(1) brightness(1);
}

.privacy-footer {
    text-align: center;
    margin-top: 80px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.privacy-footer p {
    font-size: 0.75rem;
    color: #aaaaaa;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    margin: 0;
    opacity: 0.8;
}

.insights-content p {
    margin-bottom: 12px;
}

.insights-content p:last-child {
    margin-bottom: 0;
}

/* Enhanced Mobile Support */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .header h1 {
        font-size: 2.2rem;
        margin-bottom: 16px;
    }
    
    .header p {
        margin-bottom: 20px;
    }
    
    .mood-selector {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .calendar-container {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(26, 1fr);
        gap: 2px;
        padding: 15px 0;
    }
    
    .day-cell {
        width: 14px;
        height: 14px;
    }
    
    .mood-options {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .mood-btn {
        font-size: 1.8rem;
        padding: 8px;
    }
    
    .month-labels {
        grid-template-columns: repeat(6, 1fr);
        gap: 5px;
        font-size: 0.75rem;
        margin-bottom: 15px;
    }
    
    .summary-section {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .summary-card {
        padding: 25px;
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .stat-card {
        padding: 25px;
    }
    
    .data-section {
        padding: 25px;
        margin-top: 20px;
    }
    
    .data-controls {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        margin-bottom: 10px;
    }
    
    .data-btn {
        width: 200px;
        max-width: 100%;
    }

    .privacy-footer {
        margin-top: 60px;
        margin-bottom: 30px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    .header {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .header h1 {
        margin-bottom: 8px;
    }
    
    .header p {
        margin-bottom: 15px;
    }
    
    .mood-selector {
        padding: 18px;
        margin-bottom: 25px;
    }
    
    .calendar-container {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 1px;
        padding: 10px 0;
    }
    
    .day-cell {
        width: 12px;
        height: 12px;
        font-size: 0.6rem;
    }
    
    .mood-btn {
        font-size: 1.5rem;
        padding: 6px;
    }
    
    .month-labels {
        grid-template-columns: repeat(4, 1fr);
        font-size: 0.7rem;
        margin-bottom: 10px;
    }
    
    .summary-section {
        margin-bottom: 20px;
        gap: 15px;
    }
    
    .summary-card {
        padding: 20px;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
        margin-bottom: 20px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .data-section {
        padding: 20px;
        margin-top: 15px;
    }
    
    .month-day {
        height: 50px;
        font-size: 0.8rem;
    }
    
    .day-mood {
        font-size: 1.2rem;
    }

    .insights-section {
        padding: 25px 20px;
    }

    .tracking-status {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .mood-note-container input {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .data-controls {
        flex-direction: column;
        gap: 12px;
    }

    .data-section {
        padding: 20px;
    }

    .privacy-footer {
        margin-top: 50px;
        margin-bottom: 25px;
        padding: 0 12px;
    }

    .privacy-footer p {
        font-size: 0.7rem;
    }
}

/* Minimal animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

.summary-card, .stat-card {
    animation: fadeIn 0.4s ease-out;
}

/* Tooltip styles - positioned below calendar cells */
.day-cell[title]:hover::after {
    content: attr(title);
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #000000;
    color: #ffffff;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
    pointer-events: none;
}

.day-cell[title]:hover::before {
    content: '';
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-bottom-color: #000000;
    z-index: 1000;
    pointer-events: none;
}