* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif; background: #f5f7fa; height: 100vh; overflow: hidden; }
.app-container { height: 100vh; }

/* Header */
.app-header {
    display: flex; align-items: center; justify-content: space-between;
    background: #fff; border-bottom: 1px solid #e4e7ed;
    padding: 0 20px; height: 50px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.header-left { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.header-logo { width: 28px; height: 28px; border-radius: 4px; }
.hotel-name { font-size: 15px; font-weight: 600; color: #303133; }
.header-center { display: flex; gap: 12px; }
.header-right { display: flex; align-items: center; }
.el-dropdown-link { cursor: pointer; display: flex; align-items: center; gap: 4px; color: #606266; font-size: 14px; }

/* Sidebar */
.app-aside {
    background: #fff; border-right: 1px solid #e4e7ed;
    overflow-y: auto;
}
.side-menu { border-right: none !important; }
.side-menu .el-menu-item { font-size: 14px; }
.side-menu .el-sub-menu__title { font-size: 14px; }

/* Main */
.app-main { padding: 16px; background: #f5f7fa; overflow-y: auto; }

/* 布局滚动修复：内层 el-container 限高，main 区才能滚动 */
.app-container > .el-container { flex: 1; min-height: 0; }
.app-main { height: calc(100vh - 50px); }
.app-main .el-table { width: 100%; }

.page-content { background: #fff; border-radius: 8px; padding: 20px; min-height: calc(100vh - 140px); }
.page-title { font-size: 18px; font-weight: 600; color: #303133; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #ebeef5; }
.issue-form { max-width: 900px; }
.section-title { font-size: 15px; font-weight: 600; color: #303133; margin: 20px 0 12px; }

/* Room Status */
.room-status-section { margin-top: 24px; padding-top: 16px; border-top: 1px solid #ebeef5; }
.floor-row { display: flex; align-items: center; margin-bottom: 8px; }
.floor-label { width: 40px; font-size: 13px; font-weight: 600; color: #909399; flex-shrink: 0; }
.room-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.room-grid-large { gap: 8px; }
.room-card {
    width: 52px; height: 36px; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 500; cursor: pointer;
    transition: all 0.2s; border: 1px solid transparent;
}
.room-card:hover { transform: scale(1.08); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.room-card-large { width: 72px; height: 52px; flex-direction: column; gap: 2px; }
.room-card-large .room-num { font-size: 14px; font-weight: 600; }
.room-card-large .room-st { font-size: 10px; opacity: 0.8; }

.room-vacant { background: #e8f5e9; color: #2e7d32; border-color: #c8e6c9; }
.room-occupied { background: #e3f2fd; color: #1565c0; border-color: #bbdefb; }
.room-dirty { background: #fff3e0; color: #e65100; border-color: #ffe0b2; }
.room-reserved { background: #e0f2f1; color: #00695c; border-color: #b2dfdb; }
.room-maintain { background: #fce4ec; color: #c62828; border-color: #f8bbd0; }

.room-legend { display: flex; gap: 16px; margin-top: 12px; }
.legend-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #909399; }
.legend-dot { width: 12px; height: 12px; border-radius: 2px; }
.legend-vacant { background: #e8f5e9; border: 1px solid #c8e6c9; }
.legend-occupied { background: #e3f2fd; border: 1px solid #bbdefb; }
.legend-dirty { background: #fff3e0; border: 1px solid #ffe0b2; }
.legend-reserved { background: #e0f2f1; border: 1px solid #b2dfdb; }
.legend-maintain { background: #fce4ec; border: 1px solid #f8bbd0; }

.room-stats-bar { display: flex; gap: 12px; margin-bottom: 16px; }

/* Footer */
.app-footer {
    background: #fafafa; border-top: 1px solid #e4e7ed;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; font-size: 12px; color: #909399;
}
.footer-left { display: flex; gap: 20px; }
.footer-item { display: flex; align-items: center; gap: 4px; }
.text-success { color: #67c23a; }
.text-danger { color: #f56c6c; }

/* Guest search results */
.guest-result { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.guest-result:hover { background: #f5f7fa; }
.guest-result:last-child { border-bottom: none; }

/* Table adjustments */
.el-table { font-size: 13px; }

/* Responsive */
@media (max-width: 1200px) {
    .room-card { width: 44px; height: 32px; font-size: 11px; }
    .room-card-large { width: 60px; height: 44px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #dcdfe6; border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

/* Login page */
.login-page {
    height: 100vh; width: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1f3a5f 0%, #2d5a8f 55%, #3a7bbf 100%);
}
.login-card { width: 380px; border-radius: 10px; }
.login-title {
    text-align: center; font-size: 20px; font-weight: 600;
    margin-bottom: 24px; color: var(--el-text-color-primary, #303133);
}
.login-tip {
    text-align: center; font-size: 12px; color: var(--el-text-color-secondary, #909399);
}
.login-admin-entry {
    text-align: center; margin-top: 14px; font-size: 13px;
}
.login-admin-entry a {
    color: var(--el-color-primary, #409eff); text-decoration: none;
}
.login-admin-entry a:hover {
    color: var(--el-color-primary-dark-2, #337ecc); text-decoration: underline;
}