/* ===== CSS VARIABLES & THEMING ===== */
:root {
    --primary: #1B4D3E;
    --primary-light: #2A7F6F;
    --accent: #D4A574;
    --accent-light: #E8C4A0;
    --bg-light: #F8F9F7;
    --bg-card: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', sans-serif;
    background: linear-gradient(135deg, #0F3028 0%, #1B4D3E 50%, #0F3028 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(42, 127, 111, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(212, 165, 116, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

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

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Login Screen */
.login-screen {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    background: linear-gradient(135deg, #0F3028 0%, #1B4D3E 100%);
}

.login-card {
    width: 100%;
    max-width: 450px;
    background: var(--bg-card);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    animation: slideInDown 0.6s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 50px;
}

.logo-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.logo-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.welcome-text {
    text-align: center;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-input, .form-textarea, .filter-input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg-light);
    transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .filter-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(27, 77, 62, 0.1);
    transform: translateY(-1px);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
.btn {
    padding: 13px 24px;
    border: none;
    border-radius: 10px;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(27, 77, 62, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 77, 62, 0.4);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-1px);
}

.btn-danger {
    background: #FEE2E2;
    color: var(--danger);
    border: 1.5px solid #FECACA;
}

.btn-danger:hover {
    background: #FECACA;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.btn-icon:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

.btn-large {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    margin-top: 20px;
}

.btn-icon-small {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.btn-icon-small:hover {
    background: rgba(0,0,0,0.05);
    transform: rotate(30deg);
}

/* Header */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 40px;
    margin: -20px -20px 40px -20px;
    animation: slideInDown 0.6s ease-out 0.1s both;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

.header-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.greeting {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.location-date {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Quote Card */
.quote-card {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
    backdrop-filter: blur(10px);
}

#daily-quote {
    margin: 0;
    font-weight: 500;
}

/* Reminder Settings */
.reminder-settings-card {
    background: linear-gradient(135deg, #EFF6FF 0%, #F0FDF4 100%);
    border: 1.5px solid #BFDBFE;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 40px;
    animation: fadeIn 0.4s ease-out;
}

.reminder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--primary);
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.reminder-time-select {
    margin-left: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.reminder-time-select input {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Sora', sans-serif;
}

.notification-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 5px;
    text-align: center;
}

/* Work Time Suggestion Card */
.work-time-suggestion-card {
    background: linear-gradient(135deg, #1B4D3E 0%, #2A7F6F 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 40px;
    animation: fadeIn 0.5s ease-out;
}

.work-time-suggestion-card h4 {
    margin-bottom: 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.work-time-suggestion-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.95;
    white-space: pre-line;
}

/* Planning Form */
.planning-form {
    padding: 0 40px 40px 40px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    margin-top: 0;
    font-weight: 700;
}

.form-section {
    margin-bottom: 25px;
    animation: fadeIn 0.6s ease-out;
}

/* Mood Buttons */
.mood-container {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.mood-btn {
    flex: 1;
    padding: 16px 12px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-dark);
    font-weight: 600;
}

.mood-emoji { font-size: 1.8rem; }
.mood-text { font-size: 0.85rem; }

.mood-btn:hover {
    border-color: var(--primary);
    background: rgba(27, 77, 62, 0.05);
    transform: translateY(-2px);
}

.mood-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(27, 77, 62, 0.3);
}

/* Task List */
.task-input-group, .block-input-wrapper {
    display: flex;
    gap: 10px;
}

.task-list {
    list-style: none;
    margin-top: 15px;
}

.task-list li {
    background: var(--bg-light);
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
    animation: slideInLeft 0.4s ease-out;
}

.task-list li:hover {
    background: #EFEFED;
    transform: translateX(4px);
}

.delete-task {
    color: #EF4444;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    transition: var(--transition);
}

.delete-task:hover {
    color: #DC2626;
    transform: scale(1.2);
}

.time-input { max-width: 120px; }

/* Rating Slider */
.rating-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.range-slider {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(27, 77, 62, 0.3);
    transition: var(--transition);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.rating-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 50px;
    text-align: center;
}

.rating-max {
    color: var(--text-muted);
    font-weight: 600;
}

/* Summary Card */
.summary-card {
    background: linear-gradient(135deg, rgba(27, 77, 62, 0.05) 0%, rgba(212, 165, 116, 0.03) 100%);
    border: 1.5px solid var(--border-color);
    padding: 30px;
    border-radius: 16px;
    margin: 40px 0;
    animation: slideInUp 0.6s ease-out;
}

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

.summary-item {
    background: var(--bg-card);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.summary-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1.4;
}

.summary-blocks {
    background: var(--bg-card);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

/* Reflection Card */
.reflection-card {
    background: linear-gradient(135deg, #F0FDF4 0%, #FFFBEB 100%);
    border: 1.5px solid #D4EDDA;
    padding: 30px;
    border-radius: 16px;
    margin: 0 40px 40px 40px;
}

.lessons-list {
    list-style: none;
}

.lessons-list li {
    padding: 16px;
    margin-bottom: 12px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid var(--success);
    animation: fadeIn 0.6s ease-out;
}

.lessons-list strong {
    color: var(--primary);
    font-weight: 700;
}

/* History Screen */
.history-container {
    padding: 0 40px 40px 40px;
}

.stats-summary { margin-bottom: 40px; }

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

.stat-card {
    background: linear-gradient(135deg, rgba(27, 77, 62, 0.05) 0%, rgba(212, 165, 116, 0.05) 100%);
    border: 1.5px solid var(--border-color);
    padding: 16px 14px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: fadeIn 0.6s ease-out;
    transition: var(--transition);
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon { font-size: 1.8rem; }
.stat-content { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}
.stat-unit {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Charts Section */
.charts-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.6s ease-out;
}

.chart-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.chart-tab {
    padding: 10px 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.chart-tab:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.chart-tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(27, 77, 62, 0.3);
}

.chart-container {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.chart-container.active { display: block; }
.chart-container canvas { max-height: 400px; margin-bottom: 20px; }

.chart-insight {
    background: linear-gradient(135deg, rgba(27, 77, 62, 0.05) 0%, rgba(212, 165, 116, 0.05) 100%);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    border-left: 4px solid var(--primary);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Heatmap Calendar */
.heatmap-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    overflow-x: auto;
    min-width: 300px;
}

.heatmap-day {
    text-align: center;
    padding: 12px 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.heatmap-day:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.heatmap-day .day-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.heatmap-legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.productivity-1 { background: #FEE2E2; color: #991B1B; }
.productivity-2 { background: #FEE2E2; color: #991B1B; }
.productivity-3 { background: #FED7AA; color: #9A3412; }
.productivity-4 { background: #FED7AA; color: #9A3412; }
.productivity-5 { background: #FEF3C7; color: #92400E; }
.productivity-6 { background: #FEF3C7; color: #92400E; }
.productivity-7 { background: #D1FAE5; color: #065F46; }
.productivity-8 { background: #A7F3D0; color: #065F46; }
.productivity-9 { background: #6EE7B7; color: #064E3B; }
.productivity-10 { background: #34D399; color: #064E3B; }

/* Filter Section */
.filter-section {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.filter-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

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

/* History List */
.history-list-container { margin-top: 30px; }
.history-list { display: flex; flex-direction: column; gap: 16px; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-icon { font-size: 4rem; margin-bottom: 20px; }

.history-item {
    background: var(--bg-light);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    animation: slideInUp 0.4s ease-out;
}

.history-item:hover {
    border-color: var(--primary);
    background: #FFFFFF;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.history-date { display: flex; flex-direction: column; gap: 2px; }
.date-day { font-weight: 700; color: var(--primary); font-size: 0.9rem; }
.date-full { font-weight: 600; color: var(--text-dark); }
.date-time { font-size: 0.85rem; color: var(--text-muted); }
.history-mood { font-size: 1.8rem; }

.history-quick-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.quick-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--text-dark);
}

.stat-text.productivity-high { color: var(--success); font-weight: 700; }
.stat-text.productivity-medium { color: var(--warning); font-weight: 700; }
.stat-text.productivity-low { color: var(--danger); font-weight: 700; }

.history-tasks {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.history-item-action {
    text-align: right;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideInUp 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-dark);
    transform: rotate(90deg);
}

.detail-content { padding-top: 20px; }
.detail-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}
.detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 5px;
}
.detail-time { color: var(--text-muted); font-size: 0.95rem; }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.detail-item {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.detail-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.detail-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.detail-section {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.detail-section h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1rem;
}

.detail-section p {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

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

/* Hidden State */
.hidden { display: none !important; }
.screen.hidden { display: none !important; }

/* Permission Toast */
.permission-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-card);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    animation: slideInUp 0.3s ease-out;
    max-width: 300px;
}

.permission-toast button {
    margin-top: 10px;
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .container { border-radius: 16px; margin: 20px auto; }
    .login-card { padding: 40px 24px; }
    .logo-title { font-size: 2.5rem; }
    .dashboard-header { padding: 30px 20px; margin: -20px -20px 30px -20px; }
    .header-content { flex-direction: column; }
    .header-buttons { width: 100%; }
    .header-buttons .btn { flex: 1; padding: 10px 12px; font-size: 0.9rem; }
    .greeting { font-size: 1.5rem; }
    .planning-form, .history-container { padding: 0 20px 30px 20px; }
    .reflection-card { margin: 0 20px 30px 20px; }
    .section-title { font-size: 1.5rem; }
    .summary-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .mood-container { gap: 8px; }
    .mood-btn { padding: 12px 8px; }
    .mood-text { font-size: 0.75rem; }
    .filter-controls { flex-direction: column; }
    .filter-input { width: 100%; }
    .modal-content { width: 95%; padding: 20px; }
    .charts-section { padding: 20px; }
    .chart-tab { padding: 8px 16px; font-size: 0.8rem; }
    .heatmap-calendar { gap: 4px; }
    .heatmap-day { padding: 8px 4px; font-size: 0.7rem; }
    .chart-container canvas { max-height: 300px; }
    .reminder-settings-card, .work-time-suggestion-card { margin: 15px 20px; padding: 12px 16px; }
}

@media (max-width: 480px) {
    body { padding: 10px; }
    .container { margin: 10px auto; }
    .login-card { padding: 30px 20px; }
    .logo-title { font-size: 2rem; }
    .greeting { font-size: 1.3rem; }
    .planning-form, .history-container, .summary-card, .reflection-card { padding: 20px; margin: 20px 0; }
    .summary-grid, .stats-grid { grid-template-columns: 1fr; }
    .btn-large { padding: 14px 20px; font-size: 1rem; }
    .detail-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-card { padding: 15px; }
    .history-item-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .heatmap-calendar { grid-template-columns: repeat(4, 1fr); }
}