/* ===== CSS Variables & Themes ===== */
:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f3460;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #00d4ff;
    --accent-secondary: #ff006e;
    --accent-success: #00ff88;
    --accent-warning: #ffaa00;
    --accent-danger: #ff4444;
    --lock-body: #3a3a4a;
    --lock-wheel: #2a2a3a;
    --lock-wheel-text: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --glow-color: rgba(0, 212, 255, 0.3);
}

[data-theme="gold"] {
    --bg-primary: #2d1b00;
    --bg-secondary: #5c3d00;
    --bg-tertiary: #8b5a00;
    --accent-primary: #ffd700;
    --accent-secondary: #ff8c00;
    --lock-body: #8b6914;
    --lock-wheel: #6b5000;
    --glow-color: rgba(255, 215, 0, 0.3);
}

[data-theme="cyber"] {
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a0a2e;
    --bg-tertiary: #2a1a4e;
    --accent-primary: #00ff00;
    --accent-secondary: #ff00ff;
    --lock-body: #1a1a2a;
    --lock-wheel: #0a0a1a;
    --glow-color: rgba(0, 255, 0, 0.3);
}

[data-theme="nature"] {
    --bg-primary: #0d1f0d;
    --bg-secondary: #1a3a1a;
    --bg-tertiary: #2a5a2a;
    --accent-primary: #88ff88;
    --accent-secondary: #ffcc00;
    --lock-body: #3a4a3a;
    --lock-wheel: #2a3a2a;
    --glow-color: rgba(136, 255, 136, 0.3);
}

[data-theme="ocean"] {
    --bg-primary: #001a33;
    --bg-secondary: #003366;
    --bg-tertiary: #004d99;
    --accent-primary: #00ccff;
    --accent-secondary: #00ff99;
    --lock-body: #004466;
    --lock-wheel: #003355;
    --glow-color: rgba(0, 204, 255, 0.3);
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Screen Management ===== */
.screen {
    display: none;
    min-height: 100vh;
    padding: 20px;
}

.screen.active {
    display: block;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
}

.overlay.active {
    display: flex;
}

/* ===== Setup Screen ===== */
.setup-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
}

.title {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--accent-primary);
    text-shadow: 0 0 20px var(--glow-color);
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.setup-section {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--bg-tertiary);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.setup-section h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--bg-tertiary);
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--bg-tertiary);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--glow-color);
}

.form-group input[type="range"] {
    width: calc(100% - 60px);
    -webkit-appearance: none;
    height: 8px;
    border-radius: 4px;
    background: var(--bg-tertiary);
    outline: none;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--glow-color);
}

.range-value {
    display: inline-block;
    width: 40px;
    text-align: center;
    font-weight: bold;
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.form-group input[type="color"] {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
}

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    color: var(--text-primary);
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid var(--bg-tertiary);
    border-radius: 6px;
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    background: var(--bg-primary);
}

.checkbox-label input:checked + .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    color: var(--bg-primary);
    font-weight: bold;
}

/* Color Options */
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-btn {
    width: 80px;
    height: 50px;
    border: 3px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.7rem;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.color-btn:hover {
    transform: scale(1.05);
}

.color-btn.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--glow-color);
}

/* Buttons */
.btn-primary {
    display: block;
    width: 100%;
    padding: 18px 30px;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--bg-primary);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 20px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--glow-color);
}

.btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 2px solid var(--accent-primary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--accent-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.btn-small:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* ===== Game Screen ===== */
#game-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 30px;
    position: relative;
}

.game-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.timer {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color: var(--accent-primary);
    text-shadow: 0 0 20px var(--glow-color);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    background: var(--bg-secondary);
    border-radius: 15px;
    border: 2px solid var(--bg-tertiary);
}

.timer.warning {
    color: var(--accent-warning);
    animation: pulse 1s infinite;
}

.timer.danger {
    color: var(--accent-danger);
    animation: pulse 0.5s infinite;
}

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

.timer-icon {
    font-size: 2rem;
}

.attempts {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-secondary);
    padding: 10px 20px;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.attempts.hidden {
    display: none;
}

/* Message Box */
.message-box {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-radius: 15px;
    padding: 25px 40px;
    margin-bottom: 30px;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 0 30px var(--glow-color);
    animation: fadeIn 0.5s ease;
}

.message-box p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.message-box.hidden {
    display: none;
}

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

/* ===== Lock Styles ===== */
.lock-container {
    perspective: 1000px;
    margin: 20px 0;
}

.lock-body {
    background: linear-gradient(180deg, #5a5a6a, var(--lock-body), #2a2a3a);
    border-radius: 20px;
    padding: 30px 30px 40px;
    position: relative;
    box-shadow: 
        0 20px 60px var(--shadow-color),
        inset 0 2px 10px rgba(255,255,255,0.1),
        inset 0 -5px 20px rgba(0,0,0,0.3);
    min-width: 300px;
}

.combination-wheels {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.wheel-container {
    position: relative;
    width: 70px;
    height: 100px;
    overflow: hidden;
    background: var(--lock-wheel);
    border-radius: 10px;
    box-shadow: 
        inset 0 5px 15px rgba(0,0,0,0.5),
        0 5px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    user-select: none;
}

.wheel {
    position: absolute;
    width: 100%;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wheel-item {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--lock-wheel-text);
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.wheel-container::before,
.wheel-container::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 30px;
    pointer-events: none;
    z-index: 10;
}

.wheel-container::before {
    top: 0;
    background: linear-gradient(to bottom, var(--lock-wheel), transparent);
}

.wheel-container::after {
    bottom: 0;
    background: linear-gradient(to top, var(--lock-wheel), transparent);
}

.wheel-container:hover {
    box-shadow: 
        inset 0 5px 15px rgba(0,0,0,0.5),
        0 0 20px var(--glow-color);
}

.wheel-container:active {
    transform: scale(0.98);
}

.wheel-indicator {
    display: none;
}

.lock-keyhole {
    width: 30px;
    height: 40px;
    background: #1a1a2a;
    border-radius: 50% 50% 10px 10px;
    margin: 25px auto 0;
    position: relative;
    box-shadow: inset 0 3px 10px rgba(0,0,0,0.8);
}

.lock-keyhole::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 15px;
    background: #0a0a1a;
    border-radius: 2px;
}

/* Game Controls */
.game-controls {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.game-controls .btn-primary {
    width: auto;
    padding: 15px 40px;
    margin-top: 0;
}

.admin-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    opacity: 1;
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ===== Result Screens ===== */
.result-container {
    text-align: center;
    padding: 50px;
    border-radius: 25px;
    max-width: 500px;
    position: relative;
    overflow: hidden;
}

.result-container.win {
    background: linear-gradient(135deg, var(--bg-secondary), #0a2a0a);
    border: 3px solid var(--accent-success);
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.3);
}

.result-container.lose {
    background: linear-gradient(135deg, var(--bg-secondary), #2a0a0a);
    border: 3px solid var(--accent-danger);
    box-shadow: 0 0 50px rgba(255, 68, 68, 0.3);
}

.result-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 20px;
    animation: bounceIn 0.6s ease;
}

.win .result-title {
    color: var(--accent-success);
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.lose .result-title {
    color: var(--accent-danger);
    text-shadow: 0 0 30px rgba(255, 68, 68, 0.5);
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.result-message {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.stats {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.stats p {
    font-size: 1.1rem;
    margin: 8px 0;
    color: var(--text-secondary);
}

.stats span {
    color: var(--accent-primary);
    font-weight: bold;
}

.solution {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.solution span {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--accent-primary);
    font-size: 1.5rem;
    letter-spacing: 5px;
}

/* Treasure Chest */
.treasure-chest {
    width: 150px;
    height: 120px;
    margin: 0 auto 30px;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.chest-body {
    width: 100%;
    height: 70px;
    background: linear-gradient(180deg, #8B4513, #5D2E0C);
    border-radius: 10px;
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.3);
}

.chest-lid {
    width: 100%;
    height: 50px;
    background: linear-gradient(180deg, #A0522D, #8B4513);
    border-radius: 10px 10px 0 0;
    position: absolute;
    top: 0;
    transform-origin: bottom;
    animation: openLid 1s ease-out forwards;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}

@keyframes openLid {
    0% { transform: rotateX(0deg); }
    100% { transform: rotateX(-110deg); }
}

.treasure-glow {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255,215,0,0.8), transparent);
    border-radius: 50%;
    top: -30px;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.treasure-icon {
    font-size: 3rem;
    position: relative;
    z-index: 5;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.5); }
}

.lock-icon-big {
    font-size: 6rem;
    margin-bottom: 20px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Confetti */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: fall linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(500px) rotate(720deg);
        opacity: 0;
    }
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 50px var(--glow-color);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-content h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-content button {
    cursor: pointer;
}

.admin-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

#close-admin,
#close-hint {
    display: block;
    margin-top: 15px;
}

/* ===== Utility Classes ===== */
.hidden {
    display: none !important;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .title {
        font-size: 1.8rem;
    }
    
    .setup-container {
        padding: 15px;
    }
    
    .setup-section {
        padding: 15px;
    }
    
    .timer {
        font-size: 2rem;
        padding: 10px 20px;
    }
    
    .wheel-container {
        width: 55px;
        height: 80px;
    }
    
    .wheel-item {
        height: 80px;
        font-size: 2rem;
    }
    
    .lock-body {
        padding: 30px 20px 40px;
        min-width: auto;
    }
    
    .result-title {
        font-size: 2rem;
    }
    
    .modal-content {
        margin: 20px;
        padding: 25px;
    }
    
    .game-controls {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }
    
    .game-controls button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .combination-wheels {
        gap: 5px;
    }
    
    .wheel-container {
        width: 45px;
        height: 70px;
    }
    
    .wheel-item {
        height: 70px;
        font-size: 1.6rem;
    }
    
    .color-options {
        justify-content: center;
    }
}

/* ===== Animations ===== */
.shake-animation {
    animation: shakeError 0.5s ease;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.correct-animation {
    animation: correctPulse 0.5s ease;
}

@keyframes correctPulse {
    0% { box-shadow: 0 0 0 0 var(--accent-success); }
    50% { box-shadow: 0 0 30px 10px var(--accent-success); }
    100% { box-shadow: 0 0 0 0 var(--accent-success); }
}

/* ===== Multi-Lock Layout ===== */
.locks-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 10px auto;
    padding: 0 10px;
    justify-items: center;
}

.locks-wrapper.locks-1 {
    grid-template-columns: 1fr;
}

.locks-wrapper.locks-2 {
    grid-template-columns: repeat(2, 1fr);
}

.locks-wrapper.locks-3 {
    grid-template-columns: repeat(3, 1fr);
}

.locks-wrapper.locks-4 {
    grid-template-columns: repeat(2, 1fr);
}

.locks-wrapper.locks-1 .lock-container {
    max-width: 350px;
}

.locks-wrapper.locks-2 .lock-container {
    max-width: 280px;
}

.locks-wrapper.locks-3 .lock-container,
.locks-wrapper.locks-4 .lock-container {
    max-width: 250px;
}

.lock-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 1000px;
}

.lock-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--accent-primary);
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 10px var(--glow-color);
}

.lock-status {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 20px;
    margin-top: 15px;
    text-align: center;
}

.lock-status.locked {
    background: var(--accent-danger);
    color: white;
}

.lock-status.unlocked {
    background: var(--accent-success);
    color: white;
}

/* Form select styling */
.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--bg-tertiary);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0a0a0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.form-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--glow-color);
}

.form-select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.lock-name-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.lock-name-input {
    flex: 1;
}

/* Admin password styles */
.admin-password-field {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--bg-tertiary);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 2px;
}

.admin-password-field:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--glow-color);
}

.error-text {
    color: var(--accent-danger);
    font-size: 0.9rem;
    margin-top: 10px;
}

.error-text.hidden {
    display: none;
}

#admin-locks-info {
    text-align: left;
    margin-bottom: 20px;
}

#admin-locks-info p {
    margin: 8px 0;
    font-size: 1rem;
}

#admin-locks-info .lock-solution {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 3px;
}

/* ===== Lock Config Cards ===== */
.lock-settings-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.lock-config-card {
    background: var(--bg-primary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 12px;
    overflow: hidden;
}

.lock-config-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--bg-tertiary);
}

.lock-config-header .lock-number {
    width: 28px;
    height: 28px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.lock-config-header input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--bg-secondary);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.lock-config-header input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.lock-config-body {
    padding: 15px;
}

.lock-config-body .form-group {
    margin-bottom: 12px;
}

.lock-config-body .form-group:last-child {
    margin-bottom: 0;
}

.lock-config-body .form-group label {
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.lock-config-body .form-select {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.checkbox-group-compact {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.checkbox-label-small {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-label-small input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-primary);
}

.combination-input-row {
    display: flex;
    gap: 8px;
}

.combination-input-row input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--bg-tertiary);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.combination-input-row input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.btn-small {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-small:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--glow-color);
}

/* Responsive for multi-lock */
@media (max-width: 900px) {
    .locks-wrapper.locks-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .locks-wrapper.locks-3 .lock-container:last-child {
        grid-column: span 2;
        justify-self: center;
    }
    
    .lock-settings-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .locks-wrapper.locks-2,
    .locks-wrapper.locks-3,
    .locks-wrapper.locks-4 {
        grid-template-columns: 1fr;
    }
    
    .locks-wrapper.locks-3 .lock-container:last-child {
        grid-column: span 1;
    }
    
    .lock-name {
        font-size: 1.1rem;
    }
    
    .locks-wrapper .lock-container {
        max-width: 300px;
    }
    
    .lock-settings-container {
        grid-template-columns: 1fr;
    }
}
