/* ===== MEMORY CASSETTE - CLEAN STYLES ===== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Variables */
    --bg-vintage: #e8dcc0;
    --bg-cream: #f4f0e8;
    --nav-dark: #2c2c2c;
    --text-dark: #2c2c2c;
    --text-medium: #5a5a5a;
    --text-light: #8b7355;
    --border-dark: #2c2c2c;
    --border-light: #d4c4a8;
    --cassette-beige: #d4c4a8;
    --cassette-border: #8b7355;
    --reel-dark: #6b5b47;
    --display-bg: #f5f5dc;
    --sticky-yellow: #fff3a0;
    --shadow-soft: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Times New Roman', serif;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 115, 85, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 196, 168, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-vintage) 0%, #ddd0b8 100%);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* ===== LAYOUT STRUCTURE ===== */

/* Vintage Layout */
.vintage-layout {
    min-height: 100vh;
    background: var(--bg-vintage);
    display: flex;
    flex-direction: column;
}

/* Header */
.vintage-header {
    background: var(--bg-cream);
    border-bottom: 3px solid var(--border-dark);
    padding: 30px 40px;
    text-align: center;
}

.retro-brand {
    font-family: 'Times New Roman', serif;
    font-size: 48px;
    font-weight: bold;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.vintage-subtitle {
    font-family: 'Times New Roman', serif;
    font-size: 14px;
    color: var(--text-medium);
    margin: 10px 0 20px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.vintage-scale {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.scale-line {
    width: 100px;
    height: 2px;
    background: var(--border-dark);
}

.scale-marks {
    display: flex;
    gap: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--text-dark);
}

/* Main Layout */
.vintage-main {
    display: flex;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    padding: 20px;
}

/* Navigation - Left Positioned */
.vintage-nav {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 220px;
    background: var(--cassette-beige);
    color: var(--text-dark);
    padding: 25px;
    border: 3px solid var(--border-dark);
    border-radius: 12px;
    box-shadow: 
        4px 4px 15px var(--shadow-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    height: fit-content;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.nav-section {
    margin-bottom: 30px;
}

.nav-section:last-child {
    margin-bottom: 0;
}

.nav-title {
    font-family: 'Times New Roman', serif;
    font-size: 13px;
    font-weight: bold;
    color: var(--text-dark);
    margin: 0 0 18px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border-dark);
    padding-bottom: 10px;
    text-align: center;
    position: relative;
}

.nav-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--cassette-border);
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--cassette-border);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-item:hover {
    background: rgba(139, 115, 85, 0.15);
    border-color: rgba(139, 115, 85, 0.3);
    transform: translateX(4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-item:hover::before {
    transform: scaleY(1);
}

.nav-item.active {
    background: rgba(139, 115, 85, 0.25);
    border-color: var(--cassette-border);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.nav-text {
    font-family: 'Times New Roman', serif;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    flex: 1;
}

.nav-contact {
    font-family: 'Times New Roman', serif;
    font-size: 10px;
    line-height: 1.8;
    color: var(--text-medium);
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(139, 115, 85, 0.2);
}

.contact-item {
    margin-bottom: 3px;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-light {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.status-text {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: var(--text-medium);
    letter-spacing: 1px;
}

/* Content Area - Centered with Equal Spacing */
.vintage-content {
    width: 100%;
    padding: 0 280px; /* Left padding accounts for nav width + spacing */
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    margin: 0 auto;
}

.content-section {
    display: none;
    width: 100%;
    max-width: 800px;
}

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

.content-section#homeSection.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== CASSETTE PLAYER ===== */

.cassette-body {
    background: var(--cassette-beige);
    border: 3px solid var(--cassette-border);
    border-radius: 8px;
    padding: 30px;
    width: 500px;
    box-shadow: 0 8px 24px var(--shadow-medium);
    position: relative;
    margin: 0;
}

/* Sticky Note */
.sticky-note {
    position: absolute;
    top: -20px;
    right: -30px;
    background: var(--sticky-yellow);
    padding: 12px 16px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    transform: rotate(8deg);
    box-shadow: 0 4px 8px var(--shadow-soft);
    border-radius: 2px;
    line-height: 1.3;
    z-index: 10;
}

/* Display Screen */
.cassette-display {
    background: var(--display-bg);
    border: 2px solid var(--cassette-border);
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 4px var(--shadow-soft);
}

.display-screen {
    background: transparent;
    padding: 8px;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.screen-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.track-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.track-name {
    font-size: 12px;
    color: var(--text-dark);
    font-family: Arial, sans-serif;
    font-weight: normal;
}

/* Tape Reels */
.tape-reels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0;
    gap: 120px;
}

.reel {
    width: 85px;
    height: 85px;
    background: var(--reel-dark);
    border: 2px solid var(--cassette-border);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 4px 8px var(--shadow-soft);
    flex-shrink: 0;
}

.reel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background: var(--text-dark);
    border-radius: 50%;
    z-index: 2;
}

.reel-spokes {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    background:
        linear-gradient(0deg, transparent 47%, var(--text-dark) 49%, var(--text-dark) 51%, transparent 53%),
        linear-gradient(45deg, transparent 47%, var(--text-dark) 49%, var(--text-dark) 51%, transparent 53%),
        linear-gradient(90deg, transparent 47%, var(--text-dark) 49%, var(--text-dark) 51%, transparent 53%),
        linear-gradient(135deg, transparent 47%, var(--text-dark) 49%, var(--text-dark) 51%, transparent 53%);
    border-radius: 50%;
    animation: reelSpin 8s linear infinite;
    opacity: 0.8;
}

@keyframes reelSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Input Section */
.input-section {
    margin-bottom: 25px;
}

.thought-input {
    width: 100%;
    background: white;
    border: 2px solid var(--cassette-border);
    border-radius: 4px;
    padding: 12px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    resize: vertical;
    outline: none;
    box-shadow: inset 0 2px 4px var(--shadow-soft);
}

.thought-input::placeholder {
    color: var(--text-light);
}

.thought-input:focus {
    border-color: var(--text-dark);
    box-shadow: inset 0 2px 4px var(--shadow-soft);
}

/* Button Row */
.button-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

.dump-btn {
    background: var(--cassette-border);
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: white;
    cursor: pointer;
    margin-top: 12px;
    box-shadow: 0 2px 4px var(--shadow-soft);
    transition: all 0.2s ease;
}

.dump-btn:hover {
    background: var(--text-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--shadow-medium);
}

.archive-toggle {
    background: var(--display-bg);
    border: 2px solid var(--cassette-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px var(--shadow-soft);
}

.archive-toggle:hover {
    background: var(--cassette-border);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--shadow-medium);
}

.archive-toggle.active {
    background: var(--cassette-border);
    color: white;
}

.toggle-icon {
    font-size: 16px;
    filter: grayscale(0.3);
}

.test-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 12px;
    transition: all 0.2s ease;
}

.test-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
}

/* Result Display */
.result-display {
    background: var(--cassette-beige);
    border: 2px solid var(--cassette-border);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    display: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.result-display.active {
    display: block;
    animation: resultSlideUp 0.5s ease-out;
}

@keyframes resultSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-content {
    text-align: center;
}

.result-title {
    font-family: 'Times New Roman', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.result-message {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 20px;
    line-height: 1.6;
}

.user-thought {
    background: var(--display-bg);
    border: 1px solid var(--cassette-border);
    border-left: 4px solid var(--text-dark);
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--text-dark);
    text-align: left;
    line-height: 1.5;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

.result-affirmation {
    background: linear-gradient(135deg, var(--text-medium), var(--text-light));
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.5;
}

.archive-info {
    font-size: 10px;
    color: var(--text-light);
    font-family: 'Courier New', monospace;
    margin: 10px 0;
    padding: 8px;
    background: var(--display-bg);
    border-radius: 4px;
    border-left: 3px solid var(--cassette-border);
}

/* Mood selector removed for cleaner interface */

/* ===== SECTION STYLING ===== */

.section-title {
    font-family: 'Times New Roman', serif;
    font-size: 32px;
    font-weight: bold;
    color: var(--text-dark);
    margin: 0 0 10px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 3px solid var(--border-dark);
    padding-bottom: 15px;
}

.section-subtitle {
    font-family: 'Times New Roman', serif;
    font-size: 14px;
    color: var(--text-medium);
    margin: 0 0 30px 0;
    letter-spacing: 1px;
    font-style: italic;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .vintage-main {
        flex-direction: column;
        padding: 10px;
    }

    .vintage-nav {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        margin-bottom: 20px;
        padding: 20px;
    }

    .nav-list {
        display: flex;
        justify-content: space-around;
    }

    .nav-item {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .vintage-content {
        padding: 20px;
    }

    .retro-brand {
        font-size: 32px;
    }

    .cassette-body {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .vintage-content {
        padding: 15px;
    }

    .cassette-body {
        padding: 20px;
    }

    .tape-reels {
        gap: 80px;
    }

    .reel {
        width: 70px;
        height: 70px;
    }
}

/* ====
= ARCHIVE SYSTEM ===== */

/* Shelf Header */
.shelf-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f4f0e8 0%, #e8dcc0 100%);
    border: 3px solid var(--cassette-border);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.shelf-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(139, 115, 85, 0.3);
}

.stat-icon {
    font-size: 16px;
}

.stat-text {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Archive Grid */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f4f0e8 0%, #e8dcc0 100%);
    border-radius: 8px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/* Memory Cassette */
.memory-cassette {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.cassette-shell {
    background: var(--cassette-color, #d4c4a8);
    border: 3px solid var(--cassette-border);
    border-radius: 8px;
    padding: 15px;
    position: relative;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.cassette-label {
    background: var(--sticky-yellow);
    border: 1px solid var(--border-light);
    border-radius: 3px;
    padding: 8px 10px;
    margin-bottom: 12px;
    transform: rotate(-1deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Courier New', monospace;
}

.label-date {
    font-size: 10px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.label-mood {
    font-size: 16px;
    margin-bottom: 5px;
    text-align: center;
}

.label-preview {
    font-size: 9px;
    color: var(--text-medium);
    line-height: 1.3;
    max-height: 40px;
    overflow: hidden;
}

/* Mini Reels */
.cassette-reels-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 20px 12px 20px;
    gap: 60px;
}

.mini-reel {
    width: 28px;
    height: 28px;
    background: var(--reel-dark);
    border: 2px solid var(--cassette-border);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mini-reel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--text-dark);
    border-radius: 50%;
    z-index: 2;
}

.mini-reel-spokes {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background:
        linear-gradient(0deg, transparent 47%, var(--text-dark) 49%, var(--text-dark) 51%, transparent 53%),
        linear-gradient(45deg, transparent 47%, var(--text-dark) 49%, var(--text-dark) 51%, transparent 53%),
        linear-gradient(90deg, transparent 47%, var(--text-dark) 49%, var(--text-dark) 51%, transparent 53%),
        linear-gradient(135deg, transparent 47%, var(--text-dark) 49%, var(--text-dark) 51%, transparent 53%);
    border-radius: 50%;
    opacity: 0.6;
}

/* Cassette Controls */
.cassette-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.cassette-btn {
    background: linear-gradient(135deg, var(--cassette-border) 0%, #6b5b47 100%);
    border: 2px solid var(--text-medium);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cassette-btn:hover {
    background: linear-gradient(135deg, #9d8567 0%, var(--cassette-border) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-icon {
    font-size: 12px;
    color: white;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

/* Archive Empty State */
.archive-empty {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f4f0e8 0%, #e8dcc0 100%);
    border-radius: 8px;
    border: 2px dashed var(--cassette-border);
    margin-top: 20px;
    display: none;
}

.archive-empty.visible {
    display: block;
}

.empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 20px;
    opacity: 0.5;
}

.archive-empty h3 {
    font-family: 'Times New Roman', serif;
    font-size: 24px;
    color: var(--text-dark);
    margin: 0 0 10px 0;
}

.archive-empty p {
    font-family: 'Times New Roman', serif;
    color: var(--text-medium);
    font-style: italic;
    margin: 0;
}

.empty-hint {
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(255, 243, 160, 0.3);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-medium);
    font-style: italic;
}

/* Hover Effects */
.memory-cassette:hover .mini-reel-spokes {
    animation: reelSpin 2s linear infinite;
}

.memory-cassette:hover .cassette-shell {
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* Filtering system removed for cleaner interface */

/* Mood system removed for cleaner interface */

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

.mood-card {
    background: white;
    border: 3px solid var(--border-light);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.mood-card:hover {
    border-color: var(--cassette-border);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.mood-card.selected {
    border-color: var(--cassette-border);
    background: rgba(139, 115, 85, 0.1);
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.2);
}

.mood-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.mood-name {
    font-family: 'Times New Roman', serif;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.mood-description {
    font-family: 'Times New Roman', serif;
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 15px;
    line-height: 1.4;
    font-style: italic;
}

.mood-keywords {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.mood-feedback {
    background: rgba(139, 115, 85, 0.1);
    border: 2px solid var(--cassette-border);
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    text-align: center;
    font-family: 'Times New Roman', serif;
    font-size: 16px;
    color: var(--text-dark);
    font-weight: bold;
}

/* ===== SIMPLE STATS ===== */

.simple-stats {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-cream);
    border: 2px solid var(--border-dark);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px var(--shadow-soft);
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== ENHANCED ARCHIVE CASSETTES ===== */

.memory-cassette-card {
    background: var(--cassette-beige);
    border: 3px solid var(--border-dark);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 
        0 4px 12px var(--shadow-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.memory-cassette-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px var(--shadow-medium),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cassette-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-dark);
}

.cassette-date {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: bold;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cassette-mood {
    font-size: 18px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.cassette-label {
    background: var(--sticky-yellow);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 15px;
    transform: rotate(-0.5deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.label-preview {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--text-dark);
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
}

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

.cassette-btn {
    background: linear-gradient(135deg, var(--cassette-border) 0%, #6b5b47 100%);
    border: 2px solid var(--text-medium);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.cassette-btn:hover {
    background: linear-gradient(135deg, #9d8567 0%, var(--cassette-border) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.cassette-btn .btn-icon {
    font-size: 14px;
    color: white;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.cassette-btn.delete-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
}

.cassette-btn.delete-btn:hover {
    background: linear-gradient(135deg, #ff7979 0%, #ff6b6b 100%);
}

.playback-display {
    background: var(--display-bg);
    border: 2px solid var(--cassette-border);
    border-radius: 6px;
    padding: 15px;
    margin-top: 10px;
    font-family: 'Courier New', monospace;
    min-height: 80px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.typewriter-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-dark);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.typewriter-cursor {
    display: inline-block;
    font-size: 13px;
    color: var(--text-dark);
    animation: cursorBlink 1s infinite;
    margin-left: 2px;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.dashboard-card {
    background: white;
    border: 3px solid var(--border-dark);
    border-radius: 12px;
    padding: 25px;
    position: relative;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.card-title {
    font-family: 'Times New Roman', serif;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 10px;
}

.no-data {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-medium);
}

.no-data-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-data h4 {
    font-family: 'Times New Roman', serif;
    font-size: 18px;
    color: var(--text-dark);
    margin: 0 0 10px 0;
}

.no-data p {
    font-family: 'Times New Roman', serif;
    font-size: 14px;
    font-style: italic;
    margin: 0;
}

/* Mood Chart */
.mood-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mood-bar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mood-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mood-bar-track {
    height: 20px;
    background: var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.mood-bar-fill {
    height: 100%;
    border-radius: 10px;
    position: relative;
    transition: width 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
}

.mood-percentage {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Activity Stats */
.activity-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    border: 2px solid var(--border-light);
}

.stat-number {
    display: block;
    font-family: 'Times New Roman', serif;
    font-size: 32px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.stat-label {
    font-family: 'Times New Roman', serif;
    font-size: 12px;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Memory playback removed for cleaner interface */

/* Control buttons removed */

/* ===== DELETION SYSTEM ===== */

.deletion-confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 42, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.deletion-confirmation {
    background: var(--bg-cream);
    border: 4px solid var(--border-dark);
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.confirmation-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
}

.confirmation-header h3 {
    font-family: 'Times New Roman', serif;
    font-size: 24px;
    color: var(--text-dark);
    margin: 0 0 10px 0;
    font-weight: bold;
}

.memory-preview {
    background: rgba(255, 243, 160, 0.3);
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.therapeutic-message {
    background: rgba(139, 115, 85, 0.1);
    border-left: 4px solid var(--cassette-border);
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 0 8px 8px 0;
}

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

.method-btn {
    background: white;
    border: 3px solid var(--border-light);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.method-btn:hover {
    border-color: var(--cassette-border);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.method-btn.active {
    border-color: var(--cassette-border);
    background: rgba(139, 115, 85, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.method-icon {
    font-size: 24px;
    display: block;
}

.method-name {
    font-family: 'Times New Roman', serif;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-dark);
}

.confirmation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirm-delete-btn,
.cancel-delete-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-family: 'Times New Roman', serif;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.confirm-delete-btn {
    background: linear-gradient(135deg, #d2691e 0%, #8b4513 100%);
    color: white;
}

.confirm-delete-btn:hover {
    background: linear-gradient(135deg, #ff7f50 0%, #d2691e 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.cancel-delete-btn {
    background: linear-gradient(135deg, var(--cassette-border) 0%, #6b5b47 100%);
    color: white;
}

.cancel-delete-btn:hover {
    background: linear-gradient(135deg, #9d8567 0%, var(--cassette-border) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Deletion Animation */
.deletion-animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.98);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.animation-stage {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.memory-paper {
    background: #f5f5dc;
    border: 2px solid #d4c4a8;
    border-radius: 8px;
    padding: 20px;
    width: 300px;
    min-height: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.fire-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0;
}

.flame {
    position: absolute;
    width: 20px;
    height: 30px;
    background: radial-gradient(circle, #ff6b35 0%, #ff4500 50%, #8b0000 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 0.5s ease-in-out infinite alternate;
}

@keyframes flicker {
    0% {
        transform: scale(1) rotate(-2deg);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1) rotate(2deg);
        opacity: 1;
    }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .shelf-stats {
        gap: 15px;
    }

    .archive-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        padding: 15px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mood-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }

    .filters-header {
        padding: 15px 20px;
    }

    .filters-content {
        padding: 20px;
    }

    .mood-filter-buttons,
    .date-filter-buttons {
        justify-content: center;
    }

    .filter-actions {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .mood-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        padding: 15px;
    }

    .deletion-confirmation {
        padding: 15px;
    }

    .deletion-methods {
        grid-template-columns: 1fr;
    }

    .confirmation-actions {
        flex-direction: column;
    }
}

/* ===== T
HEME SYSTEM ===== */

/* Themes Content */
.themes-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

/* Theme Selector */
.theme-selector {
    width: 100%;
    text-align: center;
}

.theme-selector-title {
    font-family: 'Times New Roman', serif;
    font-size: 24px;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

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

/* Theme Cards */
.theme-card {
    background: white;
    border: 3px solid var(--border-light);
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.theme-card:hover {
    border-color: var(--cassette-border);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.theme-card.active {
    border-color: var(--cassette-border);
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.2);
}

.theme-card.active::before {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--cassette-border);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    z-index: 10;
}

/* Theme Preview */
.theme-preview {
    height: 120px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.preview-header {
    font-family: 'Times New Roman', serif;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.preview-reel {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid;
    position: relative;
}

.preview-reel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.preview-text {
    font-family: 'Times New Roman', serif;
    font-size: 11px;
    text-align: center;
    opacity: 0.8;
    font-style: italic;
}

/* Theme Preview Variants */
.vintage-preview {
    background: linear-gradient(135deg, #e8dcc0 0%, #d4c4a8 100%);
    color: #2c2c2c;
}

.vintage-preview .preview-reel {
    border-color: #8b7355;
    background: #6b5b47;
}

.vintage-preview .preview-reel::before {
    background: #2c2c2c;
}

.warm-paper-preview {
    background: linear-gradient(135deg, #faf6f0 0%, #f4e6d7 100%);
    color: #654321;
}

.warm-paper-preview .preview-reel {
    border-color: #d4a574;
    background: #a0522d;
}

.warm-paper-preview .preview-reel::before {
    background: #654321;
}

.dusty-teal-preview {
    background: linear-gradient(135deg, #e8f4f8 0%, #b8d4da 100%);
    color: #2f4f4f;
}

.dusty-teal-preview .preview-reel {
    border-color: #5f9ea0;
    background: #4682b4;
}

.dusty-teal-preview .preview-reel::before {
    background: #2f4f4f;
}

.typewriter-preview {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    color: #000000;
}

.typewriter-preview .preview-reel {
    border-color: #333333;
    background: #666666;
}

.typewriter-preview .preview-reel::before {
    background: #000000;
}

.classic-sepia-preview {
    background: linear-gradient(135deg, #f4f1e8 0%, #deb887 100%);
    color: #654321;
}

.classic-sepia-preview .preview-reel {
    border-color: #a0522d;
    background: #8b4513;
}

.classic-sepia-preview .preview-reel::before {
    background: #654321;
}

/* Theme Info */
.theme-info {
    padding: 20px;
    background: white;
}

.theme-name {
    font-family: 'Times New Roman', serif;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
    margin: 0 0 8px 0;
}

.theme-description {
    font-family: 'Times New Roman', serif;
    font-size: 13px;
    color: var(--text-medium);
    line-height: 1.4;
    margin: 0 0 15px 0;
}

.theme-colors {
    display: flex;
    gap: 8px;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Theme Settings */
.theme-settings {
    background: white;
    border: 3px solid var(--border-dark);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.settings-title {
    font-family: 'Times New Roman', serif;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-dark);
    margin: 0 0 25px 0;
    text-align: center;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.setting-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(139, 115, 85, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Times New Roman', serif;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-dark);
    cursor: pointer;
}

.label-icon {
    font-size: 18px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.toggle-slider {
    background-color: var(--cassette-border);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(26px);
}

/* Setting Select */
.setting-select {
    padding: 8px 12px;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    font-family: 'Times New Roman', serif;
    font-size: 13px;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.setting-select:focus {
    outline: none;
    border-color: var(--cassette-border);
}

/* Theme Actions */
.theme-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.theme-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-family: 'Times New Roman', serif;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.preview-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.preview-btn:hover {
    background: linear-gradient(135deg, #5CBF60 0%, #4CAF50 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.apply-btn {
    background: linear-gradient(135deg, var(--cassette-border) 0%, #6b5b47 100%);
    color: white;
}

.apply-btn:hover {
    background: linear-gradient(135deg, #9d8567 0%, var(--cassette-border) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.reset-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
}

.reset-btn:hover {
    background: linear-gradient(135deg, #ff7979 0%, #ff6b6b 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-icon {
    font-size: 16px;
}

.btn-text {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Theme-specific body classes */
.no-animations * {
    animation: none !important;
    transition: none !important;
}

.font-small {
    font-size: 90%;
}

.font-large {
    font-size: 110%;
}

.high-contrast {
    filter: contrast(1.5);
}

/* Dark mode removed - themes handle color variations */

/* Responsive Design */
@media (max-width: 768px) {
    .theme-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .settings-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .theme-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .theme-action-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .themes-content {
        padding: 0 10px;
    }

    .theme-settings {
        padding: 20px;
    }

    .setting-group {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/*
 ===== THEME-AWARE ANIMATIONS ===== */

/* Base Animation Variables */
:root {
    --particle-primary: #8b7355;
    --particle-secondary: #d4c4a8;
    --particle-type: paper;
    --animation-style: gentle;
    --theme-transition-duration: 0.8s;
    --theme-ease: ease-out;
}

/* Theme-Specific Animation Classes */

/* Vintage Theme Animations */
.anim-vintage {
    --theme-transition-duration: 0.8s;
    --theme-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.anim-vintage .memory-cassette:hover {
    animation: vintageFloat 2s ease-in-out infinite;
}

@keyframes vintageFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-3px) rotate(0.5deg);
    }
}

.anim-vintage .mood-btn:hover {
    animation: vintageGlow 1.5s ease-in-out infinite alternate;
}

@keyframes vintageGlow {
    0% {
        box-shadow: 0 2px 8px rgba(139, 115, 85, 0.2);
    }

    100% {
        box-shadow: 0 4px 16px rgba(139, 115, 85, 0.4);
    }
}

/* Warm Paper Theme Animations */
.anim-warm-paper {
    --theme-transition-duration: 1.0s;
    --theme-ease: cubic-bezier(0.4, 0.0, 0.2, 1);
}

.anim-warm-paper .memory-cassette:hover {
    animation: paperRustle 3s ease-in-out infinite;
}

@keyframes paperRustle {

    0%,
    100% {
        transform: translateY(0px) skewX(0deg);
    }

    25% {
        transform: translateY(-2px) skewX(0.5deg);
    }

    75% {
        transform: translateY(-1px) skewX(-0.3deg);
    }
}

.anim-warm-paper .theme-card:hover {
    animation: sepiaPulse 2s ease-in-out infinite;
}

@keyframes sepiaPulse {

    0%,
    100% {
        filter: sepia(0.1) brightness(1);
    }

    50% {
        filter: sepia(0.3) brightness(1.05);
    }
}

/* Dusty Teal Theme Animations */
.anim-dusty-teal {
    --theme-transition-duration: 1.2s;
    --theme-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

.anim-dusty-teal .memory-cassette:hover {
    animation: waterFlow 4s ease-in-out infinite;
}

@keyframes waterFlow {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    33% {
        transform: translateY(-2px) translateX(1px);
    }

    66% {
        transform: translateY(-1px) translateX(-1px);
    }
}

.anim-dusty-teal .reel-spokes {
    animation: tealRipple 6s linear infinite;
}

@keyframes tealRipple {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) rotate(180deg) scale(1.02);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(1);
    }
}

/* Typewriter Theme Animations */
.anim-typewriter {
    --theme-transition-duration: 0.3s;
    --theme-ease: linear;
}

.anim-typewriter .memory-cassette:hover {
    animation: mechanicalClick 0.6s steps(3, end) infinite;
}

@keyframes mechanicalClick {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-1px);
    }
}

.anim-typewriter .mood-btn:hover {
    animation: typewriterStrike 0.4s steps(2, end);
}

@keyframes typewriterStrike {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.98);
    }

    100% {
        transform: scale(1);
    }
}

.anim-typewriter .reel-spokes {
    animation: mechanicalRotate 1s steps(8, end) infinite;
}

@keyframes mechanicalRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Classic Sepia Theme Animations */
.anim-classic-sepia {
    --theme-transition-duration: 1.5s;
    --theme-ease: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.anim-classic-sepia .memory-cassette:hover {
    animation: vintagePhoto 5s ease-in-out infinite;
}

@keyframes vintagePhoto {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        filter: sepia(0.3) contrast(1);
    }

    50% {
        transform: translateY(-4px) rotate(0.8deg);
        filter: sepia(0.5) contrast(1.1);
    }
}

.anim-classic-sepia .theme-card:hover {
    animation: sepiaFade 3s ease-in-out infinite alternate;
}

@keyframes sepiaFade {
    0% {
        filter: sepia(0.2) brightness(1);
    }

    100% {
        filter: sepia(0.6) brightness(1.1);
    }
}

/* Theme Transition Animations */
.theme-transition {
    transition: all var(--theme-transition-duration) var(--theme-ease);
}

/* Particle Effects for Each Theme */
.particle-effect {
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

/* Vintage Paper Particles */
.anim-vintage .particle-effect::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--particle-primary);
    border-radius: 50%;
    animation: vintageParticles 8s linear infinite;
    opacity: 0.3;
}

@keyframes vintageParticles {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* Warm Paper Sepia Particles */
.anim-warm-paper .particle-effect::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, var(--particle-primary) 0%, transparent 70%);
    animation: sepiaParticles 12s ease-in-out infinite;
    opacity: 0.2;
}

@keyframes sepiaParticles {
    0% {
        transform: translateY(100vh) translateX(-20px) scale(0.5);
        opacity: 0;
    }

    20% {
        opacity: 0.2;
    }

    80% {
        opacity: 0.2;
    }

    100% {
        transform: translateY(-10vh) translateX(20px) scale(1.2);
        opacity: 0;
    }
}

/* Dusty Teal Water Particles */
.anim-dusty-teal .particle-effect::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 8px;
    background: linear-gradient(to bottom, var(--particle-primary), transparent);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: waterDrops 6s ease-in infinite;
    opacity: 0.4;
}

@keyframes waterDrops {
    0% {
        transform: translateY(-10vh) scale(0.8);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(100vh) scale(1.2);
        opacity: 0;
    }
}

/* Typewriter Mechanical Particles */
.anim-typewriter .particle-effect::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--particle-primary);
    animation: mechanicalParticles 4s steps(10, end) infinite;
    opacity: 0.6;
}

@keyframes mechanicalParticles {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-10vh) translateX(0);
        opacity: 0;
    }
}

/* Classic Sepia Vintage Particles */
.anim-classic-sepia .particle-effect::before {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background: radial-gradient(circle, var(--particle-primary) 30%, var(--particle-secondary) 70%);
    border-radius: 50%;
    animation: vintageFloat 10s ease-in-out infinite;
    opacity: 0.25;
    filter: sepia(0.8);
}

@keyframes vintageFloat {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.5);
        opacity: 0;
    }

    15% {
        opacity: 0.25;
    }

    85% {
        opacity: 0.25;
    }

    100% {
        transform: translateY(-10vh) rotate(180deg) scale(1.5);
        opacity: 0;
    }
}

/* Enhanced Hover Effects per Theme */
.anim-vintage .dashboard-card:hover {
    transform: translateY(-3px) rotate(0.5deg);
    box-shadow: 0 12px 35px rgba(139, 115, 85, 0.15);
}

.anim-warm-paper .dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 165, 116, 0.2);
    filter: sepia(0.1);
}

.anim-dusty-teal .dashboard-card:hover {
    transform: translateY(-4px) translateX(1px);
    box-shadow: 0 14px 38px rgba(95, 158, 160, 0.18);
}

.anim-typewriter .dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(51, 51, 51, 0.25);
}

.anim-classic-sepia .dashboard-card:hover {
    transform: translateY(-6px) rotate(-0.3deg);
    box-shadow: 0 18px 45px rgba(160, 82, 45, 0.22);
    filter: sepia(0.2) contrast(1.05);
}

/* Theme-Aware Button Animations */
.anim-vintage .theme-action-btn:hover {
    animation: vintageButtonPress 0.6s ease-out;
}

@keyframes vintageButtonPress {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.98) rotate(0.5deg);
    }

    100% {
        transform: scale(1.02);
    }
}

.anim-warm-paper .theme-action-btn:hover {
    animation: paperButtonWave 1s ease-in-out;
}

@keyframes paperButtonWave {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.02) skewX(1deg);
    }

    75% {
        transform: scale(1.01) skewX(-0.5deg);
    }
}

.anim-dusty-teal .theme-action-btn:hover {
    animation: waterButtonRipple 0.8s ease-out;
}

@keyframes waterButtonRipple {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 8px 20px rgba(95, 158, 160, 0.3);
    }

    100% {
        transform: scale(1.01);
        box-shadow: 0 6px 15px rgba(95, 158, 160, 0.2);
    }
}

.anim-typewriter .theme-action-btn:hover {
    animation: mechanicalButtonClick 0.3s steps(3, end);
}

@keyframes mechanicalButtonClick {
    0% {
        transform: scale(1);
    }

    33% {
        transform: scale(0.97);
    }

    66% {
        transform: scale(1.01);
    }

    100% {
        transform: scale(1);
    }
}

.anim-classic-sepia .theme-action-btn:hover {
    animation: vintageButtonGlow 1.2s ease-in-out;
}

@keyframes vintageButtonGlow {

    0%,
    100% {
        transform: scale(1);
        filter: sepia(0.2) brightness(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    50% {
        transform: scale(1.05);
        filter: sepia(0.4) brightness(1.1);
        box-shadow: 0 8px 25px rgba(160, 82, 45, 0.3);
    }
}

/* Responsive Theme Animations */
@media (max-width: 768px) {

    .anim-vintage .memory-cassette:hover,
    .anim-warm-paper .memory-cassette:hover,
    .anim-dusty-teal .memory-cassette:hover,
    .anim-typewriter .memory-cassette:hover,
    .anim-classic-sepia .memory-cassette:hover {
        animation-duration: 1s;
        animation-iteration-count: 1;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    .anim-vintage *,
    .anim-warm-paper *,
    .anim-dusty-teal *,
    .anim-typewriter *,
    .anim-classic-sepia * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .particle-effect::before {
        display: none;
    }
}

/* ===== THERAPEUTIC TECHNIQUES STYLES ===== */

.therapeutic-result {
    text-align: center;
    padding: 30px;
}

.technique-animation {
    margin: 20px 0;
    min-height: 120px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Therapeutic animations removed for cleaner interface */

.technique-message {
    font-style: italic;
    color: var(--text-medium);
    margin: 20px 0;
    line-height: 1.6;
}

.therapeutic-mode {
    background: linear-gradient(135deg, #f4f0e8, #e8dcc0);
}

/* ===== CRISIS SUPPORT STYLES ===== */

.crisis-support {
    background: linear-gradient(135deg, #fff5f5, #fef2f2);
    border: 2px solid #fca5a5;
    border-radius: 12px;
    text-align: center;
}

.crisis-support .result-title {
    color: #dc2626;
    margin-bottom: 20px;
}

.crisis-message {
    font-size: 1.1em;
    color: #374151;
    margin-bottom: 25px;
    line-height: 1.6;
}

.crisis-resources {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.crisis-resources h4 {
    color: #dc2626;
    margin-bottom: 15px;
    text-align: center;
}

.resource-item {
    margin: 10px 0;
    padding: 8px;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 4px solid #dc2626;
}

.crisis-affirmation {
    background: #fef2f2;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    color: #dc2626;
    margin: 20px 0;
}

.crisis-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.crisis-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.crisis-btn:not(.secondary) {
    background: #dc2626;
    color: white;
}

.crisis-btn:not(.secondary):hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.crisis-btn.secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #d1d5db;
}

.crisis-btn.secondary:hover {
    background: #e5e7eb;
}

.crisis-mode {
    z-index: 1000;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== RESPONSIVE THERAPEUTIC STYLES ===== */

@media (max-width: 768px) {
    .technique-animation {
        min-height: 100px;
        padding: 15px;
    }

    .crisis-actions {
        flex-direction: column;
        align-items: center;
    }

    .crisis-btn {
        width: 100%;
        max-width: 250px;
    }

    .crisis-mode {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* 
===== ONBOARDING STYLES ===== */

.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.onboarding-content {
    background: var(--bg-cream);
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--cassette-border);
}

.onboarding-header {
    text-align: center;
    margin-bottom: 30px;
}

.onboarding-header h2 {
    color: var(--text-dark);
    font-size: 2em;
    margin-bottom: 10px;
    font-family: 'Times New Roman', serif;
}

.onboarding-header p {
    color: var(--text-medium);
    font-size: 1.1em;
}

.onboarding-steps {
    position: relative;
    min-height: 200px;
    margin-bottom: 30px;
}

.onboarding-step {
    display: none;
    text-align: center;
    padding: 20px;
    animation: fadeInStep 0.5s ease-in-out;
}

.onboarding-step.active {
    display: block;
}

.onboarding-step .step-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.onboarding-step h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.4em;
}

.onboarding-step p {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 1.1em;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.onboarding-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 20px;
}

.onboarding-btn {
    background: var(--cassette-border);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Times New Roman', serif;
}

.onboarding-btn:hover:not(:disabled) {
    background: var(--reel-dark);
    transform: translateY(-2px);
}

.onboarding-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.step-indicators {
    display: flex;
    gap: 10px;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--cassette-border);
    transform: scale(1.2);
}

.onboarding-footer {
    text-align: center;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.onboarding-skip {
    background: none;
    border: 2px solid var(--border-light);
    color: var(--text-medium);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.onboarding-skip:hover {
    border-color: var(--cassette-border);
    color: var(--text-dark);
}

.privacy-note {
    font-size: 0.9em;
    color: var(--text-medium);
    font-style: italic;
}

/* ===== RESPONSIVE ONBOARDING ===== */

@media (max-width: 768px) {
    .onboarding-content {
        padding: 30px 20px;
        width: 95%;
    }

    .onboarding-header h2 {
        font-size: 1.6em;
    }

    .onboarding-step .step-icon {
        font-size: 2.5em;
    }

    .onboarding-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .onboarding-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* ===== ENHANCED ANIMATIONS ===== */

.no-animations .onboarding-step,
.no-animations .step-dot,
.no-animations .onboarding-btn {
    animation: none !important;
    transition: none !important;
}

.no-animations .technique-animation * {
    animation: none !important;
}

/* =
==== ENHANCED THEME TABLE STYLES ===== */

.theme-table-container {
    background: var(--bg-cream);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 12px var(--shadow-soft);
    overflow-x: auto;
}

.theme-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Times New Roman', serif;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-soft);
}

.theme-comparison-table thead {
    background: var(--nav-dark);
    color: white;
}

.theme-comparison-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-comparison-table tbody tr {
    border-bottom: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.theme-comparison-table tbody tr:hover {
    background: #f8f8f8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-comparison-table tbody tr.active {
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
    border-left: 4px solid var(--cassette-border);
}

.theme-comparison-table td {
    padding: 15px 12px;
    vertical-align: middle;
    border-right: 1px solid #f0f0f0;
}

.theme-comparison-table td:last-child {
    border-right: none;
}

/* Column Specific Styles */
.theme-col-select {
    width: 80px;
}

.theme-col-name {
    width: 180px;
}

.theme-col-preview {
    width: 120px;
}

.theme-col-colors {
    width: 200px;
}

.theme-col-mood {
    width: 140px;
}

.theme-col-description {
    width: auto;
    min-width: 250px;
}

/* Theme Selection Radio */
.theme-radio {
    display: flex;
    justify-content: center;
    align-items: center;
}

.theme-radio input[type="radio"] {
    display: none;
}

.radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-label:hover {
    border-color: var(--cassette-border);
    transform: scale(1.1);
}

.radio-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

.theme-radio input[type="radio"]:checked+.radio-label {
    border-color: var(--cassette-border);
    background: var(--cassette-border);
}

.theme-radio input[type="radio"]:checked+.radio-label .radio-dot {
    background: white;
}

/* Theme Name Styling */
.name-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.name-container h4 {
    margin: 0;
    font-size: 1.1em;
    color: var(--text-dark);
}

.theme-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-tag.default {
    background: #4CAF50;
    color: white;
}

.theme-tag.cozy {
    background: #FF9800;
    color: white;
}

.theme-tag.calm {
    background: #2196F3;
    color: white;
}

.theme-tag.focused {
    background: #9C27B0;
    color: white;
}

.theme-tag.timeless {
    background: #795548;
    color: white;
}

/* Mini Cassette Preview */
.mini-cassette {
    width: 80px;
    height: 50px;
    border-radius: 6px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px;
    margin: 0 auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.mini-reel {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid;
    position: relative;
}

.mini-reel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.mini-display {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6em;
    font-weight: bold;
    text-transform: uppercase;
}

/* Theme-specific mini cassette styles */
.vintage-style {
    background: #d4c4a8;
    color: #8b7355;
    border: 1px solid #8b7355;
}

.warm-paper-style {
    background: #f4e6d7;
    color: #d4a574;
    border: 1px solid #d4a574;
}

.dusty-teal-style {
    background: #b8d4da;
    color: #5f9ea0;
    border: 1px solid #5f9ea0;
}

.typewriter-style {
    background: #f5f5f5;
    color: #666666;
    border: 1px solid #666666;
}

.classic-sepia-style {
    background: #deb887;
    color: #a0522d;
    border: 1px solid #a0522d;
}

/* Color Palette Display */
.color-palette {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    justify-content: center;
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-swatch:hover {
    transform: scale(1.2);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.color-swatch:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7em;
    white-space: nowrap;
    z-index: 20;
}

.color-codes {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7em;
    color: var(--text-medium);
    text-align: center;
}

/* Mood Tags */
.mood-tags {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mood-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.7em;
    font-weight: bold;
    text-align: center;
    text-transform: capitalize;
}

.mood-tag.warm {
    background: #ffebcd;
    color: #8b4513;
}

.mood-tag.classic {
    background: #f5f5dc;
    color: #654321;
}

.mood-tag.nostalgic {
    background: #faf0e6;
    color: #a0522d;
}

.mood-tag.soft {
    background: #fff8dc;
    color: #daa520;
}

.mood-tag.gentle {
    background: #f0f8ff;
    color: #4682b4;
}

.mood-tag.cozy {
    background: #ffe4e1;
    color: #cd5c5c;
}

.mood-tag.calm {
    background: #e0f6ff;
    color: #008b8b;
}

.mood-tag.serene {
    background: #f0ffff;
    color: #2f4f4f;
}

.mood-tag.vintage {
    background: #f5f5dc;
    color: #696969;
}

.mood-tag.focused {
    background: #f8f8ff;
    color: #483d8b;
}

.mood-tag.minimal {
    background: #f5f5f5;
    color: #2f2f2f;
}

.mood-tag.sharp {
    background: #ffffff;
    color: #000000;
    border: 1px solid #ccc;
}

.mood-tag.timeless {
    background: #fdf5e6;
    color: #8b4513;
}

.mood-tag.elegant {
    background: #fff8dc;
    color: #b8860b;
}

/* Theme Description */
.theme-description {
    line-height: 1.5;
    color: var(--text-medium);
    font-size: 0.95em;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .theme-table-container {
        overflow-x: scroll;
    }

    .theme-comparison-table {
        min-width: 1000px;
    }
}

@media (max-width: 768px) {
    .theme-table-container {
        padding: 15px;
        margin: 15px 0;
    }

    .theme-comparison-table th,
    .theme-comparison-table td {
        padding: 10px 8px;
        font-size: 0.9em;
    }

    .color-palette {
        flex-wrap: wrap;
        gap: 4px;
    }

    .color-swatch {
        width: 20px;
        height: 20px;
    }

    .mood-tags {
        gap: 2px;
    }

    .mood-tag {
        font-size: 0.65em;
        padding: 2px 6px;
    }
}

/* Table Header Styling */
.theme-comparison-table th {
    background: linear-gradient(135deg, var(--nav-dark), #3a3a3a);
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Enhanced Row Interactions */
.theme-row {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-row:hover .mini-cassette {
    transform: scale(1.05);
}

.theme-row:hover .color-swatch {
    transform: scale(1.1);
}

.theme-row.active .mini-cassette {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Animation for theme selection */
@keyframes themeSelect {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.theme-row.active {
    animation: themeSelect 0.5s ease-in-out;
}

/*=====THEME SELECTION FEEDBACK=====*/
.theme-selection-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--cassette-border);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-family: 'Times New Roman', serif;
}

.feedback-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feedback-icon {
    font-size: 1.2em;
}

.feedback-text {
    font-weight: bold;
    font-size: 0.95em;
}

/* ===== TABLE ACCESSIBILITY IMPROVEMENTS ===== */

.theme-comparison-table {
    border: 2px solid var(--border-dark);
}

.theme-comparison-table th {
    border-bottom: 2px solid var(--border-dark);
}

.theme-row:focus-within {
    outline: 2px solid var(--cassette-border);
    outline-offset: 2px;
}

.radio-label:focus {
    outline: 2px solid var(--cassette-border);
    outline-offset: 2px;
}

/* ===== ENHANCED HOVER EFFECTS ===== */

.theme-row:hover .mini-cassette .mini-reel {
    animation: miniReelSpin 2s linear infinite;
}

@keyframes miniReelSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.theme-row:hover .color-swatch {
    animation: colorPulse 1s ease-in-out infinite alternate;
}

@keyframes colorPulse {
    from {
        opacity: 0.8;
    }

    to {
        opacity: 1;
    }
}

/* ===== THEME TABLE LEGEND ===== */

.theme-table-legend {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-cream);
    border-radius: 8px;
    border-left: 4px solid var(--cassette-border);
}

.legend-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    font-size: 0.9em;
    color: var(--text-medium);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-icon {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ==
=== THEME PALETTE GRID STYLES ===== */

.theme-palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.theme-palette-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    border: 3px solid transparent;
}

.theme-palette-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.theme-palette-card.active {
    border-color: var(--cassette-border);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 115, 85, 0.3);
}

.palette-header {
    background: var(--nav-dark);
    color: white;
    padding: 15px 20px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.palette-header input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--cassette-border);
    cursor: pointer;
}

.palette-title {
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    font-size: 0.9em;
    letter-spacing: 1px;
    cursor: pointer;
    flex: 1;
}

.default-badge {
    background: #4CAF50;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.color-blocks {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 0.8fr;
    height: 120px;
}

.color-block {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.color-block:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.color-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75em;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

.color-block:hover .color-code {
    opacity: 1;
}

/* Specific color block styling for better contrast */
.color-block[style*="#ffffff"] .color-code,
.color-block[style*="#f5f5f5"] .color-code,
.color-block[style*="#faf6f0"] .color-code,
.color-block[style*="#f4f1e8"] .color-code,
.color-block[style*="#e8dcc0"] .color-code,
.color-block[style*="#e8f4f8"] .color-code {
    color: #333;
    background: rgba(255, 255, 255, 0.8);
    text-shadow: none;
}

.color-block[style*="#2c2c2c"] .color-code,
.color-block[style*="#000000"] .color-code,
.color-block[style*="#654321"] .color-code,
.color-block[style*="#8b4513"] .color-code,
.color-block[style*="#2f4f4f"] .color-code {
    color: white;
    background: rgba(0, 0, 0, 0.3);
}

.palette-mood {
    padding: 15px 20px;
    text-align: center;
    font-size: 0.85em;
    color: var(--text-medium);
    font-style: italic;
    background: #fafafa;
    border-top: 1px solid #eee;
}

/* Responsive Design */
@media (max-width: 768px) {
    .theme-palette-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 20px 0;
    }

    .theme-palette-card {
        margin: 0 10px;
    }

    .palette-header {
        padding: 12px 15px;
    }

    .palette-title {
        font-size: 0.8em;
    }

    .color-blocks {
        height: 100px;
    }

    .color-code {
        font-size: 0.65em;
        padding: 3px 6px;
    }

    .palette-mood {
        padding: 12px 15px;
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .color-blocks {
        height: 80px;
    }

    .color-code {
        font-size: 0.6em;
        padding: 2px 4px;
    }
}

/* Animation for palette selection */
@keyframes paletteSelect {
    0% {
        transform: scale(1) translateY(-3px);
    }

    50% {
        transform: scale(1.02) translateY(-5px);
    }

    100% {
        transform: scale(1) translateY(-3px);
    }
}

.theme-palette-card.active {
    animation: paletteSelect 0.5s ease-in-out;
}

/* Enhanced hover effects */
.theme-palette-card:hover .color-block {
    filter: brightness(1.05);
}

.theme-palette-card:hover .palette-mood {
    background: #f0f0f0;
}

/* =====
 THEME INSTRUCTION STYLES ===== */

.theme-info {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.theme-instruction {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95em;
    color: var(--text-medium);
    margin: 0;
}

.instruction-icon {
    font-size: 1.2em;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Enhanced theme selection feedback */
.theme-selection-feedback {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 
===== IMPROVED RESULT MODAL STYLES ===== */

.result-display.modal-style {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.result-display.modal-style.active {
    opacity: 1;
    visibility: visible;
}

.result-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.result-modal {
    background: var(--bg-cream);
    border: 3px solid var(--cassette-border);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    font-family: 'Times New Roman', serif;
}

.result-header {
    background: var(--nav-dark);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 13px 13px 0 0;
}

.result-title {
    margin: 0;
    font-size: 1.4em;
    font-weight: bold;
    letter-spacing: 1px;
}

.result-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.result-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.result-body {
    padding: 30px;
    text-align: center;
}

.result-message {
    font-size: 1.1em;
    color: var(--text-medium);
    margin-bottom: 20px;
    line-height: 1.6;
}

.user-thought {
    background: var(--sticky-yellow);
    border: 2px solid #e6d700;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    font-style: italic;
    font-size: 1em;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.user-thought::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 2em;
    color: #e6d700;
    font-weight: bold;
}

.user-thought::after {
    content: '"';
    position: absolute;
    bottom: -20px;
    right: 10px;
    font-size: 2em;
    color: #e6d700;
    font-weight: bold;
}

.archive-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px 15px;
    margin: 15px 0;
    font-size: 0.9em;
    color: var(--text-medium);
}

.archive-date {
    font-weight: bold;
}

.archive-id {
    font-family: 'JetBrains Mono', monospace;
    background: var(--cassette-border);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
}

.result-affirmation {
    background: linear-gradient(135deg, #e8f5e8, #d4f4d4);
    border-left: 4px solid #4CAF50;
    padding: 15px;
    margin: 20px 0;
    font-weight: bold;
    color: #2e7d32;
    border-radius: 0 8px 8px 0;
}

.result-actions {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

.result-btn {
    background: var(--cassette-border);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Times New Roman', serif;
}

.result-btn:hover {
    background: var(--reel-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive modal */
@media (max-width: 768px) {
    .result-modal {
        width: 95%;
        margin: 10px;
    }

    .result-header {
        padding: 15px;
    }

    .result-title {
        font-size: 1.2em;
    }

    .result-body {
        padding: 20px;
    }

    .result-actions {
        padding: 15px 20px;
    }
}

/* =====
 COMPACT THEME TABLE STYLES ===== */

.theme-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 0 auto;
    border: 2px solid var(--border-light);
    max-width: 600px;
    width: 100%;
}

.theme-row {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.theme-row:last-child {
    border-bottom: none;
}

.theme-row:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.theme-row.active {
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
    border-left: 4px solid var(--cassette-border);
    transform: translateX(0);
}

.theme-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.theme-info input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--cassette-border);
    cursor: pointer;
}

.theme-name {
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    font-size: 1em;
    color: var(--text-dark);
    cursor: pointer;
    flex: 1;
}

.default-tag {
    background: #4CAF50;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7em;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.theme-colors {
    display: flex;
    gap: 2px;
    margin-left: auto;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.color-strip {
    width: 40px;
    height: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.color-strip:hover {
    transform: scaleY(1.2);
    z-index: 10;
}

/* Responsive Design */
@media (max-width: 768px) {
    .theme-table {
        max-width: 100%;
    }

    .theme-row {
        padding: 12px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .theme-info {
        min-width: auto;
        width: 100%;
    }

    .theme-colors {
        margin-left: 0;
        align-self: flex-end;
    }

    .color-strip {
        width: 35px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .theme-table {
        margin: 15px 0;
    }

    .theme-row {
        padding: 10px 12px;
    }

    .theme-name {
        font-size: 0.9em;
    }

    .color-strip {
        width: 30px;
        height: 20px;
    }
}

/* Animation for theme selection */
@keyframes themeRowSelect {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(3px);
    }

    100% {
        transform: translateX(0);
    }
}

.theme-row.active {
    animation: themeRowSelect 0.3s ease-in-out;
}

/* ===== THEME PALETTE GRID STYLES ===== */

.theme-palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.theme-palette-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    border: 3px solid transparent;
    position: relative;
}

.theme-palette-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.theme-palette-card.active {
    border-color: var(--cassette-border);
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(139, 115, 85, 0.4);
}

.palette-header {
    background: var(--nav-dark);
    color: white;
    padding: 18px 22px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.palette-header input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--cassette-border);
    cursor: pointer;
}

.palette-title {
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    font-size: 1em;
    letter-spacing: 1.2px;
    cursor: pointer;
    flex: 1;
}

.default-badge {
    background: #4CAF50;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.color-blocks {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 0.8fr;
    height: 140px;
    border: none;
}

.color-block {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    margin: 0;
}

.color-block:hover {
    transform: scale(1.08);
    z-index: 10;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.color-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8em;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.15);
    padding: 6px 10px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
/* ====
= MOOD CONSTELLATIONS ===== */

.moods-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.constellation-header {
    text-align: center;
    margin-bottom: 40px;
}

.constellation-header .section-title {
    font-family: 'Times New Roman', serif;
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.constellation-header .section-subtitle {
    font-family: 'Times New Roman', serif;
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.constellation-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Times New Roman', serif;
    color: var(--text-medium);
}

.info-icon {
    font-size: 18px;
}

/* Mood Selector */
.mood-selector-constellation {
    background: var(--cassette-beige);
    border: 2px solid var(--border-dark);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
}

.mood-selector-constellation h3 {
    font-family: 'Times New Roman', serif;
    font-size: 24px;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 25px;
}

.mood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.mood-star {
    position: relative;
    background: var(--paper-white);
    border: 2px solid var(--border-medium);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.mood-star:hover {
    transform: scale(1.1);
    border-color: var(--border-dark);
}

.mood-star.selected {
    transform: scale(1.15);
    border-color: var(--cassette-border);
    box-shadow: 0 0 20px rgba(139, 115, 85, 0.4);
}

.star-emoji {
    font-size: 28px;
    margin-bottom: 5px;
}

.star-label {
    font-family: 'Times New Roman', serif;
    font-size: 12px;
    color: var(--text-dark);
    font-weight: bold;
}

.star-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mood-star.selected .star-glow {
    opacity: 0.6;
}

/* Mood-specific glows */
.happy-glow { background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%); }
.excited-glow { background: radial-gradient(circle, rgba(255, 69, 0, 0.3) 0%, transparent 70%); }
.peaceful-glow { background: radial-gradient(circle, rgba(135, 206, 235, 0.3) 0%, transparent 70%); }
.grateful-glow { background: radial-gradient(circle, rgba(255, 182, 193, 0.3) 0%, transparent 70%); }
.neutral-glow { background: radial-gradient(circle, rgba(169, 169, 169, 0.3) 0%, transparent 70%); }
.thoughtful-glow { background: radial-gradient(circle, rgba(147, 112, 219, 0.3) 0%, transparent 70%); }
.anxious-glow { background: radial-gradient(circle, rgba(255, 165, 0, 0.3) 0%, transparent 70%); }
.sad-glow { background: radial-gradient(circle, rgba(70, 130, 180, 0.3) 0%, transparent 70%); }
.angry-glow { background: radial-gradient(circle, rgba(220, 20, 60, 0.3) 0%, transparent 70%); }

/* Constellation Map */
.constellation-map {
    background: var(--cassette-beige);
    border: 2px solid var(--border-dark);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
}

.constellation-map h3 {
    font-family: 'Times New Roman', serif;
    font-size: 24px;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 25px;
}

.galaxy-container {
    position: relative;
    background: linear-gradient(135deg, #0c0c2e 0%, #1a1a3e 50%, #2d2d5f 100%);
    border: 2px solid var(--border-dark);
    border-radius: 10px;
    overflow: hidden;
}

#constellationCanvas {
    display: block;
    width: 100%;
    height: 400px;
}

.galaxy-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.current-mood-display {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Times New Roman', serif;
}

.current-emoji {
    font-size: 20px;
}

.current-text {
    font-size: 14px;
}



/* Responsive Design */
@media (max-width: 768px) {
    .mood-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .mood-star {
        width: 80px;
        height: 80px;
    }
    
    .star-emoji {
        font-size: 24px;
    }
    
    .star-label {
        font-size: 10px;
    }
    
    .constellation-info {
        flex-direction: column;
        gap: 15px;
    }
    
    #constellationCanvas {
        height: 300px;
    }
}
/* Quick Mood Selector */
.quick-mood-selector {
    background: var(--paper-white);
    border: 2px solid var(--border-medium);
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    text-align: center;
    animation: slideDown 0.3s ease;
}

.mood-prompt {
    font-family: 'Times New Roman', serif;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.quick-moods {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-mood-btn {
    background: var(--cassette-beige);
    border: 2px solid var(--border-medium);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.quick-mood-btn.selected {
    transform: scale(1.15);
    border-color: var(--cassette-border);
    box-shadow: 0 0 10px rgba(139, 115, 85, 0.4);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}/*
 Performance Optimizations */

/* Enable hardware acceleration for smooth animations */
.mood-star,
.quick-mood-btn,
.cassette-btn,
.nav-item,
.theme-row {
    will-change: transform;
    transform: translateZ(0); /* Force hardware acceleration */
}

/* Optimize canvas rendering */
#constellationCanvas {
    image-rendering: optimizeSpeed;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
}

/* Reduce repaints for frequently updated elements */
.memory-cassette-card {
    contain: layout style paint;
}

/* Optimize text rendering */
.timeline-mood,
.timeline-date,
.cassette-date,
.mood-label {
    text-rendering: optimizeSpeed;
}

/* Reduce animation complexity on mobile */
@media (max-width: 768px) {
    .mood-star,
    .quick-mood-btn {
        transition: transform 0.1s ease;
    }
    
    /* Disable complex animations on mobile for better performance */
    .star-glow {
        display: none;
    }
    
    /* Simplify canvas on mobile */
    #constellationCanvas {
        height: 250px !important;
    }
}

/* Optimize scrolling performance */
.archive-grid {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Reduce layout thrashing */
.mood-grid,
.archive-grid,
.timeline-container {
    contain: layout;
}