body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #141414;
    margin: 0;
    padding: 0;
    height: 100%;
    color: #fff;
    --primary-color: #4285f4;
    --secondary-color: #34a853;
    --accent-color: #fbbc05;
    --danger-color: #ea4335;
    --text-color: #ffffff;
    --text-secondary: #cccccc;
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition-default: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ====== Canvas шума ====== */
#noiseCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.1;
    z-index: -1;
    filter: contrast(120%);
}

/* ====== Прелоадер ====== */
#preloader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #141414, #1e1e1e);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 1;
    transition: opacity 1.2s ease;
}

#preloaderCanvas {
    width: 100%;
    height: 100%;
}

/* ====== Карта (Leaflet) ====== */
#map {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.leaflet-control-attribution {
    display: none !important;
}

/* Custom map controls */
.map-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-default);
    pointer-events: none;
}

.map-control-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-default);
    box-shadow: var(--glass-shadow);
}

.map-control-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.map-control-button svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
}

body.map-active .map-controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ====== Главный экран ====== */
#mainScreen {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8), rgba(30, 30, 30, 0.7));
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1000;
    overflow-y: auto;
}

body.loaded #mainScreen {
    opacity: 1;
    pointer-events: auto;
    animation: fadeIn 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screenContainer {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 40px 0;
    gap: 40px;
}

/* Logo animation */
.logo {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.logo svg {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

/* Левая панель */
.leftPanel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;

    /* Glassmorphism effect */
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);

    /* Animations */
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 1s 0.3s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.leftPanel h1 {
    font-size: 2.4rem;
    color: var(--text-color);
    margin-bottom: 0px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #ffffff, #bbbbbb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.leftPanel h3 {
    color: var(--accent-color);
    margin: 5px 0 12px 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Новая секция с преимуществами серии */
.streak-benefits {
    background: linear-gradient(145deg, rgba(66, 133, 244, 0.15), rgba(52, 168, 83, 0.15));
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.streak-benefits:hover {
    transform: translateY(0px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.streak-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.streak-icon {
    font-size: 24px;
    margin-right: 12px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.streak-header h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 600;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.benefit-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    padding: 6px 12px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.benefit-icon {
    margin-right: 12px;
    font-size: 18px;
}

.benefit-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Feature section */
.feature-section {
    margin-bottom: 8px;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.05);
}

.feature svg {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    fill: var(--secondary-color);
}

.feature span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.button-container {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leftPanel .ctaButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color) !important;
    background: var(--primary-color);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-default);
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
    border: none;
}

.leftPanel .ctaButton:hover {
    background: #5a94f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(66, 133, 244, 0.4);
}

.leftPanel .secondaryButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color) !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-default);
}

.leftPanel .secondaryButton:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.leftPanel .secondaryButton svg,
.leftPanel .ctaButton svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

/* Правая панель */
.rightPanel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;

    /* Glassmorphism effect */
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);

    /* Animations */
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 1s 0.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.rightPanel h2 {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 25px;
    letter-spacing: -0.5px;
    font-weight: 600;
}

.rightPanel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.rightPanel ul li {
    font-size: 1.1rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 15px;
    border-radius: 12px;
    transition: var(--transition-default);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rightPanel ul li .city-info {
    display: flex;
    flex-direction: column;
}

.rightPanel ul li .city-name {
    font-weight: 500;
}

.rightPanel ul li .city-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.rightPanel ul li .city-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition-default);
}

.rightPanel ul li .city-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--text-color);
}

.rightPanel ul li:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rightPanel ul li:hover .city-icon {
    background: var(--primary-color);
}

/* Background gradient animation */
.gradient-background {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -2;
    animation: gradientAnimation 15s ease infinite;
    background: linear-gradient(-45deg, #141414, #1a1a1a, #222222, #252525);
    background-size: 400% 400%;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%
    }
    50% {
        background-position: 100% 50%
    }
    100% {
        background-position: 0% 50%
    }
}


.footer {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 90%;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    z-index: 999;
    font-size: 0.8rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.footer:hover {
    opacity: 1;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
    transform: translateX(-50%) translateY(-2px);
}

/* Для обеспечения видимости элементов управления картой */
body.map-active .footer {
    bottom: 20px; /* Уменьшенный отступ от элементов управления картой */
}

/* Анимация появления футера */
body.loaded .footer {
    animation: footerFadeIn 1s ease forwards 0.5s;
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}


@keyframes footerFadeIn {
    to {
        opacity: 0.9;
        transform: translateX(-50%) translateY(0);
    }
}

/* Loading progress indicator */
.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1002;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    transition: width 0.3s ease;
}


body.map-active .map-legend {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ======= User Container Styles ======= */
.user-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 12px;
    transition: var(--transition-default);
    width: 100%;
    margin-top: 10px;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

.user-container:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
    margin-right: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: rgba(66, 133, 244, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.user-avatar svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-stats {
    display: flex;
    align-items: center;
    margin-top: 4px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
    gap: 8px;
}

.stat-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

.stat-icon {
    margin-right: 4px;
    font-size: 1em;
}

/* Стиль для серии отметок */
.stat-item:nth-child(2) {
    background: rgba(255, 193, 7, 0.2);
}

/* Стиль для избранного настроения */
.stat-item:nth-child(3) {
    background: rgba(76, 175, 80, 0.2);
}

.logout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(234, 67, 53, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(234, 67, 53, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-default);
    white-space: nowrap;
    flex-shrink: 0;
}

.logout-button:hover {
    background: rgba(234, 67, 53, 0.2);
    transform: translateY(-2px);
}

.logout-button svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.privacy-link-container {
    margin: 4px 0;
    text-align: center;
}

.privacy-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-default);
    padding: 5px 5px;
    border-radius: 8px;
}

.privacy-link:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.privacy-link svg {
    margin-right: 6px;
    opacity: 0.8;
}

.social-link-container {
    margin: 8px 0;
    text-align: center;
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-default);
    padding: 8px 15px;
    border-radius: 12px;
    background: linear-gradient(135deg, #27A7E7, #0088cc);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.telegram-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 136, 204, 0.5);
    background: linear-gradient(135deg, #2aafef, #0088cc);
}

.telegram-link:active {
    transform: translateY(-1px);
}

.telegram-link svg {
    margin-right: 8px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

/* Анимация иконки при наведении */
.telegram-link:hover svg {
    animation: telegramIconFloat 1.2s ease-in-out infinite;
}

@keyframes telegramIconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px) rotate(-5deg);
    }
}

.add-mood-button {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    padding: 5px 20px 5px 5px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    max-width: 220px !important;
    width: auto !important;
    white-space: nowrap;
}

body.map-active .add-mood-button {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.add-mood-button:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.add-mood-button:active {
    transform: translateX(-50%) translateY(-1px);
}

.add-mood-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
    box-sizing: border-box; /* Ensure padding is included in dimensions */
    aspect-ratio: 1/1; /* Force square shape */
    flex: 0 0 40px; /* Prevent flex resizing */
    min-width: 40px; /* Prevent shrinking */
    min-height: 40px; /* Prevent shrinking */
}

.add-mood-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Модальное окно выбора настроения */
.mood-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mood-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.mood-modal-content {
    width: 90%;
    max-width: 400px;
    max-height: 90vh; /* Ограничиваем высоту */
    overflow-y: auto; /* Добавляем прокрутку при необходимости */
    background: #1e1e1e;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}
.mood-modal.active .mood-modal-content {
    transform: translateY(0);
}

.mood-modal-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky; /* Фиксируем заголовок при прокрутке */
    top: 0;
    background: #1e1e1e;
    z-index: 1;
}

.mood-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: white;
}

.mood-modal-body {
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 10px;
}

.mood-option {
    flex: 1 0 45%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    border: 2px solid transparent;
}

.mood-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.mood-option.selected {
    border-color: var(--primary-color);
    background: rgba(66, 133, 244, 0.1);
}

.mood-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.mood-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.mood-icon.green-mood {
    background: rgba(52, 168, 83, 0.2);
    color: #34a853;
}

.mood-icon.yellow-mood {
    background: rgba(251, 188, 5, 0.2);
    color: #fbbc05;
}

.mood-icon.orange-mood {
    background: rgba(255, 138, 0, 0.2);
    color: #ff8a00;
}

.mood-icon.red-mood {
    background: rgba(234, 67, 53, 0.2);
    color: #ea4335;
}

.mood-name {
    font-weight: 500;
    color: white;
    margin-top: 5px;
}

.mood-instructions {
    padding: 0 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.5;
}

.mood-modal-footer {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-confirm {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s, opacity 0.2s;
}

.btn-confirm:hover {
    background: #5a94f5;
}

.btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.marker-instructions {
    position: fixed;
    top: 10px; 
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    z-index: 2500;
    width: 85%;
    max-width: 320px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.marker-instructions.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.instruction-header h3 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 1.1rem;
}

.instruction-body p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 5px 0;
}

.instruction-footer {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
}

/* Кастомный маркер */
.draggable-marker {
    width: 40px !important;
    height: 40px !important;
    margin-left: -20px !important;
    margin-top: -40px !important;
    cursor: grab;
    background-color: transparent !important;
    border: none !important;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.4));
}

.draggable-marker:active {
    cursor: grabbing;
}

.draggable-marker.green-marker .marker-icon {
    color: #34a853; 
}

.draggable-marker.yellow-marker .marker-icon {
    color: #fbbc05;
}

.draggable-marker.orange-marker .marker-icon {
    color: #ff8a00;
}

.draggable-marker.red-marker .marker-icon {
    color: #ea4335;
}

.marker-icon {
    width: 100%;
    height: 100%;
    display: block;
}

/* Радиус ограничения перемещения маркера */
.radius-circle {
    stroke: rgba(66, 133, 244, 0.6);
    stroke-width: 2;
    fill: rgba(66, 133, 244, 0.1);
    fill-opacity: 0.4;
}

/* Скрытие тултипа по умолчанию */
.tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.tooltip.visible {
    opacity: 1;
}

/* Mobile Responsive Styles */
@media (max-width: 900px) {
    .screenContainer {
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        height: auto;
        padding: 30px 0;
        gap: 25px;
    }

    .leftPanel, .rightPanel {
        margin: 0;
        width: auto;
        padding: 30px;
    }

    .rightPanel ul {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .leftPanel {
        padding: 20px;
    }
    
    .streak-benefits {
        padding: 15px;
        margin-bottom: 5px;
    }
    
    .streak-header h4 {
        font-size: 1rem;
    }
    
    .benefit-text {
        font-size: 0.9rem;
    }
    
    .benefit-icon {
        font-size: 16px;
    }
    
    .leftPanel h1 {
        font-size: 2rem;
    }
    
    .leftPanel h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .rightPanel h2 {
        font-size: 1.4rem;
    }

    .rightPanel ul li {
        font-size: 1rem;
        padding: 12px;
    }

    .button-container {
        flex-direction: column;
        gap: 10px;
    }

    .map-controls {
        bottom: 15px;
        right: 15px;
    }

    .map-legend {
        bottom: 15px;
        left: 15px;
    }
    
    .footer {
        display: none;
    }
    
    .user-container {
        padding: 10px 12px;
    }
    
    .user-stats {
        font-size: 0.8rem;
        margin-top: 3px;
        gap: 6px;
    }
    
    .stat-item {
        padding: 1px 6px;
    }
    
    .add-mood-icon {
        width: 34px;
        height: 34px;
        font-size: 20px;
        min-width: 34px;
        min-height: 34px;
        flex: 0 0 34px;
    }
    
    .add-mood-button {
        top: 19px;
        padding: 3px 15px 3px 3px;
        max-width: 200px !important;
    }
    
    .add-mood-label {
        font-size: 0.75rem;
    }
    
    .telegram-link, .privacy-link {
        font-size: 0.85rem;
    }
    
    /* Основной контейнер */
    .mood-modal-content {
        width: 92%;
        max-width: 320px;
        max-height: 80vh;
        margin: 0 auto;
    }
    
    /* Заголовок */
    .mood-modal-header {
        padding: 10px 15px;
    }
    
    .mood-modal-header h3 {
        font-size: 1rem;
    }
    
    .modal-close {
        font-size: 20px;
    }
    
    /* Тело модального окна */
    .mood-modal-body {
        padding: 10px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    /* Опции настроения - преобразуем в компактные строки */
    .mood-option {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 8px 10px;
        border-radius: 8px;
    }
    
    .mood-option.selected {
        border-width: 1px;
    }
    
    /* Иконки настроения - делаем компактнее */
    .mood-icon {
        width: 36px;
        height: 36px;
        margin-right: 12px;
        margin-bottom: 0;
    }
    
    .mood-icon svg {
        width: 22px;
        height: 22px;
    }
    
    /* Текст более компактный */
    .mood-name {
        font-size: 0.95rem;
    }
    
    /* Инструкции */
    .mood-instructions {
        padding: 5px 10px 10px;
        font-size: 0.8rem;
    }
    
    .mood-instructions p {
        margin: 5px 0;
        line-height: 1.3;
    }
    
    /* Футер с кнопками */
    .mood-modal-footer {
        padding: 10px;
    }
    
    /* Кнопки */
    .btn-cancel, .btn-confirm {
        padding: 8px 14px;
        font-size: 0.9rem;
        border-radius: 6px;
    }
    
    .marker-instructions {
        width: 80%;
        max-width: 280px;
        padding: 10px 14px;
    }
    
    .instruction-header h3 {
        margin: 0 0 8px 0;
        font-size: 1rem;
    }
    
    .instruction-body p {
        font-size: 0.85rem;
        margin: 4px 0;
        line-height: 1.4;
    }
    
    #confirmLocation {
        padding: 8px 14px;
        font-size: 0.9rem;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .screenContainer {
        width: 95%;
        padding: 20px 0;
    }

    .leftPanel, .rightPanel {
        padding: 20px;
    }
    
    .leftPanel {
        padding: 15px;
    }
    
    .streak-benefits {
        padding: 12px;
    }
    
    .streak-header {
        margin-bottom: 10px;
    }
    
    .streak-icon {
        font-size: 20px;
        margin-right: 8px;
    }
    
    .streak-header h4 {
        font-size: 0.95rem;
    }
    
    .benefits-list {
        gap: 8px;
    }
    
    .benefit-item {
        padding: 8px 10px;
    }
    
    .benefit-icon {
        font-size: 14px;
        margin-right: 8px;
    }
    
    .benefit-text {
        font-size: 0.85rem;
    }
    
    .feature svg {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }
    
    .feature span {
        font-size: 0.85rem;
    }

    .leftPanel h1 {
        font-size: 1.8rem;
    }

    .leftPanel p {
        font-size: 0.95rem;
    }

    .rightPanel h2 {
        font-size: 1.3rem;
    }

    .rightPanel ul {
        grid-template-columns: 1fr;
    }
    
    .social-link-container, 
    .privacy-link-container {
        margin: 8px 0;
    }
    
    .user-stats {
        margin-top: 2px;
    }
    
    .stat-item {
        padding: 1px 4px;
        font-size: 0.75rem;
    }
    
    .stat-icon {
        margin-right: 2px;
    }
    
    .add-mood-button {
        max-width: 180px !important;
    }
}

@media (max-width: 360px) {
    .leftPanel h3 {
        font-size: 1.05rem;
    }
    
    .streak-header h4 {
        font-size: 0.9rem;
    }
    
    .streak-icon {
        font-size: 18px;
        margin-right: 6px;
    }
    
    .benefit-item {
        padding: 6px 8px;
    }
    
    .benefit-icon {
        margin-right: 6px;
    }
    
    .benefit-text {
        font-size: 0.8rem;
    }
    
    .mood-modal-content {
        width: 94%;
        max-height: 85vh;
    }
    
    .mood-option {
        padding: 6px 8px;
    }
    
    .mood-icon {
        width: 30px;
        height: 30px;
        margin-right: 8px;
    }
    
    .mood-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .mood-name {
        font-size: 0.85rem;
    }
    
    .btn-cancel, .btn-confirm {
        padding: 7px 12px;
        font-size: 0.85rem;
    }
    
    .marker-instructions {
        width: 85%;
        max-width: 260px;
        padding: 8px 12px;
    }
    
    .instruction-header h3 {
        font-size: 0.95rem;
    }
    
    .instruction-body p {
        font-size: 0.8rem;
        margin: 3px 0;
    }
    
    #confirmLocation {
        padding: 7px 12px;
        font-size: 0.85rem;
    }
    
    .add-mood-button {
        padding: 2px 10px 2px 2px;
    }
    
    .add-mood-icon {
        width: 30px;
        height: 30px;
        font-size: 18px;
        margin-right: 4px;
        min-width: 30px;
        min-height: 30px;
        flex: 0 0 30px;
    }
    
    .add-mood-label {
        font-size: 0.7rem;
    }
    
    .user-avatar {
        width: 30px;
        height: 30px;
        min-width: 30px;
        margin-right: 6px;
    }
    
    .user-avatar svg {
        width: 18px;
        height: 18px;
    }
}

/* Вертикальная центровка модального окна на мобильных устройствах */
@media (max-height: 600px) {
    .mood-modal {
        align-items: flex-start;
        padding-top: 40px;
    }
    
    .mood-modal-content {
        max-height: 90vh;
    }
    
    .marker-instructions {
        top: 10px;
        max-height: calc(100vh - 150px);
        overflow-y: auto;
    }
}

/* Корректировка для экранов с малой высотой */
@media (max-height: 500px) {
    .history-modal {
        max-height: 85vh;
    }
    
    .mood-modal {
        align-items: flex-start;
        padding-top: 20px;
    }
}

/* Убираем выпадение за границы экрана */
.add-mood-button, .marker-instructions {
    max-width: calc(100vw - 30px);
}

/* Fallback для браузеров без поддержки backdrop-filter */
@supports not ((-webkit-backdrop-filter: blur(16px)) or (backdrop-filter: blur(16px))) {
    .leftPanel,
    .rightPanel,
    .map-controls,
    .map-legend,
    .tooltip,
    .footer {
        background: rgba(20, 20, 20, 0.85);
    }

    .leftPanel .ctaButton {
        background: var(--primary-color);
    }

    .map-control-button,
    .rightPanel ul li {
        background: rgba(40, 40, 40, 0.85);
    }
}

/* Side Menu Styles */
.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.95) 0%, rgba(10, 10, 15, 0.97) 100%);
    z-index: 1001; /* Больше чем у кнопки, но меньше модальных окон */
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
    overflow-y: auto;
    overflow-x: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.side-menu.active {
    transform: translateX(0);
}

.menu-header {
    position: relative;
    padding: 25px 20px 20px;
    background: linear-gradient(to bottom, rgba(30, 30, 50, 0.9), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 5px;
}

body.ldm-active .menu-toggle {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(20, 20, 20, 0.85) !important;
    transition: none !important;
}

body.ldm-active .side-menu {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(20, 20, 20, 0.85) !important;
}

.side-menu::-webkit-scrollbar {
    width: 8px;
    background-color: transparent;
}

.side-menu::-webkit-scrollbar-track {
    background-color: rgba(20, 20, 30, 0.3);
    border-radius: 10px;
    margin: 5px;
}

.side-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(66, 133, 244, 0.6), rgba(52, 168, 83, 0.6));
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.3s ease;
}

.side-menu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(66, 133, 244, 0.8), rgba(52, 168, 83, 0.8));
}

.side-menu {
    scrollbar-width: thin;
    scrollbar-color: rgba(66, 133, 244, 0.6) rgba(20, 20, 30, 0.3);
}

.side-menu {
    scroll-behavior: smooth;
}

@media (pointer: coarse) {
    .side-menu::-webkit-scrollbar {
        width: 10px;
    }
}

.menu-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
}

.menu-title-icon {
    margin-right: 12px;
    font-size: 22px;
    background: linear-gradient(135deg, #4285f4, #34a853);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.menu-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin: 6px 0 0 0;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 16px;
    transition: all 0.2s ease;
}

.close-menu:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.menu-content {
    padding: 15px 20px;
}

.section {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 20px;
}

.section:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.section-icon {
    font-size: 16px;
    margin-right: 10px;
    opacity: 0.8;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.emotions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.emotion-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.emotion-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
}

.emotion-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.emotion-info {
    flex: 1;
}

.emotion-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.emotion-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.filter-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.7);
}

.filter-button.active {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.2), rgba(66, 133, 244, 0.1));
    border-color: rgba(66, 133, 244, 0.5);
    box-shadow: 0 0 15px rgba(66, 133, 244, 0.2);
    color: white;
}

.filter-button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.filter-button .emotion-icon-small {
    margin-right: 6px;
    font-size: 14px;
}

.time-filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.time-filter-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

.time-filter-button.active {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.2), rgba(66, 133, 244, 0.1));
    border-color: rgba(66, 133, 244, 0.5);
    box-shadow: 0 0 15px rgba(66, 133, 244, 0.2);
    color: white;
}

.time-filter-button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.time-filter-icon {
    margin-right: 10px;
    font-size: 14px;
    opacity: 0.9;
}

.time-filter-info {
    flex: 1;
}

.time-count-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 400;
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.stat-box {
    flex: 1;
    min-width: 130px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.help-section {
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.6), rgba(20, 20, 30, 0.6));
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.help-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.help-title-icon {
    margin-right: 8px;
}

.help-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.help-button {
    display: inline-block;
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.help-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.menu-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px !important; /* Такая же ширина как у других кнопок */
    height: 44px !important; /* Такая же высота как у других кнопок */
    border-radius: 50%;
    background: var(--glass-bg, rgba(255, 255, 255, 0.07)) !important; /* Соответствует другим кнопкам */
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.3));
    z-index: 998; /* Должен быть меньше, чем у самого меню */
    color: white;
    font-size: 20px;
    transition: var(--transition-default, all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1));
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Emotion colors */
.joy { 
    background: linear-gradient(135deg, #FFEB3B, #FFD600);
    color: #5F4700;
}
.sadness { 
    background: linear-gradient(135deg, #2196F3, #0D47A1);
    color: white;
}
.anger { 
    background: linear-gradient(135deg, #F44336, #B71C1C);
    color: white;
}
.fear { 
    background: linear-gradient(135deg, #9C27B0, #4A148C);
    color: white;
}
.surprise { 
    background: linear-gradient(135deg, #FF9800, #E65100);
    color: white;
}
.disgust { 
    background: linear-gradient(135deg, #795548, #3E2723);
    color: white;
}
.calm { 
    background: linear-gradient(135deg, #8BC34A, #33691E);
    color: white;
}

.view-mode-control {
    background: rgba(20, 20, 30, 0.8);
    padding: 12px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    margin-bottom: 10px;
    width: 200px;
}

.view-mode-title {
    font-size: 13px;
    color: white;
    margin-bottom: 8px;
    font-weight: 500;
}

.view-mode-selector {
    width: 100%;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 13px;
    outline: none;
}

.view-mode-selector option {
    background-color: #1e1e2f;
    color: white;
}

.intensity-slider {
    width: 100%;
    margin-top: 10px;
}

.intensity-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

.map-legend {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 1000;
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    width: 150px;
}

.legend-title {
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    text-align: center;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.legend-item {
    display: flex;
    align-items: center;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-right: 8px;
}

.legend-name {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .side-menu {
        width: 280px;
    }
    
    .emotions-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-header {
        padding: 20px 15px 15px;
    }
    
    .menu-content {
        padding: 12px 15px;
    }
    
    .emotion-card {
        padding: 8px;
    }
    
    .emotion-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    .menu-toggle {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
    }
    
    .menu-toggle svg {
        width: 20px;
        height: 20px;
    }
    
    .welcome-title {
        font-size: 18px;
    }
    
    .welcome-text {
        font-size: 13px;
    }
    
    .view-mode-control {
        width: 160px;
    }
    
    .map-legend {
        left: 10px;
        bottom: 10px;
        padding: 8px;
        width: 130px;
    }
}

@media (max-width: 350px) {
    .side-menu {
        width: 100%;
    }
}
@media (max-width: 480px) {
    .menu-toggle {
        width: 36px;
        height: 36px;
        top: 12px;
        right: 12px;
    }
    
    .menu-toggle svg {
        width: 18px;
        height: 18px;
    }
}

/* Marker styles and emotion cluster */
.emotion-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.9);
    font-size: 18px;
    transition: transform 0.2s ease;
}

.emotion-marker:hover {
    transform: scale(1.1);
}

.emotion-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(20, 20, 30, 0.9);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    font-weight: 700;
    font-size: 16px;
}


.btn-back {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    box-sizing: border-box;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-confirm {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    box-sizing: border-box;
}

.btn-confirm:hover {
    background: #5a94f5;
    transform: translateY(-2px);
}

.btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.instruction-footer {
    margin-top: 15px;
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: 100%;
}

@media (max-width: 480px) {
    .instruction-footer {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-back, .btn-confirm {
        width: 100%;
        text-align: center;
    }
}


.add-mood-button.processing {
    background: #666666 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.add-mood-button.processing:hover {
    transform: translateX(-50%) translateY(0) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
}

.add-mood-button.processing .add-mood-icon {
    background: #999999;
    color: #666666;
}

.add-mood-button.processing .add-mood-label {
    color: rgba(255, 255, 255, 0.6);
}

@keyframes processing-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.9; }
}

.add-mood-button.processing {
    animation: processing-pulse 2s ease-in-out infinite;
}