:root {
    --primary-color: #6c5ce7;
    --primary-light: #a29bfe;
    --secondary-color: #00b894;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-color: #2d3436;
    --text-muted: #636e72;
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.app-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.app-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.nav-pills {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nav-pills .nav-link {
    border: none;
    border-radius: 12px;
    color: var(--text-muted);
    padding: 10px 8px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nav-pills .nav-link.active {
    background: var(--primary-color);
    color: white;
}

.nav-icon {
    font-size: 1.3rem;
}

.nav-text {
    font-size: 0.7rem;
    font-weight: 500;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    background: var(--card-background);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.daily-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
}

.daily-card .content-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.daily-card .card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.daily-card .card-text {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
}

.daily-card .category-tag {
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

.mood-selector {
    display: flex;
    justify-content: space-around;
    margin-bottom: 8px;
}

.mood-btn {
    font-size: 2.2rem;
    background: none;
    border: 3px solid transparent;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    transition: var(--transition);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mood-btn:hover {
    transform: scale(1.1);
    background: var(--background-color);
}

.mood-btn.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: scale(1.1);
}

.mood-labels {
    display: flex;
    justify-content: space-around;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
}

.mood-labels span {
    flex: 1;
}

.response-card {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #55efc4 100%);
    color: white;
}

.response-text {
    margin: 0;
    line-height: 1.6;
}

.mood-history {
    max-height: 200px;
    overflow-y: auto;
}

.mood-history-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--background-color);
}

.mood-history-item:last-child {
    border-bottom: none;
}

.mood-history-item .mood-emoji {
    font-size: 1.5rem;
    margin-right: 12px;
}

.mood-history-item .mood-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.reflection-prompts {
    background: var(--background-color);
    padding: 15px;
    border-radius: 12px;
}

.reflection-prompts p {
    font-weight: 600;
    margin-bottom: 8px;
}

.reflection-prompts ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-muted);
}

.reflection-prompts li {
    margin-bottom: 4px;
}

.reflection-history-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--background-color);
}

.reflection-history-item:last-child {
    border-bottom: none;
}

.reflection-week {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.reflection-content {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 4px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.setting-info h5 {
    margin-bottom: 4px;
}

.form-switch .form-check-input {
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.form-switch .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.about-section {
    padding-top: 15px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #5f4fd6;
    border-color: #5f4fd6;
}

.btn-primary:disabled {
    background-color: #b8b8b8;
    border-color: #b8b8b8;
}

.form-control {
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    padding: 12px 16px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

textarea.form-control {
    resize: none;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}
