body {
    margin: 0;
    padding: 0;
    background: #0f0f13;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.escape-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.escape-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.escape-header h1 {
    font-size: 2rem;
    color: #ffd700;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.e-close-btn {
    position: absolute;
    right: 0;
    background: transparent;
    color: #aaa;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.e-close-btn:hover {
    color: #ff4444;
}

.e-panel {
    background: rgba(30, 30, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.5s ease-in-out;
}

.e-subtitle {
    color: #aaa;
    text-align: center;
    margin-bottom: 25px;
}

.e-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.e-room-card {
    background: linear-gradient(145deg, #2a2a35, #1d1d25);
    border: 1px solid #444;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
}

.e-room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    border-color: #ffd700;
}

.e-room-card h3 {
    margin-top: 0;
    color: #ffd700;
}

.e-btn {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.e-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.e-btn-secondary {
    background: transparent;
    color: #aaa;
    border: 1px solid #555;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.e-btn-secondary:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

.admin-mode {
    border-color: #ff0055;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.1);
}

.admin-mode h2 {
    color: #ff0055;
}

.admin-controls {
    margin-bottom: 20px;
}

.e-rooms-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.e-admin-room-item {
    background: rgba(0,0,0,0.4);
    border: 1px solid #444;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}
.status-active { background: rgba(0, 255, 0, 0.2); color: #0f0; }
.status-inactive { background: rgba(255, 0, 0, 0.2); color: #f00; }

/* UI ANIMATIONS */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}
.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    border: 2px solid #ff4444 !important;
    background-color: rgba(255, 68, 68, 0.1) !important;
}

@keyframes glowSuccess {
    0% { box-shadow: 0 0 0px #4CAF50; border-color: #4CAF50; }
    50% { box-shadow: 0 0 20px #4CAF50; border-color: #81c784; background-color: rgba(76, 175, 80, 0.2); }
    100% { box-shadow: 0 0 10px #4CAF50; border-color: #4CAF50; background-color: rgba(76, 175, 80, 0.1); }
}
.glow-success {
    animation: glowSuccess 1s ease-out forwards;
}

