* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", "Segoe UI", sans-serif;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b, #334155);
    color: #e2e8f0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #60a5fa);
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2563eb, #3b82f6);
}

/* 页面容器 */
.page-container {
    display: flex;
    min-height: 100vh;
    gap: 15px;
    padding: 15px;
}

/* 左侧导航栏 */
.sidebar {
    width: 200px;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 20px;
    position: fixed;
    height: calc(100vh - 30px);
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.sidebar:hover {
    box-shadow: 0 8px 40px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.sidebar-header {
    padding: 0 20px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 30px;
}

.sidebar-header h2 {
    font-size: 24px;
    margin: 0;
    color: #3b82f6;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(59, 130, 246, 0.8), 0 0 30px rgba(59, 130, 246, 0.5);
    }
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    color: #e2e8f0;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
    transition: left 0.5s ease;
}

.menu-item:hover::before {
    left: 100%;
}

.menu-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.menu-item.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.1));
    color: #3b82f6;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.menu-icon {
    margin-right: 12px;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.menu-item:hover .menu-icon {
    transform: scale(1.1);
}

.menu-text {
    font-size: 16px;
    font-weight: 500;
}

/* 右侧主要内容区域 */
.main-content {
    flex: 1;
    margin-left: 215px;
    min-height: calc(100vh - 30px);
    background: rgba(15, 23, 42, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1), transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1), transparent 50%);
    pointer-events: none;
}

.floor-map {
    width: 1400px;
    margin: 0 auto;
    border: 1px solid rgba(59, 130, 246, 0.4);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 25px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    min-height: 900px;
}

.selector-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-left: 0;
}

.selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.selector label {
    font-size: 18px;
    font-weight: 600;
    color: #3b82f6;
}

.selector select {
    padding: 14px 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.selector select:hover {
    border-color: rgba(59, 130, 246, 0.8);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.selector select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.selector select option {
    background: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
    padding: 10px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.selector select option:hover {
    background: rgba(59, 130, 246, 0.2);
}

.current-time {
    font-size: 14px;
    color: #e2e8f0;
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    position: absolute;
    top: 20px;
    right: 20px;
}

.floor-title {
    font-size: 32px;
    font-weight: 700;
    color: #3b82f6;
    text-align: center;
    margin: 20px 0 30px;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .floor-map {
        padding: 20px;
        min-height: 800px;
    }
    
    .floor-title {
        font-size: 28px;
    }
    
    .room {
        width: 50px;
        height: 50px;
        font-size: 12px;
    }
    
    .five-person-room {
        width: 60px;
        height: 50px;
    }
    
    .stair {
        width: 40px;
        height: 120px;
        font-size: 10px;
    }
    
    .corridor {
        height: 35px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .main-content {
        overflow-x: auto;
    }
    
    .floor-map {
        min-width: 800px;
        padding: 15px;
    }
    
    .selector-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .floor-title {
        font-size: 24px;
    }
    
    .room {
        width: 45px;
        height: 45px;
        font-size: 11px;
    }
    
    .five-person-room {
        width: 55px;
        height: 45px;
    }
    
    .stair {
        width: 35px;
        height: 100px;
        font-size: 9px;
    }
    
    .corridor {
        height: 30px;
        font-size: 11px;
    }
    
    .gap {
        width: 30px;
    }
    
    .gap1 {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .floor-map {
        min-width: 600px;
    }
    
    .floor-title {
        font-size: 20px;
    }
    
    .room {
        width: 40px;
        height: 40px;
        font-size: 10px;
    }
    
    .five-person-room {
        width: 50px;
        height: 40px;
    }
    
    .stair {
        width: 30px;
        height: 80px;
        font-size: 8px;
    }
    
    .corridor {
        height: 25px;
        font-size: 10px;
    }
    
    .gap {
        width: 25px;
    }
    
    .gap1 {
        width: 40px;
    }
}

/* 楼层分布图样式 - 保持原有布局 */
.row {
    display: flex;
    margin: 8px 0;
    align-items: center;
    width: 100%;
}

.top-row,
.bottom-row {
    display: flex;
    margin: 8px 0;
    align-items: center;
    width: 100%;
}

/* 中间区域样式 */
.middle-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    position: relative;
}

/* 二层中间区域样式 */
#middle-section-normal {
    margin: -150px 0; /* 二层上下楼梯间距为150px */
}

/* 一层中间区域样式 */
#middle-section-first {
    margin: -70px 0; /* 调整负边距，使安全出口更靠近 */
}

.gap {
    width: 40px;
}

.gap1 {
    width: 65px;
}

/* 安全通道样式 */
.corridor {
    height: 40px;
    background: rgba(22, 33, 62, 0.3);
    margin: 10px 0;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 14px;
    color: #a8b4d1;
    font-weight: 500;
    justify-content: space-between;
    position: relative;
    border: 1px solid rgba(74, 156, 213, 0.2);
    border-radius: 4px;
}

.corridor .exit {
    font-size: 12px;
    color: #22c55e;
    font-weight: 600;
}

.corridor .corridor-text {
    color: #a8b4d1;
    font-weight: 500;
}

.corridor .arrow {
    color: #22c55e;
    font-size: 20px;
    font-weight: 600;
    animation: arrowPulse 3s ease-in-out infinite;
}

.corridor .middle-arrow {
    animation: spreadArrow 3s ease-in-out infinite;
}



@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes safetyPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(34, 197, 94, 0.3);
        border-color: rgba(34, 197, 94, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
        border-color: rgba(34, 197, 94, 0.8);
    }
}

@keyframes arrowPulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(0);
    }
    50% {
        opacity: 0.7;
        transform: translateX(3px);
    }
}

@keyframes doubleArrowPulse {
    0%, 100% {
        opacity: 1;
        letter-spacing: 0;
    }
    50% {
        opacity: 0.8;
        letter-spacing: 5px;
    }
}

@keyframes spreadArrow {
    0%, 100% {
        letter-spacing: 0;
    }
    50% {
        letter-spacing: 8px;
    }
}

@keyframes powerPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 193, 7, 0.3);
        border-color: rgba(255, 193, 7, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.6);
        border-color: rgba(255, 193, 7, 0.8);
    }
}

.exit {
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    border-radius: 6px;
    color: #22c55e;
}

/* 左侧区域（洗衣间+楼梯） */
.left-area {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.left-area .stair {
    margin: 0 5px;
}

.right-area {
    display: flex;
    align-items: center;
    margin-left: 2px;
}

.right-section {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.right-rooms {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

.right-area .stair {
    margin: 0 5px;
}

/* 楼梯样式 */
.stair {
    width: 50px;
    height: 140px;
    border: 1px solid rgba(74, 156, 213, 0.3);
    background: rgba(22, 33, 62, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #a8b4d1;
    border-radius: 4px;
    font-weight: 500;
    margin: 0 2px;
}

/* 1-14栋楼梯样式 */
.floor-plan-1-14 .stair {
    width: 60px;
    height: 60px;
    margin: 0 4px;
}

.stair.left-stair {
    margin-right: 2px;
}

.stair.right-stair {
    margin-left: 2px;
}

/* 安全出口楼梯样式 */
.safety-exit {
    background-color: rgba(34, 197, 94, 0.3);
    border: 2px solid rgba(34, 197, 94, 0.5);
    color: #22c55e;
    font-weight: 600;
    animation: safetyPulse 3s ease-in-out infinite;
}

.middle-top-row,
.middle-bottom-row {
    display: flex;
    margin: 8px 0;
    align-items: center;
    width: 100%;
}

.floor-center-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.floor-center-label {
    font-size: 28px; /* 比页面标题小一点 */
    font-weight: 600;
    color: #3b82f6;
    padding: 20px;
    text-align: center;
    margin: 0 auto;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* 中间竖排寝室 */
.middle-rooms {
    display: flex;
    flex-direction: column;
    margin: 0 2px;
    margin-left: 60px;
    z-index: 2;
}

.middle-rooms .room {
    margin: 2px 0;
}

/* 第一层特有样式 */
.first-floor-left-area {
    display: flex;
    flex-direction: column;
    margin-left: 60px;
    z-index: 2;
    gap: 10px;
}

.duty-hall {
    background: rgba(234, 179, 8, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(234, 179, 8, 0.4);
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    color: #eab308;
    font-weight: 600;
    font-size: 14px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* 1-14栋值班大厅样式 */
.right-extension .duty-hall {
    width: 120px;
    height: 60px;
    padding: 0 10px;
    font-size: 11px;
    margin: 4px 0;
    margin-left: -45px;
    align-self: flex-end;
}

/* 只在1层显示的值班大厅 - 默认隐藏，通过JS控制显示 */
.duty-hall.first-floor-only {
    display: none;
}

.room {
    width: 65px;
    height: 45px;
    background: rgba(59, 130, 246, 0.2);
    border: 2px solid rgba(59, 130, 246, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    margin: 0 2px;
    padding: 0;
    box-sizing: border-box;
}

/* 1-14栋寝室样式 */
.floor-plan-1-14 .room {
    width: 75px;
    margin: 0 6px;
}

.room:hover {
    background: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.five-person-room {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
}

.five-person-room:hover {
    background: rgba(139, 92, 246, 0.4);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.large-room {
    height: 50px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 1-14栋平面图样式 */
.floor-plan-1-14 {
    width: 100%;
    position: relative;
}

/* 1-14栋平面图楼梯和配电间的边距 */
.floor-plan-1-14 .stair {
    margin: 0 4px;
}

.top-row-2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.top-row-2-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    justify-content: space-between;
    margin: 0 8px;
}

.top-row-2-left .room {
    width: 75px;
    flex-shrink: 0;
}

.top-row-2 .stair {
    margin: 0;
    flex-shrink: 0;
}

.floor-plan-1-14 .power-room {
    margin: 0 8px;
}

.floor-plan-1-14 .stair {
    margin: 0 8px;
}

.floor-plan-1-14 .row {
    display: flex;
    align-items: center;
    margin: 8px 0;
    width: 100%;
    position: relative;
}

.floor-plan-1-14 .top-row-2 {
    justify-content: space-between;
    align-items: center;
}

.floor-plan-1-14 .middle-row-2 {
    justify-content: space-between;
    align-items: flex-start;
}

.floor-plan-1-14 .middle-row-1 {
    justify-content: space-between;
    align-items: center;
}

.floor-plan-1-14 .bottom-row-1 {
    justify-content: flex-start;
    align-items: center;
}

.bottom-row-1-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    justify-content: flex-end;
    margin-left: 8px;
}

.bottom-row-1-left .room {
    width: 75px;
    flex-shrink: 0;
}

/* 配电间样式 */
.power-room {
    width: 50px;
    height: 60px;
    border: 1px solid rgba(255, 193, 7, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    background: rgba(255, 193, 7, 0.15);
    transition: all 0.3s ease;
    position: relative;
    margin: 0 2px;
    border-radius: 4px;
    color: #ffc107;
    font-weight: 600;
    animation: powerPulse 3s ease-in-out infinite;
}

/* 洗衣间样式 */
.laundry-room {
    width: 75px;
    height: 45px;
    border: 1px solid rgba(0, 123, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    background: rgba(0, 123, 255, 0.15);
    transition: all 0.3s ease;
    position: relative;
    margin: 0 6px;
    border-radius: 4px;
    color: #007bff;
    font-weight: 600;
    animation: laundryPulse 3s ease-in-out infinite;
}

/* 开水间样式 */
.water-room {
    width: 75px;
    height: 45px;
    border: 1px solid rgba(0, 123, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    background: rgba(0, 123, 255, 0.15);
    transition: all 0.3s ease;
    position: relative;
    margin: 0 6px;
    border-radius: 4px;
    color: #007bff;
    font-weight: 600;
    animation: waterPulse 3s ease-in-out infinite;
}

/* 洗衣间悬停效果 */
.laundry-room:hover {
    background: rgba(0, 123, 255, 0.25);
    border-color: rgba(0, 123, 255, 0.7);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

/* 开水间悬停效果 */
.water-room:hover {
    background: rgba(0, 123, 255, 0.25);
    border-color: rgba(0, 123, 255, 0.7);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

/* 洗衣间动画 */
@keyframes laundryPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* 开水间动画 */
@keyframes waterPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* 1-14栋配电间样式 */
.floor-plan-1-14 .power-room {
    width: 60px;
    margin: 0 8px;
}

.floor-plan-1-14 .laundry-room,
.floor-plan-1-14 .water-room {
    margin: 0 6px;
}

.power-room:hover {
    background: rgba(255, 193, 7, 0.25);
    border-color: rgba(255, 193, 7, 0.7);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
}

.middle-row-2-left {
    display: flex;
    align-items: center;
}

.middle-row-1-left {
    display: flex;
    align-items: center;
}

.top-row-2-left,
.bottom-row-1-left {
    display: flex;
    align-items: flex-start;
    flex-grow: 1;
    justify-content: space-between;
}

.top-row-2-left .room,
.bottom-row-1-left .room {
    margin: 0;
}

/* 右侧突出部分 */
.right-extension {
    display: flex;
    flex-direction: column;
    margin-left: 4px;
    gap: 4px;
    align-items: flex-start;
    position: relative;
    z-index: 5;
    justify-content: flex-start;
    align-self: flex-start;
}

.right-extension .room {
    margin: 2px 0;
    width: 75px;
}

/* 右侧突出部分的行布局 */
.room-row {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.tooltip {
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 14px;
    color: #e2e8f0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: none;
    min-width: 200px;
    backdrop-filter: blur(10px);
}

.tooltip h4 {
    color: #3b82f6;
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    padding-bottom: 8px;
}

.tooltip p {
    margin: 5px 0;
    color: #94a3b8;
}

.tooltip .highlight {
    color: #22c55e;
    font-weight: 600;
}

.empty-rooms-section {
    margin-top: 30px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.empty-rooms-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #22c55e, #10b981, #22c55e);
    background-size: 200% 100%;
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.empty-rooms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.empty-rooms-header h3 {
    font-size: 20px;
    color: #3b82f6;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.empty-rooms-header h3::before {
    content: '\f015';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 20px;
    color: #3b82f6;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.empty-rooms-summary {
    font-size: 14px;
    color: #94a3b8;
    background: rgba(59, 130, 246, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.empty-rooms-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.empty-room-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 16px;
    padding: 20px;
    font-size: 14px;
    color: #22c55e;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: cardSlideIn 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    cursor: pointer;
}

@keyframes cardSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.empty-room-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #22c55e, #10b981);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.empty-room-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.1), transparent);
    transition: left 0.6s ease;
}

.empty-room-card:hover::before {
    opacity: 1;
}

.empty-room-card:hover::after {
    left: 100%;
}

.empty-room-card:hover {
    background: rgba(15, 23, 42, 0.7);
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.4);
}

.empty-room-card .glow-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.empty-room-card:hover .glow-effect {
    opacity: 1;
    animation: glowRotate 2s linear infinite;
}

@keyframes glowRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-room-number {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #22c55e;
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    transition: all 0.3s ease;
}

.empty-room-card:hover .empty-room-number {
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.8), 0 0 30px rgba(34, 197, 94, 0.5);
    transform: scale(1.05);
}

.empty-room-info {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
}

.empty-room-info .info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.empty-room-info .info-label {
    color: #64748b;
}

.empty-room-info .info-value {
    color: #e2e8f0;
    font-weight: 500;
}

.empty-room-info .available-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #22c55e;
    margin-top: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.empty-room-info .available-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.empty-room-card:hover .available-badge::before {
    left: 100%;
}

.empty-room-card:hover .available-badge {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(16, 185, 129, 0.2));
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.empty-room-card .corner-decoration {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
}

.empty-room-card .corner-decoration.top-left {
    top: 8px;
    left: 8px;
    border-right: none;
    border-bottom: none;
    border-radius: 8px 0 0 0;
}

.empty-room-card .corner-decoration.top-right {
    top: 8px;
    right: 8px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 8px 0 0;
}

.empty-room-card .corner-decoration.bottom-left {
    bottom: 8px;
    left: 8px;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 8px;
}

.empty-room-card .corner-decoration.bottom-right {
    bottom: 8px;
    right: 8px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 8px 0;
}

.empty-room-card:hover .corner-decoration {
    width: 30px;
    height: 30px;
    border-color: rgba(34, 197, 94, 0.6);
}

.empty-room-card:nth-child(1) { animation-delay: 0.1s; }
.empty-room-card:nth-child(2) { animation-delay: 0.15s; }
.empty-room-card:nth-child(3) { animation-delay: 0.2s; }
.empty-room-card:nth-child(4) { animation-delay: 0.25s; }
.empty-room-card:nth-child(5) { animation-delay: 0.3s; }
.empty-room-card:nth-child(6) { animation-delay: 0.35s; }
.empty-room-card:nth-child(7) { animation-delay: 0.4s; }
.empty-room-card:nth-child(8) { animation-delay: 0.45s; }
.empty-room-card:nth-child(9) { animation-delay: 0.5s; }
.empty-room-card:nth-child(10) { animation-delay: 0.55s; }

.room.occupied {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.6);
}

.room.partial {
    background: rgba(234, 179, 8, 0.2);
    border-color: rgba(234, 179, 8, 0.5);
}

.room.empty {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
}

.room.partial:hover {
    background: rgba(234, 179, 8, 0.35);
    box-shadow: 0 8px 24px rgba(234, 179, 8, 0.3);
}

.room.empty:hover {
    background: rgba(34, 197, 94, 0.35);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}