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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1em;
}

.date-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.nav-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: #2980b9;
}

.date-input {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
}

.reflection-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.questions-container {
    margin-bottom: 30px;
}

.question-item {
    margin-bottom: 25px;
}

.question-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.question-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s;
}

.question-input:focus {
    outline: none;
    border-color: #3498db;
}

.mood-section {
    text-align: center;
    margin-bottom: 30px;
}

.mood-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.mood-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.mood-icon {
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.3s;
    opacity: 0.5;
}

.mood-icon:hover {
    transform: scale(1.2);
}

.mood-icon.selected {
    opacity: 1;
    transform: scale(1.3);
}

.save-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    transition: background 0.3s;
}

.save-btn:hover {
    background: #229954;
}

.stats-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.stats-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

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

.stat-card {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-card h3 {
    color: #7f8c8d;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #3498db;
}

.insights-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.insights-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

.recent-entries {
    max-height: 400px;
    overflow-y: auto;
}

.entry-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.entry-date {
    font-weight: bold;
    color: #3498db;
    margin-bottom: 10px;
}

.entry-mood {
    font-size: 24px;
    margin-bottom: 10px;
}

.entry-content {
    color: #555;
}

.export-section {
    text-align: center;
    margin-bottom: 30px;
}

.export-btn, .import-btn {
    background: #9b59b6;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin: 0 10px;
    transition: background 0.3s;
}

.export-btn:hover, .import-btn:hover {
    background: #8e44ad;
}

footer {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .mood-selector {
        gap: 10px;
    }
    
    .mood-icon {
        font-size: 30px;
    }
}