﻿.astro-calendar-day-view {
    display: flex;
    flex-direction: column;
    gap: 0px;
    padding: 0px;
    width: 100%;
    min-height: 100px;
    width: 150px;
}

.astro-calendar-day-circle {
    font-family: 'Ysabeau Infant Regular', sans-serif;
    font-size: 20px;
    display: flex;
    justify-content: center;
    margin-top: -28px;
    margin-left: 40%; /* Центрирование по горизонтали */
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #F0F0EF;
}

.astro-calendar-month-day-circle-gray {
    font-family: 'Ysabeau Infant Regular', sans-serif;
    font-size: 40px;
    display: flex;
    justify-content: center;
    margin-top: -15px;
    margin-left: 32%; /* Центрирование по горизонтали */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: none;
    color: rgba(128, 128, 128, 0.4);
}

.astro-calendar-month-day-circle {
    font-family: 'Ysabeau Infant Regular', sans-serif;
    font-size: 40px;
    display: flex;
    justify-content: center;
    margin-top: -15px;
    margin-left: 32%; /* Центрирование по горизонтали */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: none;
}

.astro-calendar-day-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    margin-top: 20px;
}

.astro-calendar-month-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.astro-calendar-retro-planets {
    position: absolute;
    right: 10px;
    font-family: 'Wstartt', sans-serif;
    font-size: 10px;
    align-items: flex-end; /* Выравнивание по правому краю */
    display: flex;
    flex-direction: column;
    gap: 1px;
    /* margin-left: auto; Прижимаем к правому краю */
    white-space: nowrap; /* Запрет переноса текста */
    overflow: hidden; /* Запрет прокрутки */
    line-height: 1.2;
    z-index: 2; /* Под moon-phase-container */
}

.astro-calendar-retro-planets-month {
    font-family: 'Wstartt', sans-serif;
    font-size: 13px;
    align-items: flex-end; /* Выравнивание по правому краю */
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-left: auto; /* Прижимаем к правому краю */
    white-space: nowrap; /* Запрет переноса текста */
    overflow: hidden; /* Запрет прокрутки */
    line-height: 1.2;
    z-index: 2; /* Под moon-phase-container */
    padding: 5px;
}

.astro-calendar-retro-indicator {
    color: #333;
}

.astro-calendar-aspect-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    line-height: 1.2;
    font-size: 12px;
    padding-right: 90px; /* Отступ справа под размер moon-phase-container */
    position: relative;
    z-index: 2; /* Под moon-phase-container */
}

.astro-calendar-aspect-time {
    font-family: 'Ysabeau Infant Regular', sans-serif;
    color: #333;
    width: 25px;
}

.astro-calendar-aspect-description {
    font-family: 'Wstartt', sans-serif;
    color: #666;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    overflow: visible !important; /* Отображать весь текст */
    text-overflow: clip !important; /* Убрать многоточие */
}

.astro-calendar-good-aspect {
    color: #27ae60 !important; /* Зеленый для хороших аспектов */
}

.astro-calendar-bad-aspect {
    color: #ad0707 !important; /* Красный для плохих аспектов */
}

.astro-calendar-moon-transition {
    color: #3392cb !important; /* Переход луны в другой знак */
}

.astro-calendar-no-aspects {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 10px;
}

.astro-calendar-moon-phase-container {
    position: absolute; /* позиционирование */
    right: 0px; /* Прижимаем к правому краю */
    bottom: 0px;
    z-index: 1; /* Поверх других элементов */
}

.astro-calendar-moon-phase {
    width: 80px;
    height: 80px;
    margin-left: -10px;
    margin-bottom: 0px;
}

.astro-calendar-moon-info-right {
    display: flex;
    margin-top: auto;
}

.astro-calendar-moon-month-info-right {
    display: flex;
    position: relative !important;
    margin-top: auto;
}


.astro-calendar-moon-day-overlay {
    font-family: 'Ysabeau Infant Regular';
    position: absolute;
    margin-top: -30px;
    left: 60%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    text-align: right;
    white-space: nowrap;
}

.astro-calendar-moon-day-row {
    display: flex;
    justify-content: space-between;
    /*  font-family: sans-serif;*/
    /* margin-bottom: 4px;*/
}

.astro-calendar-moon-day-time {
    width: 10px; /* фиксированная ширина для выравнивания слева */
    text-align: left;
}

.astro-calendar-moon-day {
    width: 30px; /* фиксированная ширина для выравнивания справа */
    text-align: right;
}


.astro-calendar-zodiac-sign {
    font-family: 'Wstartt', sans-serif;
    font-size: 18px;
    position: absolute;
    /*margin-top: 5px;*/
    left: 30%;
    color: #666;
    white-space: nowrap;
    margin-top: 5px;
}

.astro-calendar-moon-speed {
    font-family: 'Ysabeau Infant Regular';
    font-weight: normal;
    font-size: 10px !important;
}

.astro-calendar-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

/* Принудительно растягиваем контент вниз */
.astro-calendar-body-month {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Занимает все доступное пространство */
    justify-content: space-between; /* Распределяем пространство */
}

.astro-calendar-aspects-list {
    flex: 1; /* Занимает доступное пространство */
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* ← прижимаем к низу */
}

.astro-calendar-month-picker-btn {
    background: #F0F0EF;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0px 0px;
    cursor: pointer;
    font-family: 'Ysabeau Infant Regular', sans-serif;
}

    .astro-calendar-month-picker-btn:hover {
        background: #e0e0e0;
    }

.astro-calendar-month-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.astro-calendar-month-days-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    align-items: stretch;
    justify-items: stretch;
}

.astro-calendar-day-view-month {
    display: flex;
    flex-direction: column;
    width: auto;
    min-height: 200px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(163, 140, 124, 0.3);
    border-radius: 12.3673px;
    padding: 5px;
    height: 275px; /*255px;*/
    width: 190px;
}

.astro-calendar-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    cursor: pointer;
}

.astro-calendar-month-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    cursor: default;
}

.astro-calendar-ekadashi {
    font-family: 'Ysabeau Regular';
    font-size: 10px;
    display: flex;
    flex-direction: column;
    margin-top: 35px;
}

.astro-calendar-ekadashi-month {
    position: absolute;
    font-family: 'Ysabeau Regular';
    font-size: 10px;
    display: flex;
    flex-direction: column;
    margin-top: 65px;
}

.astro-calendar-ekadashi-info {
    padding: 0px;
    margin-bottom: 5px;
    margin-top: -25px;
    z-index: 2;
}

.astro-calendar-ekadashi-name {
    font-weight: bold;
    color: #ad0707;
}

.astro-calendar-ekadashi-time {
    font-size: 10px;
    color: #666;
}

.astro-calendar-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 5px;
    padding: 2px;
}

.astro-calendar-controls-row {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

.astro-calendar-month-display {
    font-family: 'Ysabeau Infant Regular', sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    min-width: 50px;
    text-align: center;
}

.astro-calendar-eclipse-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.astro-moon-day-circle {
    position: absolute;
    margin-left: 25px;
    width: 35px;
    height: 35px;
}

.astro-moon-day-empty-circle {
    position: absolute;
    margin-left: 22px;
    width: 41px;
    height: 41px;
}

.astro-moon-month-empty-circle {
    position: absolute;
    margin-left: 22px;
    margin-top: -3px;
    width: 41px;
    height: 41px;
}

.astro-calendar-atlas-source-data-input {
    height: 22px;
    border: 1px solid #A38C7C;
    border-radius: 20px;
    font-family: 'Ysabeau Infant Medium';
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: #3F2E21;
    cursor: pointer;
}

.astro-calendar-btn-cities {
    margin-left: 10px;
    margin-top: -3px;
    background: none;
    border: none;
}

    .astro-calendar-btn-cities img {
        width: 20px;
        height: 20px;
    }

.landscape-a4 .astro-calendar-day-view-month {
    display: flex;
    flex-direction: column;
    /* width: auto;*/
    min-height: 220px;
    /*  background: rgba(255, 255, 255, 0.7);*/
    background: none;
    border: 1px solid rgba(163, 140, 124, 0.3);
    border-radius: 12.3673px;
    padding: 5px;
    height: 220px;
    width: 240px;
    /*margin-top: 20px;*/
}

.landscape-a4 .astro-calendar-month-days-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 1px !important; /* ← ТОЛЬКО расстояние между строками */
    column-gap: 10px !important; /* ← ТОЛЬКО расстояние между колонками */
    align-items: stretch;
    justify-items: stretch;
    margin-top: 100px;
}

.landscape-a4 .astro-calendar-month-container {
    display: flex;
    flex-direction: column;
    gap: 1px;
}


.landscape-a4 .astro-moon-day-circle {
    position: absolute;
    margin-left: 125px;
    width: 35px;
    height: 35px;
}

.landscape-a4 .astro-moon-month-empty-circle {
    position: absolute;
    margin-left: 122px;
    margin-top: -3px;
    width: 41px;
    height: 41px;
}

.landscape-a4 .astro-calendar-month-day-circle {
    font-family: 'Ysabeau Infant Regular', sans-serif;
    font-weight: bold;
    font-size: 40px;
    display: flex;
    justify-content: center;
    margin-top: -15px;
    margin-left: 32%; /* Центрирование по горизонтали */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: none;
}


.landscape-a4 .astro-calendar-aspects-list {
    flex: 1; /* Занимает доступное пространство */
    margin-top: -50px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* ← прижимаем к низу */
}

.landscape-a4 .astro-calendar-aspect-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 18px;
    line-height: 1;
    font-size: 17px;
    padding-right: 90px; /* Отступ справа под размер moon-phase-container */
    position: relative;
    z-index: 2; /* Под moon-phase-container */
}

.landscape-a4 .astro-calendar-ekadashi-month {
    position: absolute;
    font-family: 'Ysabeau Regular';
    font-size: 10px;
    display: flex;
    flex-direction: column;
    margin-top: 125px;
    margin-left: 155px;
}

.landscape-a4 .astro-calendar-ekadashi-time {
    font-size: 10px;
    color: #666;
    white-space: normal !important; /* ← разрешить перенос строк */
    word-wrap: break-word !important; /* ← переносить длинные слова */
    display: block !important; /* ← блочный элемент для переноса */
}

.landscape-a4 .astro-calendar-moon-day-overlay {
    font-family: 'Ysabeau Infant Regular';
    line-height: 1;
    position: absolute;
    margin-top: -30px;
    margin-left: -10px;
    left: 60%;
    transform: translate(-50%, -50%);
    font-size: 15px;
    text-align: right;
    white-space: nowrap;
}

/*.landscape-a4 .astro-calendar-month-day-circle-gray {
    font-family: 'Ysabeau Infant Regular', sans-serif;
    font-size: 0px;
    display: flex;
    justify-content: center;
    margin-top: -15px;
    margin-left: 32%;*/ /* Центрирование по горизонтали */
/*width: 60px;
    height: 60px;
    border-radius: 50%;
    background: none;
    color: rgba(128, 128, 128, 0.4);
}*/

.landscape-a4 .astro-calendar-moon-day {
    width: 50px; /* фиксированная ширина для выравнивания справа */
    text-align: right;
}

.landscape-a4 .astro-calendar-moon-speed {
    font-family: 'Ysabeau Infant Regular';
    font-size: 15px !important;
    margin-left: -4px;
}

.calendar-recommendations-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 150px;
}

.calendar-recommendation-section {
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.calendar-favorable {
    background: linear-gradient(135deg, #EDF4EA, #DEEEE0);
    border-left: 5px solid #6D9A55;
}

.calendar-unfavorable {
    background: linear-gradient(135deg, #FFFFFF, #EFD9D9);
    border-left: 5px solid #B76565;
}

    .calendar-unfavorable .calendar-section-header h3 {
        color: #f44336 !important;
    }

.calendar-neutral {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 5px solid #6c757d;
}

.calendar-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    padding-bottom: 15px;
}

    .calendar-section-header .calendar-icon {
        font-size: 2em;
    }

    .calendar-section-header h3 {
        margin: 0;
        color: #333;
        font-size: 1.5em;
    }

.calendar-subtitle {
    color: #666;
    font-style: italic;
    margin-left: auto;
}

.calendar-recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.calendar-recommendation-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

    .calendar-recommendation-card h4 {
        margin: 0 0 15px 0;
        color: #333;
        font-size: 1.1em;
        display: flex;
        align-items: center;
        gap: 8px;
    }

.calendar-values {
    font-size: 1.1em;
    font-weight: bold;
    color: #4CAF50;
}

    .calendar-values.warning {
        color: #f44336;
    }

    .calendar-values.calendar-neutral {
        color: #6c757d;
        border-left: none;
        background: none;
    }

.calendar-zodiac-item, .calendar-phase-item, .calendar-speed-item {
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 8px;
}

.calendar-speed-item-red {
    color: #f44336 !important;
}

.calendar-phase-item:last-child, .calendar-speed-item:last-child {
    margin-bottom: 0;
}

/*.speed-item.warning {
    background: #ffebee;
    border-left: 3px solid #f44336;
}*/

.calendar-speed-item.warning {
    background: linear-gradient(135deg, #FFFFFF, #EFD9D9);
    border-left: 3px solid #f44336;
}

.calendar-phase-item.warning {
    background: linear-gradient(135deg, #FFFFFF, #EFD9D9);
    border-left: 3px solid #f44336;
}

.calendar-zodiac-item.calendar-positive {
    background: linear-gradient(135deg, #FFFFFF, #EDF4EA);
    border-left: 3px solid #4CAF50;
}

.calendar-zodiac-item.calendar-neutral-positive {
    background: linear-gradient(135deg, #FFFFFF, #EDF4EA);
    border-left: 3px solid #FF9800;
}

.calendar-zodiac-item.calendar-negative {
    background: linear-gradient(135deg, #FFFFFF, #EFD9D9);
    border-left: 3px solid #f44336;
}

.calendar-zodiac-item.calendar-neutral-negative {
    background: #ffebee;
    border-left: 3px solid #9C27B0;
}

.calendar-description {
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
}

.calendar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.calendar-tag {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

    .calendar-tag.good {
        background: #8BB57A;
        color: white;
    }

.calendar-activities-list, .calendar-warning-list {
    background: rgba(255,255,255,0.7);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
}

    .calendar-activities-list h5, .calendar-warning-list h5 {
        margin: 0 0 15px 0;
        color: #333;
    }

    .calendar-activities-list ul, .calendar-warning-list ul {
        margin: 0;
        padding-left: 20px;
    }

    .calendar-activities-list li, .calendar-warning-list li {
        margin-bottom: 8px;
        line-height: 1.4;
    }

.calendar-warning-list {
    background: linear-gradient(135deg, #FFFFFF, #EFD9D9);
}

.calendar-expanded-zodiac {
    grid-column: 1 / -1;
    width: 100%;
}

    .calendar-expanded-zodiac .calendar-zodiac-items {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .calendar-expanded-zodiac .calendar-zodiac-item {
        width: 100%;
        margin-bottom: 8px;
    }

.calendar-left-menu-item-trigger {
    display: inline-flex; /* ✅ Устанавливаем размер по содержимому */
    align-items: center;
    justify-content: center;
    width: 100% !important; /* ✅ Ограничиваем ширину */
    /*    width: 250px !important;*/
    height: 25px;
    padding: 5px 2px; /* ✅ Компактные отступы */
    border-radius: 10px;
    border: 1px solid #c2b8ad !important;
    font-family: 'Ysabeau Infant Medium';
    font-style: normal;
    font-weight: 10;
    font-size: 10px;
    line-height: 10px;
    text-transform: uppercase;
    color: #3F2E21;
}

    /* При раскрытом меню заменяем иконку */
    .calendar-left-menu-item-trigger[data-state="open"] .dropdown-icon {
        background: url('../images/arrow_down.png') no-repeat center center;
        background-size: contain;
        border-radius: 10px;
        border: 1px solid #3F2E21 !important;
    }

    .calendar-left-menu-item-trigger:hover {
        background-color: #f9f9f9;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(63, 46, 33, 0.1);
    }

/* Стили для элементов вложенного (раскрывающегося) списка */
.calendar-left-menu-dropdown-menu-item {
    /* Применяем стиль шрифта для выпадающего списка */
    font-family: 'Ysabeau Infant Regular';
    font-style: normal;
    font-weight: 400 !important;
    font-size: 10px !important; /* ✅ Размер шрифта */
    color: #3F2E21 !important;
    margin-bottom: 5px !important;
    margin-top: 5px !important;
}

/* Стили для элементов вложенного (раскрывающегося) списка */
.calendar-dropdown-menu-item {
    /* Применяем стиль шрифта для выпадающего списка */
    font-family: 'Ysabeau Infant Regular';
    font-style: normal;
    font-weight: 100 !important;
    font-size: 10px !important; /* ✅ Размер шрифта */
    color: #3F2E21 !important;
    margin-bottom: 5px !important;
    margin-top: 5px !important;
}

.calendar-submenu:hover {
    border: 1px solid #A38C7C !important;
    transition: background 0.3s ease, border 0.3s ease;
    border-radius: 5px !important;
    margin-bottom: 10px !important;
}

.button-container {
    position: absolute !important;
    right: 200px !important; /* ✅ Меняем left на right - прижимаем к правому краю */
    display: flex;
    gap: 5px;
    opacity: 1 !important;
    flex-direction: row; /* ✅ Горизонтальное расположение */
    justify-content: flex-end; /* ✅ Прижимаем к правому краю */
    gap: 8px;
    padding: 8px 10px;
}

.menu-top-button {
    width: auto; /* ✅ Автоматическая ширина по содержимому */
    min-width: 120px; /* ✅ Минимальная ширина */
    justify-content: center; /* ✅ Можно оставить - центрирует текст внутри кнопки */
    padding: 6px 10px;
    flex: 0 0 auto; /* ✅ Запрещаем растягивание */
}

/* === МОБИЛЬНЫЕ СТИЛИ === */
@media (max-width: 768px) {    
    /* На мобильной тоже оставляем только две кнопки */
    /* Сначала скрываем все кнопки */

    /* Контейнер кнопок - исправляем позиционирование */
    .button-container {
        position: absolute !important;
        right: 200px !important; /* ✅ Меняем left на right - прижимаем к правому краю */
        top: 55px;
        display: flex;
        gap: 5px;
        opacity: 1 !important;
    }

    .white-button {
        min-width: 250px;
    }

    /*.button-container .menu-top-button {
        display: none !important;
    }*/

    /* Затем показываем только нужные */
    /*.button-container .menu-top-button:nth-child(4),
        .button-container .menu-top-button:nth-child(9) {
            display: flex !important;
        }*/

    .calendar-recommendations-container {
        margin-top: 110px;
        margin-left: 25px;
        gap: 15px;
        padding: 0 10px;
    }

    .calendar-recommendation-section {
        padding: 15px;
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .calendar-section-header {
        flex-wrap: wrap;
        gap: 8px;
    }

        .calendar-section-header h3 {
            font-size: 1.2em;
        }

        .calendar-section-header .calendar-icon {
            font-size: 1.3em;
        }

    .calendar-subtitle {
        font-size: 0.8em;
        margin-left: 0;
        width: 100%;
    }

    .calendar-recommendation-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 15px;
    }

    .calendar-recommendation-card {
        padding: 12px;
    }

        .calendar-recommendation-card h4 {
            font-size: 1em;
            margin-bottom: 8px;
        }

    .calendar-values {
        font-size: 0.95em;
        padding: 6px 10px;
    }

    .calendar-description {
        font-size: 0.85em;
        line-height: 1.4;
    }

    .calendar-zodiac-item,
    .calendar-phase-item,
    .calendar-speed-item {
        padding: 8px;
        margin-bottom: 8px;
        font-size: 0.85em;
    }

    .calendar-tags {
        gap: 3px;
    }

    .calendar-tag {
        padding: 2px 6px;
        font-size: 0.75em;
    }

    .calendar-activities-list,
    .calendar-warning-list {
        padding: 12px;
        margin-top: 12px;
    }

        .calendar-activities-list h5,
        .calendar-warning-list h5 {
            font-size: 0.95em;
            margin-bottom: 10px;
        }

        .calendar-activities-list li,
        .calendar-warning-list li {
            font-size: 0.85em;
            margin-bottom: 5px;
        }

    /* Адаптация верхней панели для мобильной версии */
    .button-container {
        flex-direction: row; /* ✅ Горизонтальное расположение */
        justify-content: flex-end; /* ✅ Прижимаем к правому краю */
        gap: 8px;
        padding: 8px 10px;
        right: 10px !important; /* ✅ Ближе к краю на мобильной */
    }

    .menu-top-button {
        width: auto; /* ✅ Автоматическая ширина по содержимому */
        min-width: 120px; /* ✅ Минимальная ширина */
        justify-content: center; /* ✅ Можно оставить - центрирует текст внутри кнопки */
        padding: 6px 10px;
        flex: 0 0 auto; /* ✅ Запрещаем растягивание */
    }

    .button-moon-icon {
        width: 16px;
        height: 16px;
    }

    /* Скрываем левую и правую панели на мобильной */
    .sliding-panel-right {
        display: none;
    }

    /* Улучшаем отображение аккордеона на мобильной */
    .calendar-section-header::after {
        font-size: 10px;
        right: 5px;
    }

    .calendar-recommendation-card h4::after {
        font-size: 14px;
        right: 3px;
    }   
}

/* Скрываем контент по умолчанию */
/* CSS для details/summary */
details .calendar-accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

details[open] .calendar-accordion-content {
    max-height: 5000px;
    opacity: 1;
    margin-top: 15px;
}

/* Убираем стандартную стрелку */
details summary {
    list-style: none;
    cursor: pointer;
    position: relative;
    padding-right: 40px;
}

.calendar-html-month-btn {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 30px; 
    background: linear-gradient(135deg, #EDF4EA, #DEEEE0);
    border-left: 5px solid #6D9A55;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.calendar-html-container {
    width: 80% !important;
    display: block !important;
    /* Добавьте эти строки для центрирования: */
    margin: 0 auto !important; /* ← убираем margin-left и центрируем */
    margin-left: auto !important; /* ← если нужен только горизонтальный центризм */
    margin-right: auto !important;
}
/* Сетка дней */
.calendar-html-month-days-container {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 3px !important;
    margin-top: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* КАЖДЫЙ ДЕНЬ - ОСНОВНОЙ КОНТЕЙНЕР */
.calendar-html-day-view-month {
    display: flex;
    flex-direction: column;    
    min-height: 180px;  
    background: none;
    border: 1px solid rgba(163, 140, 124, 0.3);
    border-radius: 12.3673px;
    padding: 5px;
    height: 180px;
    width: 200px;
}

/* ЗАГОЛОВОК ДНЯ */
.calendar-html-month-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

/* НОМЕР ДНЯ (в центре заголовка) */
.calendar-html-month-day-circle {
    font-family: 'Ysabeau Infant Regular', sans-serif;
    font-weight: bold;
    font-size: 40px;
    display: flex;
    justify-content: center;
    margin-top: -15px;
    margin-left: 32%; /* Центрирование по горизонтали */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: none;
}

/* СЕРЫЙ НОМЕР ДНЯ (предыдущий/следующий месяц) */
.calendar-html-month-day-circle-gray {
    font-family: 'Ysabeau Infant Regular', sans-serif;
    font-size: 40px;
    display: flex;
    justify-content: center;
    margin-top: -15px;
    margin-left: 32%; /* Центрирование по горизонтали */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: none;
    color: #aaa;
}

/* ИКОНКА ЛУНЫ (справа вверху) */
.calendar-html-moon-day-circle {
    position: absolute;
    margin-left: 25px;
    width: 35px;
    height: 35px;
}

/* ПУСТОЙ КРУГ ВОКРУГ ЛУНЫ */
.calendar-html-moon-month-empty-circle {
    position: absolute;
    margin-left: 22px;
    margin-top: -3px;
    width: 41px;
    height: 41px;
}

/* ИКОНКИ ЗАТМЕНИЙ (рядом с лунной иконкой) */
.calendar-html-eclipse-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

/* ТЕЛО ДНЯ (нижняя часть) */
.calendar-html-body-month {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Занимает все доступное пространство */
    justify-content: space-between; /* Распределяем пространство */
}

/* СПИСОК АСПЕКТОВ */
.calendar-html-aspects-list {
    flex: 1; /* Занимает доступное пространство */
    margin-top: -50px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* ← прижимаем к низу */
}

/* ЭЛЕМЕНТ АСПЕКТА */
.calendar-html-aspect-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    line-height: 1;
    font-size: 12px;
    padding-right: 90px; /* Отступ справа под размер moon-phase-container */
    position: relative;
    z-index: 2; /* Под moon-phase-container */
}

/* ВРЕМЯ АСПЕКТА */
.calendar-html-aspect-time {
    font-family: 'Ysabeau Infant Regular', sans-serif;
    color: #333;
    width: 25px;
}

/* ОПИСАНИЕ АСПЕКТА */
.calendar-html-aspect-description {
    font-family: 'Wstartt', sans-serif;
    color: #666;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    overflow: visible !important; /* Отображать весь текст */
    text-overflow: clip !important; /* Убрать многоточие */
}

    .calendar-html-aspect-description.good {
        color: #38a169;
    }

    .calendar-html-aspect-description.bad {
        color: #e53e3e;
    }

    .calendar-html-aspect-description.neutral {
        color: #718096;
    }

/* ЭКАДАШИ (правый нижний угол) */
.calendar-html-ekadashi-month {
    position: absolute;
    right: 10px;
    bottom: 5px;
    font-family: 'Ysabeau Regular', sans-serif;
    font-size: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: 120px;
    text-align: right;
}

/* ИНФОРМАЦИЯ ЭКАДАШИ */
.calendar-html-ekadashi-info {
    padding: 0px;
    margin-bottom: 5px;
    margin-top: -25px;
    z-index: 2;
}

/* НАЗВАНИЕ ЭКАДАШИ */
.calendar-html-ekadashi-name {
    font-weight: bold;
    color: #ad0707;
}

/* ВРЕМЯ ЭКАДАШИ */
.calendar-html-ekadashi-time {
    font-size: 10px;
    color: #666;
}

/* РЕТРОГРАДНЫЕ ПЛАНЕТЫ (под номером дня) */
.calendar-html-retro-planets-month {
    font-family: 'Wstartt', sans-serif;
    font-size: 13px;
    align-items: flex-end; /* Выравнивание по правому краю */
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-left: auto; /* Прижимаем к правому краю */
    white-space: nowrap; /* Запрет переноса текста */
    overflow: hidden; /* Запрет прокрутки */
    line-height: 0.7;
    z-index: 2; /* Под moon-phase-container */
    padding: 5px;
}

.calendar-html-retro-indicator {
    color: #333;
    font-size: 10px;
}

.calendar-html-planet-name {
    font-size: 10px;
    color: #4a5568;
}

/* ИНФОРМАЦИЯ О ЛУНЕ (правый верхний угол над иконкой) */
.calendar-html-moon-month-info-right {
    display: flex;
    position: relative !important;
    margin-top: auto;
}

/* ОШИБКА */
.calendar-html-error {
    color: #e53e3e;
    text-align: center;
    padding: 20px;
    font-size: 16px;
}


@media (max-width: 768px) {
    .calendar-html-month-days-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 5px;
    }

    .calendar-html-day-view-month {
        width: 100%;
        min-height: 200px;
        height: auto;
    }
}




/* ====== КОНТРОЛЫ КАЛЕНДАРЯ ====== */
.calendar-html-controls-container {
    margin: 20px 0 30px 0;
    padding: 0 20px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.calendar-html-period-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid rgba(163, 140, 124, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(63, 46, 33, 0.08);
}

.calendar-html-period-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.calendar-html-period-label {
    font-family: 'Ysabeau Infant Medium', sans-serif;
    font-size: 12px;
    color: #3F2E21;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.calendar-html-month-year-picker {
    display: flex;
    gap: 8px;
    align-items: center;
}

.calendar-html-month-select {
    font-family: 'Ysabeau Infant Regular', sans-serif;
    font-size: 14px;
    color: #3F2E21;
    background: white;
    border: 1px solid #c2b8ad;
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 120px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233F2E21' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.762L10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.calendar-html-month-select:hover {
    border-color: #A38C7C;
    box-shadow: 0 2px 4px rgba(163, 140, 124, 0.2);
}

.calendar-html-year-input {
    font-family: 'Ysabeau Infant Regular', sans-serif;
    font-size: 14px;
    color: #3F2E21;
    background: white;
    border: 1px solid #c2b8ad;
    border-radius: 8px;
    padding: 8px 12px;
    width: 80px;
    text-align: center;
    transition: all 0.3s ease;
}

.calendar-html-year-input:focus {
    outline: none;
    border-color: #8BB57A;
    box-shadow: 0 0 0 2px rgba(139, 181, 122, 0.2);
}

.calendar-html-period-separator {
    font-family: 'Ysabeau Infant Medium', sans-serif;
    font-size: 16px;
    color: #3F2E21;
    margin: 0 5px;
}

/* Кнопка "Показать календарь" */
.calendar-html-month-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #8BB57A, #6D9A55);
    border: 1px solid #6D9A55;
    border-radius: 10px;
    padding: 10px 20px;
    font-family: 'Ysabeau Infant Medium', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
    height: 42px;
    min-width: 180px;
}

.calendar-html-month-btn:hover {
    background: linear-gradient(135deg, #7DA769, #5C8746);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 154, 85, 0.3);
}

.calendar-html-month-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(109, 154, 85, 0.3);
}

.calendar-html-btn-icon {
    font-size: 16px;
}

.calendar-html-btn-text {
    white-space: nowrap;
}

/* Кнопка "Текущий месяц" */
.calendar-html-current-month-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #FFFFFF, #F0F0EF);
    border: 1px solid #c2b8ad;
    border-radius: 10px;
    padding: 10px 20px;
    font-family: 'Ysabeau Infant Medium', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #3F2E21;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 42px;
    min-width: 150px;
    position: relative;
    z-index: 10;
}

    .calendar-html-current-month-btn:hover {
        background: linear-gradient(135deg, #F9F9F9, #E8E8E8);
        border-color: #A38C7C;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(63, 46, 33, 0.1);
    }

/* Адаптивность */
@media (max-width: 768px) {
    .calendar-html-controls-container {
        margin-top: 10px;
        margin-left: 25px;
        padding: 0 10px;
        width: calc(100% - 23px);
        position: relative;
        z-index: 100; /* Добавляем z-index */
    }

    .calendar-html-period-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
    }

    .calendar-html-period-input-group {
        width: 100%;
    }

    .calendar-html-month-year-picker {
        width: 100%;
    }

    .calendar-html-month-select {
        flex: 1;
        min-width: auto;
    }

    .calendar-html-period-separator {
        text-align: center;
        margin: 5px 0;
        padding-top: 0;
    }

    .calendar-html-month-btn,
    .calendar-html-current-month-btn {
        width: 100%;
        margin-left: 0;
        margin-top: 5px;
    }
}

/*@media (min-width: 769px) and (max-width: 1024px) {
    .calendar-html-period-selector {
        flex-wrap: nowrap;
    }

    .calendar-html-period-input-group {
        flex: 1;
    }

    .calendar-html-month-select {
        min-width: 100px;
    }

    .calendar-html-month-btn,
    .calendar-html-current-month-btn {
        min-width: 140px;
    }
}*/
