/* styles.css - MindCare Web App Styles */

:root {
    --primary-color: #667eea;
    --primary-light: #a3bffa;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --bg-color: #f7fafc;
    --card-bg: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-light: #a0aec0;
    --border-color: #e2e8f0;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --error-color: #f56565;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
}

.lang-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.tool-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.tool-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* About Section */
.about-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-section p {
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

      .blog-content {
    max-width: 800px;
    margin: 50px auto;
    padding: 25px;
    background: #1e293b;
    border-radius: 15px;
    line-height: 1.7;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.blog-content h2 {
    margin-bottom: 15px;
    font-size: 24px;
}

.blog-content h3 {
    margin-top: 15px;
    color: #a5b4fc;
}

.blog-content p {
    margin-bottom: 10px;
    color: #e2e8f0;
}

.blog-highlight {
    margin-top: 15px;
    font-weight: bold;
    color: #818cf8;
    text-align: center;
}

/* Mood Tracker */
.mood-selector {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

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

.mood-btn {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mood-btn:hover {
    transform: scale(1.05);
    border-color: var(--primary-light);
    background: white;
}

.mood-btn.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-light), white);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mood-emoji {
    font-size: 2.5rem;
    display: block;
}

.mood-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.mood-history {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.mood-history h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.history-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    animation: slideIn 0.3s ease;
}

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

.history-emoji {
    font-size: 1.5rem;
}

.history-info {
    flex: 1;
}

.history-mood {
    font-weight: 600;
    color: var(--text-primary);
}

.history-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.clear-btn {
    background: var(--error-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.clear-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Message Generator */
.message-generator {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.message-display {
    background: linear-gradient(135deg, #bcbaba, #d0d0d0);
    border: 2px solid var(--primary-light);
    border-radius: var(--radius);
    padding: 2rem;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.message-text {
    font-size: 1.55rem;
    font-weight: 700;
    color:#131313;
    line-height: 1.6;
    font-style: italic;
    animation: fadeIn 0.5s ease;
}

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

.placeholder-text {
    color: #181717;
    font-size: 1.1rem;
    font-weight: 700;
}

.message-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.primary-btn:active {
    transform: translateY(-1px);
}

.secondary-btn {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.875rem 1.75rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.secondary-btn:hover {
    background: var(--primary-color);
    color: white;
}

.secondary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.star-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.star-btn:hover,
.star-btn.active {
    opacity: 1;
    transform: scale(1.2);
}

.star-btn.active {
    color: #ed9223;
}

.favorites-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.favorites-container {
    display: grid;
    gap: 1rem;
}

.favorite-item {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #f6ad55;
    position: relative;
    padding-right: 3rem;
}

.remove-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--error-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
}

/* Overthinking Helper */
/* Additional styles for worry release page */

.worry-release-container {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.worry-input-section {
    padding: 2rem;
    background: linear-gradient(135deg, #667eea10, #764ba210);
    text-align: center;
}

.worry-input-section label {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.worry-text-input {
    width: 100%;
    max-width: 500px;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    margin-bottom: 1rem;
    text-align: center;
}

.worry-text-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.release-btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

.sky-container {
    position: relative;
    height: 400px;
    background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 50%, #f0f9ff 100%);
    overflow: hidden;
}

.clouds-background {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(white 20%, transparent 20%),
        radial-gradient(white 20%, transparent 20%);
    background-size: 100px 100px;
    background-position: 0 0, 50px 50px;
    opacity: 0.3;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    from { background-position: 0 0, 50px 50px; }
    to { background-position: 100px 0, 150px 50px; }
}
/* ///////////////////////////////// */

        /* Gentle Fade Away Styles */
        .fade-scene {
            position: relative;
            height: 500px;
            background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 30%, #7dd3fc 70%, #38bdf8 100%);
            overflow: hidden;
            border-radius: 0 0 var(--radius) var(--radius);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .clouds-bg {
            position: absolute;
            inset: 0;
            background: 
                radial-gradient(ellipse 80px 50px at 10% 20%, rgba(255,255,255,0.8) 50%, transparent 50%),
                radial-gradient(ellipse 120px 70px at 30% 40%, rgba(255,255,255,0.6) 50%, transparent 50%),
                radial-gradient(ellipse 100px 60px at 70% 30%, rgba(255,255,255,0.7) 50%, transparent 50%),
                radial-gradient(ellipse 140px 80px at 90% 50%, rgba(255,255,255,0.5) 50%, transparent 50%),
                radial-gradient(ellipse 90px 55px at 20% 70%, rgba(255,255,255,0.6) 50%, transparent 50%),
                radial-gradient(ellipse 110px 65px at 60% 80%, rgba(255,255,255,0.7) 50%, transparent 50%);
            animation: cloudDrift 20s ease-in-out infinite;
        }

        @keyframes cloudDrift {
            0%, 100% { transform: translateX(0); }
            50% { transform: translateX(30px); }
        }

        .floating-area {
            position: relative;
            width: 400px;
            height: 300px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .worry-card {
            position: relative;
            background: rgba(255, 255, 255, 0.95);
            padding: 30px 40px;
            border-radius: 20px;
            box-shadow: 
                0 10px 40px rgba(0,0,0,0.1),
                0 0 0 1px rgba(255,255,255,0.5) inset;
            max-width: 350px;
            min-width: 250px;
            text-align: center;
            transition: all 0.1s linear;
            z-index: 10;
            border: none;
            display: none;
        }

        .worry-card.active {
            display: block;
        }

        .worry-card #worryText {
            font-size: 1.25rem;
            color: #1e293b;
            font-weight: 500;
            line-height: 1.6;
            display: block;
            word-wrap: break-word;
        }

        .worry-card.fading {
            animation: gentleFade 8s ease-in forwards;
        }

        @keyframes gentleFade {
            0% {
                opacity: 1;
                filter: blur(0px);
                transform: translateY(0) scale(1);
                box-shadow: 0 10px 40px rgba(0,0,0,0.1);
            }
            15% {
                opacity: 0.9;
                filter: blur(0.5px);
                transform: translateY(-10px) scale(0.99);
                box-shadow: 0 15px 50px rgba(0,0,0,0.08);
            }
            30% {
                opacity: 0.75;
                filter: blur(1px);
                transform: translateY(-25px) scale(0.97);
                box-shadow: 0 20px 60px rgba(0,0,0,0.06);
            }
            45% {
                opacity: 0.6;
                filter: blur(2px);
                transform: translateY(-45px) scale(0.94);
                box-shadow: 0 25px 70px rgba(0,0,0,0.04);
            }
            60% {
                opacity: 0.4;
                filter: blur(4px);
                transform: translateY(-70px) scale(0.9);
                box-shadow: 0 30px 80px rgba(0,0,0,0.02);
            }
            75% {
                opacity: 0.2;
                filter: blur(7px);
                transform: translateY(-100px) scale(0.85);
                box-shadow: 0 35px 90px rgba(0,0,0,0.01);
            }
            90% {
                opacity: 0.05;
                filter: blur(12px);
                transform: translateY(-140px) scale(0.8);
                box-shadow: none;
            }
            100% {
                opacity: 0;
                filter: blur(20px);
                transform: translateY(-180px) scale(0.75);
                box-shadow: none;
            }
        }

        .particle {
            position: absolute;
            width: 8px;
            height: 8px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 50%;
            pointer-events: none;
            animation: particleFloat 6s ease-out forwards;
        }

        @keyframes particleFloat {
            0% {
                transform: translateY(0) translateX(0) scale(1);
                opacity: 0.8;
            }
            100% {
                transform: translateY(-200px) translateX(var(--drift)) scale(0.2);
                opacity: 0;
            }
        }

        .breeze-line {
            position: absolute;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
            border-radius: 1px;
            animation: breeze 4s ease-in-out forwards;
            opacity: 0;
        }

        @keyframes breeze {
            0% {
                opacity: 0;
                transform: translateX(-100px) scaleX(0.5);
            }
            20% {
                opacity: 0.6;
            }
            80% {
                opacity: 0.4;
            }
            100% {
                opacity: 0;
                transform: translateX(100px) scaleX(1.5);
            }
        }

        .peace-message {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            color: #1e293b;
            opacity: 0;
            transition: all 1.5s ease;
            z-index: 20;
            padding: 2.5rem;
            max-width: 450px;
            background: rgba(255,255,255,0.9);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.1);
        }

        .peace-message.visible {
            opacity: 1;
            animation: gentlePulse 3s ease-in-out infinite;
        }

        @keyframes gentlePulse {
            0%, 100% { transform: translate(-50%, -50%) scale(1); }
            50% { transform: translate(-50%, -50%) scale(1.02); }
        }

        .peace-message h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: #0ea5e9;
            font-weight: 700;
        }

        .peace-message p {
            font-size: 1.1rem;
            line-height: 1.8;
            color: #475569;
            font-weight: 400;
        }

        .timer-display {
            position: absolute;
            top: 20px;
            right: 20px;
            color: #64748b;
            font-size: 0.9rem;
            opacity: 0;
            transition: opacity 0.5s ease;
            background: rgba(255,255,255,0.8);
            padding: 8px 16px;
            border-radius: 20px;
            font-weight: 500;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }

        .timer-display.visible {
            opacity: 1;
        }

        .worry-input-section {
            background: linear-gradient(135deg, #e0f2fe, #bae6fd);
            padding: 2.5rem;
        }

        .worry-input-section label {
            color: #0369a1;
            font-size: 1.3rem;
            margin-bottom: 1.2rem;
            font-weight: 600;
        }

        .worry-text-input {
            background: rgba(255,255,255,0.9);
            border: 2px solid rgba(14, 165, 233, 0.3);
            color: #1e293b;
            font-size: 1.1rem;
            padding: 1rem 1.5rem;
            max-width: 500px;
            border-radius: 12px;
        }

        .worry-text-input::placeholder {
            color: #94a3b8;
        }

        .worry-text-input:focus {
            background: rgba(255,255,255,1);
            border-color: #0ea5e9;
            box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
            outline: none;
        }

        .release-btn {
            background: linear-gradient(135deg, #0ea5e9, #0284c7);
            box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
            font-size: 1.2rem;
            padding: 1.1rem 2.5rem;
            border: none;
        }

        .release-btn:hover {
            box-shadow: 0 6px 30px rgba(14, 165, 233, 0.6);
            transform: translateY(-3px);
        }

        .release-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .ground-hint {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            color: #64748b;
            font-style: italic;
            font-size: 0.95rem;
            text-align: center;
            width: 100%;
        }

        @media (max-width: 768px) {
            .fade-scene {
                height: 450px;
            }

            .floating-area {
                width: 320px;
                height: 250px;
            }

            .worry-card {
                max-width: 280px;
                padding: 25px 30px;
            }

            .worry-card #worryText {
                font-size: 1.1rem;
            }

            .peace-message {
                max-width: 300px;
                padding: 1.5rem;
            }

            .peace-message h3 {
                font-size: 1.2rem;
            }

            .peace-message p {
                font-size: 0.95rem;
            }
        }

.calming-tools {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    text-align: center;
}

.calming-tools h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.tools-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tool-btn {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
    min-width: 200px;
}

.tool-btn:hover {
    border-color: var(--primary-color);
    background: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.grounding-exercise {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease;
}

.grounding-exercise h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.senses-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sense-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.sense-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.sense-name {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 150px;
}

.sense-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
}

.sense-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.finger-breathing {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.finger-breathing h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.finger-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hand-outline {
    width: 300px;
    height: 300px;
    border: 3px dashed var(--border-color);
    border-radius: 20px;
    position: relative;
    background: var(--bg-color);
}

.breath-path {
    position: absolute;
    inset: 20px;
}

.breath-dot {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
    left: 20%;
    bottom: 20%;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.breath-instruction {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.affirmation-display {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.affirmation-card {
    background: linear-gradient(135deg, #f8e2e2, #000000);
    border: 2px solid var(--success-color);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.affirmation-card p {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .sky-container {
        height: 300px;
    }
    
    .worry-balloon {
        width: 100px;
        height: 120px;
    }
    
    .hand-outline {
        width: 250px;
        height: 250px;
    }
    
    .sense-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .sense-input {
        width: 100%;
    }
}

/* Calm Zone */
.breathing-exercise {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    text-align: center;
}

.breathing-exercise h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.breathing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.breathing-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
    transition: transform 4s ease-in-out;
}

.breathing-circle.inhaling {
    transform: scale(1.3);
    background: linear-gradient(135deg, var(--success-color), var(--primary-color));
}

.breathing-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.breathing-instruction {
    color: var(--text-secondary);
    font-size: 1rem;
}

.bubble-game {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.bubble-game h2 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.bubble-game > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.game-container {
    background: linear-gradient(180deg, #e0f2fe, #bae6fd);
    border-radius: var(--radius);
    height: 400px;
    position: relative;
    overflow: hidden;
    cursor: crosshair;
}

.game-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), inset 0 -4px 6px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    animation: float 8s infinite ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    user-select: none;
    transition: transform 0.1s;
}

.bubble:hover {
    transform: scale(1.1);
}

.bubble:active {
    transform: scale(0.9);
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-10px); }
    75% { transform: translateY(-30px) translateX(5px); }
}

.bubble.popped {
    animation: pop 0.3s ease forwards;
}

@keyframes pop {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.8; }
    100% { transform: scale(0); opacity: 0; }
}

.game-stats {
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sound-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.sound-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.sound-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.sound-btn {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

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

.sound-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.sound-note {
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
}

/* Empty State */
.empty-state {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    font-style: italic;
}

/* Footer */
.footer {
    background-color: #102b45;
    color: rgb(240, 239, 239);
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}

.footer p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-link {
        padding: 0.75rem;
        width: 100%;
        text-align: center;
    }

    .nav-link.active::after {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .mood-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .breathing-circle {
        width: 150px;
        height: 150px;
    }

    .breathing-text {
        font-size: 1.25rem;
    }

    .game-container {
        height: 300px;
    }

    .message-controls {
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
    }

    .tool-card,
    .mood-selector,
    .mood-history,
    .message-generator,
    .input-section,
    .favorites-section,
    .breathing-exercise,
    .bubble-game,
    .sound-section {
        padding: 1.5rem;
    }

    .mood-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .mood-btn {
        padding: 1rem 0.5rem;
    }

    .mood-emoji {
        font-size: 2rem;
    }

    .mood-label {
        font-size: 0.8rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a202c;
        --card-bg: #2d3748;
        --text-primary: #f7fafc;
        --text-secondary: #cbd5e0;
        --text-light: #a0aec0;
        --border-color: #4a5568;
    }

    .worry-input {
        background: #2d3748;
        color: var(--text-primary);
    }

    .sound-btn {
        background: #4a5568;
        color: var(--text-primary);
    }

    .game-overlay {
        background: rgba(45, 55, 72, 0.9);
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-in {
    animation: slideIn 0.3s ease;
}