/* ========================================================
   🖥 MONITORING PAGE (Статус клуба)
   ======================================================== */

.monitoring-title {
    font-size: 1.9rem;
    font-weight: 700;
}

.monitoring-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* --- Верхняя статистика --- */
.monitoring-stats {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 18px 24px;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 140px;
}

.stat-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-free .stat-icon svg,
.stat-free .stat-value {
    stroke: var(--primary);
    color: var(--primary);
}

.stat-busy .stat-icon svg,
.stat-busy .stat-value {
    stroke: #ff5555;
    color: #ff5555;
}

.stat-total .stat-value {
    color: var(--text-light);
}

.stat-updated .stat-value {
    color: var(--primary);
    font-family: "Courier New", monospace;
}

.stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.stat-divider {
    width: 1px;
    background: var(--card-border);
    align-self: stretch;
    margin: 4px 0;
}

/* --- Блок "Сейчас свободно" --- */
.monitoring-hero {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    padding: 24px 28px;
    border: 1px solid rgba(0, 255, 153, 0.35);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 62%;
}

.hero-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 153, 0.08);
    box-shadow: 0 0 20px rgba(0, 255, 153, 0.25);
    flex-shrink: 0;
}

.hero-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
}

.hero-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-title {
    color: var(--text-light);
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.hero-title strong {
    color: var(--primary);
}

.hero-next {
    font-size: 0.95rem;
}

.hero-next strong,
.hero-timer {
    color: var(--primary);
    font-family: "Courier New", monospace;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 48%;
    background-size: cover;
    background-position: center right;
    mask-image: radial-gradient(ellipse at 75% 50%, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 0.5) 45%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse at 75% 50%, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 0.5) 45%, transparent 72%);
    pointer-events: none;
}

/* --- Карточки ПК --- */
.monitoring-pc-card {
    display: flex;
    flex-direction: column;
    border-width: 1px;
    border-style: solid;
    transition: box-shadow 0.2s ease;
    text-align: center;
}

.monitoring-pc-free {
    border-color: rgba(0, 255, 153, 0.45);
}

.monitoring-pc-busy {
    border-color: rgba(255, 85, 85, 0.55);
}

.monitoring-pc-title {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    text-align: left;
    align-self: flex-start;
}

.monitoring-pc-status-wrap {
    display: flex;
    justify-content: center;
    margin: 14px 0 12px;
}

.monitoring-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.monitoring-status-badge.status-free {
    background: rgba(0, 255, 153, 0.12);
    color: var(--primary);
    border: 1px solid rgba(0, 255, 153, 0.35);
}

.monitoring-status-badge.status-busy {
    background: rgba(255, 85, 85, 0.12);
    color: #ff5555;
    border: 1px solid rgba(255, 85, 85, 0.35);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.monitoring-pc-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
}

.monitoring-pc-session {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.monitoring-pc-next-booking {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.monitoring-pc-countdown,
.monitoring-pc-booking {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.countdown-label,
.booking-label {
    font-size: 0.8rem;
    line-height: 1.2;
}

.countdown-value {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: "Courier New", monospace;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.monitoring-pc-busy .countdown-value {
    color: #ff5555;
}

.countdown-end,
.booking-time-from,
.booking-time-to {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.2;
}

.booking-time-from {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
}

.booking-time-to {
    font-size: 0.95rem;
    color: var(--text-dim);
}

/* Пустые места в сетке — видны только в режиме компоновки */
.monitoring-grid-item[data-item-type="space"] {
    visibility: hidden;
    pointer-events: none;
}

.monitoring-grid.rearrange-mode .monitoring-grid-item[data-item-type="space"] {
    visibility: visible;
    pointer-events: auto;
}

.monitoring-space-card {
    min-height: 120px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.monitoring-grid.rearrange-mode .monitoring-space-card {
    border-color: rgba(0, 255, 153, 0.25);
    background: rgba(0, 255, 153, 0.04);
}

.monitoring-layout-controls .cyber-btn {
    margin: 4px;
}

/* --- Адаптивность --- */
@media (max-width: 991px) {
    .monitoring-layout-controls {
        display: none !important;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image {
        width: 55%;
        opacity: 0.35;
    }
}

@media (max-width: 768px) {
    .monitoring-stats {
        padding: 14px 16px;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        min-width: calc(50% - 8px);
    }

    .monitoring-hero {
        padding: 18px;
    }

    .hero-icon-wrap {
        width: 56px;
        height: 56px;
    }

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

    .hero-image {
        display: none;
    }
}

@media (max-width: 576px) {
    .stat-item {
        min-width: 100%;
    }
}
