:root {
    --bg-color: #0d0d12;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-color: #7c4dff;
    --accent-gradient: linear-gradient(135deg, #7c4dff, #448aff);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --danger: #ff5252;
    --success: #69f0ae;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(124, 77, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(68, 138, 255, 0.1) 0%, transparent 40%);
    min-height: 100vh;
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2.5rem 1rem 6rem; /* Reduced top/side padding, increased bottom for FAB */
    position: relative;
    z-index: 1;
}

.main-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Symmetrical grid for perfect centering */
    align-items: center;
    gap: 1rem;
    min-height: 90px;
    margin-bottom: 1.5rem;
    width: 100%;
    padding: 0 1.5rem;
}

.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    grid-column: 2; /* Explicit center column */
}

header h1 {
    font-size: 1.8rem; /* Further reduced to ensure it fits mobile widths */
    font-weight: 700;
    margin: 0;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    line-height: 1.1;
    white-space: nowrap;
}

.header-actions {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem; /* Space between icons */
}

.install-top-btn, .settings-top-btn {
    width: 44px;
    height: 44px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    z-index: 100;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--glass-border) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.install-top-btn {
    /* Correct alignment in flex container */
    margin-top: 2px; /* Subtle adjustment for visual balance with gear */
}

.settings-top-btn {
}

.install-top-btn:hover, .settings-top-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: scale(1.05);
}

.install-top-btn i, .settings-top-btn i {
    width: 22px;
    height: 22px;
}

.profile-filter-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem; /* Slightly reduced gap for better cohesion */
    margin-bottom: 2.5rem; /* Slightly reduced margin */
    flex-wrap: nowrap; /* Icon stays on the same row as buttons-group */
}

#current-date-display {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-transform: capitalize;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-header-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-manage-btn {
    opacity: 0.6;
    padding: 0.4rem;
}

.profile-manage-btn:hover {
    opacity: 1;
}

.profile-buttons-row {
    display: flex;
    gap: 0.5rem; /* Tighter gap for buttons */
    flex-wrap: wrap;
    padding: 0.2rem 0;
    justify-content: center; /* Center buttons within their row container */
    flex: 0 1 auto; /* Allow row to size itself to content */
}

.profile-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-1px);
}

.profile-btn.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(124, 77, 255, 0.3);
}

.profile-manage-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.profile-manage-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    transform: rotate(15deg) scale(1.1);
    border-color: var(--accent-color);
}

/* Shared icon sizes for header buttons */
.install-top-btn i, .settings-top-btn i {
    width: 22px;
    height: 22px;
}



#current-date-display {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Glass Buttons */
.glass-btn {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.7rem 1.2rem; /* Slighly tighter padding */
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.primary-btn {
    background: var(--accent-gradient);
    border: none;
    box-shadow: 0 4px 20px rgba(124, 77, 255, 0.3);
}

/* Glass Select & Inputs */
.glass-select {
    min-width: 180px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.7rem 1rem;
    color: white;
    font-family: inherit;
    cursor: pointer;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.glass-select option {
    background: #1a1a20;
    color: white;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.profile-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Timeline */
#timeline {
    position: relative;
    padding-left: 1.5rem;
    margin-top: 2rem; /* Reduced from 3rem */
}

#timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
}

.entry-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    animation: reveal 0.6s ease-out backwards;
}

.entry-card::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 2rem;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 4px solid var(--bg-color);
    transform: translateX(-50%);
}

.entry-date {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.entry-content {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

.entry-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.entry-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.entry-img:hover {
    transform: scale(1.02);
}

.entry-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.entry-card:hover .entry-actions {
    opacity: 1;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.delete-btn:hover {
    color: var(--danger);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border-radius: 30px;
    border: 1px dashed var(--glass-border);
}

.empty-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h2 {
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000; /* Higher than FAB */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid var(--glass-border);
    max-width: 500px;
    width: 100%;
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    z-index: 1001;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
/* PWA & Installation */
.install-section {
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    text-align: center;
}

.settings-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.8rem;
    line-height: 1.4;
}

/* Removed absolute positioning for install-top-btn to let it flow in header-actions */

#install-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.hidden {
    display: none !important;
}
input[type="date"], 
input[type="text"], 
input[type="number"],
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1rem;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus, textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.upload-zone {
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-secondary);
}

.upload-zone:hover {
    border-color: var(--accent-color);
    background: rgba(124, 77, 255, 0.05);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.remove-img {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Floating Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: var(--accent-gradient);
    border: none;
    color: white;
    box-shadow: 0 4px 20px rgba(124, 77, 255, 0.4);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

/* Viewer */
.viewer-content {
    max-width: 95vw;
    max-height: 95vh;
}

#viewer-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.viewer-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

/* Utils */
.hidden { display: none !important; }

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

/* Unified Timeline Overview (Moved to bottom) */
.timeline-overview {
    margin-top: 4rem;
    margin-bottom: 2rem;
    border-top: 1px solid var(--glass-border);
    border-bottom: none;
    padding-top: 2rem;
    animation: reveal 0.8s ease-out backwards;
}

.timeline-overview .calendar-container {
    padding: 1rem; /* Reduced from 1.5rem to save space */
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.timeline-overview .calendar-grid {
    gap: 0.25rem; /* Reduced from 0.5rem */
}

.timeline-overview .calendar-day {
    aspect-ratio: 1;
    height: auto;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    padding-top: 1rem;
}

.timeline-overview .calendar-day:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.timeline-overview .calendar-day.empty {
    background: none;
    cursor: default;
}

.timeline-overview .calendar-day.today {
    border-color: var(--accent-color);
    font-weight: 800;
}

.timeline-overview .calendar-day.has-entry::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.75rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem; /* Reduced from 0.35rem */
    width: 100%;
}

.calendar-nav h3 {
    font-size: 1.1rem;
    white-space: nowrap;
}


/* Objectives Table */
.objectives-table-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    margin-top: 0.5rem;
}

#objectives-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

#objectives-table th {
    text-align: left;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-weight: 600;
}

#objectives-table td {
    padding: 0.8rem;
    border-top: 1px solid var(--glass-border);
}

.obj-score-input {
    width: 60px;
    padding: 0.4rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    text-align: center;
}

/* Profile List in Modal */
.profiles-list {
    margin-bottom: 2rem;
    max-height: 200px;
    overflow-y: auto;
}

.calendar-header-controls {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.heatmap-objectives {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.2rem;
}

.obj-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.obj-btn.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(124, 77, 255, 0.3);
}

.obj-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    margin-bottom: 0.8rem;
    transition: all 0.2s;
}

.profile-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
}

.add-profile-section {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

/* Settings */
.backup-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(105, 240, 174, 0.1);
    padding: 1rem;
    border-radius: 12px;
    color: var(--success);
    margin-bottom: 2rem;
}

.backup-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.w-full { width: 100%; justify-content: center; }

.warning-text {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 1.5rem;
    text-align: center;
}

/* Entry Tags */
.entry-profile-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(124, 77, 255, 0.2);
    color: var(--accent-color);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Small evaluation pill */
.evaluation-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.8rem;
}

.score-high { color: var(--success); }
.score-mid { color: #ffd740; }
/* Nostalgia & Day Detail */

/* PDF Export Section */
.pdf-export-section {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    margin-top: 2rem;
}

.pdf-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.tertiary-btn {
    background: linear-gradient(135deg, #00c853, #64dd17);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

.wide-modal {
    max-width: 800px;
}

.day-detail-content {
    margin-top: 1rem;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.day-detail-content .entry-card {
    margin-bottom: 1.5rem;
    border-color: rgba(255, 255, 255, 0.05);
}

/* Heatmap Levels (Violet Gradient) */

/* Heatmap Levels (Violet Gradient) */
.calendar-day.heat-0 { background: rgba(255, 255, 255, 0.03); color: var(--text-secondary); }
.calendar-day.heat-1 { background: rgba(124, 77, 255, 0.2); color: white; }
.calendar-day.heat-2 { background: rgba(124, 77, 255, 0.4); color: white; }
.calendar-day.heat-3 { background: rgba(124, 77, 255, 0.7); color: white; }
.calendar-day.heat-4 { background: #7c4dff; color: white; box-shadow: 0 0 10px rgba(124, 77, 255, 0.3); }

.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.legend-scale {
    display: flex;
    gap: 4px;
}

.legend-scale div {
    width: 20px;
    height: 12px;
    border-radius: 3px;
}

.level-0 { background: rgba(255, 255, 255, 0.03); }
.level-1 { background: rgba(124, 77, 255, 0.2); }
.level-2 { background: rgba(124, 77, 255, 0.4); }
.level-3 { background: rgba(124, 77, 255, 0.7); }
.level-4 { background: #7c4dff; }

/* Heatmap Objective Buttons */
#heatmap-header-controls {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.heatmap-objectives {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.2rem;
}

.obj-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.obj-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.obj-btn.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(124, 77, 255, 0.3);
}

/* Nostalgia Section */
.nostalgia-section {
    margin-top: 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-top: 1px solid var(--glass-border);
    animation: reveal 1s ease-out backwards;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header i {
    color: var(--accent-color);
}

.nostalgia-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.empty-nostalgia {
    background: var(--card-bg);
    border: 1px dashed var(--glass-border);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .app-container { padding: 1rem; }
    
    header { 
        flex-direction: column;
        align-items: center; 
        gap: 1.5rem;
        text-align: center;
    }
    
    .settings-top-btn { top: 1rem; right: 1rem; }
}

/* Floating Action Button (FAB) */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 65px;
    height: 65px;
    background: var(--accent-gradient);
    border: 8px solid transparent; /* This creates the "wider" activation zone buffer */
    background-clip: padding-box;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(124, 77, 255, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0;
}

/* Wide activation area hit-box */
.fab::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
}

.fab i {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 15px 35px rgba(124, 77, 255, 0.6);
}

.fab:active {
    transform: scale(0.95);
}

.fab-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(0) rotate(-90deg) !important;
}

/* Pagination */
.load-more-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0 5rem;
}

#load-more-btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
}

#load-more-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Print Styles for PDF */
#pdf-export-container {
    padding: 40px;
    background: white;
    color: #1a1a1a;
    font-family: 'Outfit', sans-serif;
}

.pdf-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

.pdf-entry {
    margin-bottom: 40px;
    page-break-inside: avoid;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.pdf-entry-date {
    font-size: 1.2rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 10px;
}

.pdf-entry-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #000;
}

.pdf-entry-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.pdf-photo {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
}
