/* ============================================================
   ОСНОВНЫЕ ЦВЕТА И СТИЛИ
   ============================================================ */

.sector-light {
    fill: #ffffff;
}
.sector-dark {
    fill: #EEEEEE;
}
.house-number-light {
    fill: #EEEEEE;  /* серый на светлом секторе */
}
.house-number-dark {
    fill: #ffffff;  /* белый на тёмном секторе */
}
.greeting-bg {
    background: #FFFFFF;
    padding: 10px;
    margin-bottom: 10px;
}
.btn-calculate {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 6px 20px;
    border-radius: 4px;
}
.btn-calculate:hover {
    background: #45a049;
}

/* ============================================================
   ОСТАЛЬНЫЕ СТИЛИ
   ============================================================ */

body {
    background: #EFEFEF;
    font-family: Arial, sans-serif;
    max-width: 97%;
    margin: 20px auto;
    padding: 0 20px;
}
.flex {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.flex > div {
    flex: 1;
    min-width: 300px;
}
label {
    display: inline-block;
    width: 160px;
}
input, select {
    margin-bottom: 8px;
}
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 15px;
    font-size: 14px;
}
th, td {
    border: 1px solid #ccc;
    padding: 4px 8px;
    text-align: left;
}
th {
    background: #f0f0f0;
}
td {
    color: #000;
}
table tbody tr:hover {
    background-color: #f5f5f5;
}
tr.highlight-row {
    background-color: #ffffcc !important;
}
.error {
    color: red;
}
.house-tip {
    cursor: help;
    border-bottom: 1px dashed #999;
}
.chart-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}
.chart-container > div {
    flex: 0 0 auto;
    text-align: center;
}
.chart-title {
    font-weight: bold;
    margin-bottom: 10px;
}
.btn {
    padding: 4px 12px;
    margin: 2px;
    cursor: pointer;
}
.btn-gray {
    background: #6c757d;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
}
.btn-gray:hover {
    background: #5a6268;
    color: white;
}
.btn-save {
    background: #6c757d;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
}
.btn-save:hover {
    background: #5a6268;
    color: white;
}
.history-table td {
    vertical-align: middle;
}
.auth-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.auth-box {
    border: 1px solid #ccc;
    padding: 15px;
    min-width: 250px;
    flex: 1;
    margin-bottom: 20px;
}
.auth-box h3 {
    margin-top: 0;
}
.auth-box .forgot-link {
    margin-top: 10px;
    display: block;
}
.action-buttons form {
    display: inline;
}
.confirm-box {
    border: 1px solid #f0ad4e;
    padding: 15px;
    margin: 10px 0;
    background: #fcf8e3;
}
svg {
    display: block;
    margin: 0 auto;
}
svg * {
    pointer-events: all;
}
.small-gray {
    color: #888;
    font-size: 0.9em;
}
.small-gray h3 {
    color: #888;
    font-size: 1.1em;
}
.varga-select-center {
    margin: 0 10px;
}
.varga-block {
    text-align: center;
    margin: 15px 0;
}

/* Стили для полей ввода */
.field-wide {
    width: 300px;
    box-sizing: border-box;
}
.field-tz {
    width: 3em;
    box-sizing: border-box;
}
.field-coord {
    width: 10em;
    box-sizing: border-box;
}
.city-input-wrapper {
    position: relative;
    display: inline-block;
    width: 300px;
}
.city-input-wrapper input {
    width: 100%;
    box-sizing: border-box;
}
.suggestions-box {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    z-index: 1000;
    display: none;
}
.suggestions-box div {
    padding: 8px 12px;
    cursor: pointer;
}
.suggestions-box div:hover {
    background: #f0f0f0;
}

.karaka-tooltip {
    border-bottom: 1px dashed #999;
    cursor: help;
}
.house-number {
    border-bottom: 1px dashed #999;
    cursor: help;
}

/* Узкие колонки для Караки и Дома */
.col-karaka, .col-house {
    width: 70px;
    max-width: 70px;
    text-align: center;
}

/* Кнопка "Дополнительно" – белая, без закруглений, без иконки */
.btn-extra {
    background: #ffffff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 0;
    padding: 6px 18px;
    transition: background 0.2s;
}
.btn-extra:hover {
    background: #f0f0f0;
}

/* ============================================================
   УВЕЛИЧЕНИЕ НОМЕРОВ ДОМОВ ПРИ НАВЕДЕНИИ (50%) + ЖЁЛТЫЙ ЦВЕТ
   ============================================================ */

.house-number-link.circle-house {
    font-size: 57px;
    transition: font-size 0.2s ease, fill 0.2s ease;
    cursor: pointer;
}
.house-number-link.circle-house.hovered {
    font-size: 85.5px !important;
    fill: #FFD700 !important;
}

.house-number-link.square-house {
    font-size: 88px;
    transition: font-size 0.2s ease, fill 0.2s ease;
    cursor: pointer;
    fill: #EEEEEE;
}
.house-number-link.square-house.hovered {
    font-size: 132px !important;
    fill: #FFD700 !important;
}

.house-number {
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    display: inline-block;
    transform-origin: center;
    color: #000;
}
.house-number.hovered {
    transform: scale(1.5);
    color: #FFD700 !important;
}

#interpretModalBody {
    max-height: 70vh;
    overflow-y: auto;
}

.aspect-label {
    font-size: 12px;
    fill: #666;
}

/* Центрирование прелоадера */
#interpretModalBody .spinner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100px;
}

/* Стиль для ссылок накшатр (ЧЁРНЫЙ цвет, пунктир) */
.nakshatra-link {
    color: #000 !important;
    border-bottom: 1px dashed #999;
    cursor: help;
    text-decoration: none;
}
.nakshatra-link:hover {
    text-decoration: none;
}

/* Стили для формы входа */
.auth-box input[type="email"],
.auth-box input[type="password"] {
    width: 50% !important;
    box-sizing: border-box;
}
.auth-box .register-link {
    font-size: 2.5em !important;
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

/* ============================================================
   ФИКСИРОВАННАЯ ПАНЕЛЬ ПРИВЕТСТВИЯ
   ============================================================ */
#fixedGreeting {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: 1px solid #ddd;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
#fixedGreeting a {
    color: #007bff;
    text-decoration: none;
}
#fixedGreeting a:hover {
    text-decoration: underline;
}

/* ============================================================
   КРАСИВЫЙ СТИЛЬ КНОПОК В ПАНЕЛИ
   ============================================================ */
#fixedGreeting .btn {
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 14px;
    transition: all 0.2s ease;
    margin: 0 4px;
    border-width: 1px;
}
#fixedGreeting .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}
#fixedGreeting .btn-outline-secondary:hover {
    background: #6c757d;
    color: #fff;
}
#fixedGreeting .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}
#fixedGreeting .btn-outline-danger:hover {
    background: #dc3545;
    color: #fff;
}
#fixedGreeting .btn-primary {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}
#fixedGreeting .btn-primary:hover {
    background: #0069d9;
    border-color: #0062cc;
}
#fixedGreeting .btn-success {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}
#fixedGreeting .btn-success:hover {
    background: #218838;
    border-color: #1e7e34;
}
#fixedGreeting .btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
}
#fixedGreeting .btn-outline-primary:hover {
    background: #007bff;
    color: #fff;
}
#fixedGreeting .btn-outline-info {
    border-color: #17a2b8;
    color: #17a2b8;
}
#fixedGreeting .btn-outline-info:hover {
    background: #17a2b8;
    color: #fff;
}


.auth-link {
    font-size: 2.125em;   
    font-weight: bold;
    display: block;
    margin-top: 10px;
}