/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: #000;
    color: #00ff00;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animations néon */
@keyframes neonGlow {
    0%, 100% {
        text-shadow:
            0 0 5px #00ff00,
            0 0 10px #00ff00,
            0 0 15px #00ff00,
            0 0 20px #00ff00;
    }
    50% {
        text-shadow:
            0 0 2px #00ff00,
            0 0 5px #00ff00,
            0 0 8px #00ff00,
            0 0 12px #00ff00;
    }
}

@keyframes borderGlow {
    0%, 100% {
        box-shadow:
            0 0 5px #00ff00,
            0 0 10px #00ff00,
            inset 0 0 5px rgba(0, 255, 0, 0.1);
    }
    50% {
        box-shadow:
            0 0 10px #00ff00,
            0 0 20px #00ff00,
            inset 0 0 10px rgba(0, 255, 0, 0.2);
    }
}

@keyframes digitalPulse {
    0%, 100% {
        text-shadow:
            0 0 5px #00ff00,
            0 0 10px #00ff00,
            0 0 15px #00ff00,
            0 0 20px #00ff00,
            0 0 30px #00ff00;
        opacity: 1;
    }
    50% {
        text-shadow:
            0 0 8px #00ff00,
            0 0 15px #00ff00,
            0 0 25px #00ff00,
            0 0 35px #00ff00,
            0 0 50px #00ff00;
        opacity: 0.9;
    }
}

@keyframes scanLine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Page de connexion */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.neon-box {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 10px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: borderGlow 2s ease-in-out infinite;
}

.neon-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    animation: neonGlow 2s ease-in-out infinite;
    letter-spacing: 3px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
}

.neon-input {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00ff00;
    border-radius: 5px;
    color: #00ff00;
    font-size: 1.1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.neon-input:focus {
    box-shadow: 0 0 10px #00ff00;
    border-color: #00ff00;
}

.neon-input::placeholder {
    color: rgba(0, 255, 0, 0.6);
}

.neon-button {
    padding: 15px 30px;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    border-radius: 5px;
    color: #00ff00;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: block;
    text-align: center;
    margin: 0 auto;
    width: fit-content;
}

.neon-button:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 15px #00ff00;
    transform: translateY(-2px);
}

.error-message {
    color: #ff0040;
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    text-shadow: 0 0 5px #ff0040;
}

/* Page principale */
.main-container {
    min-height: 100vh;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.logout-btn, .back-btn {
    color: #00ff00;
    text-decoration: none;
    padding: 10px 15px;
    border: 1px solid #00ff00;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.logout-btn:hover, .back-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 10px #00ff00;
}

/* Grille des lockers */
.lockers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.locker-card {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 10px;
    padding: 25px 20px;
    text-decoration: none;
    color: #00ff00;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
}

.locker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px #00ff00;
    background: rgba(0, 255, 0, 0.05);
}

.locker-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 0 8px #00ff00;
    letter-spacing: 1px;
}

/* Styles du statut supprimés - plus utilisés */

.no-lockers {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    opacity: 0.7;
}

.hint {
    margin-top: 10px;
    font-size: 0.9rem;
    color: rgba(0, 255, 0, 0.6);
}

/* Page du locker */
.locker-page {
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.locker-display {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.locker-info {
    width: 100%;
    max-width: 500px;
}

/* Header du casier */
.casier-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 15px;
    animation: borderGlow 3s ease-in-out infinite;
}

.casier-label {
    font-size: 1.5rem;
    letter-spacing: 4px;
    opacity: 0.9;
    margin-bottom: 10px;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.casier-name {
    font-size: 3.5rem;
    font-weight: bold;
    animation: neonGlow 2s ease-in-out infinite;
    word-break: break-word;
    letter-spacing: 3px;
    margin: 0;
}

/* Container du code */
.code-container {
    text-align: center;
}

.code-label {
    font-size: 1.3rem;
    margin-bottom: 25px;
    opacity: 0.8;
    letter-spacing: 3px;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

/* Affichage digital style horloge néon */
.digital-display {
    background: #000;
    border: 4px solid #00ff00;
    border-radius: 20px;
    padding: 40px 30px;
    margin: 0 auto;
    max-width: 400px;
    position: relative;
    overflow: hidden;
    animation: borderGlow 2s ease-in-out infinite;
    box-shadow:
        inset 0 0 20px rgba(0, 255, 0, 0.1),
        0 0 30px rgba(0, 255, 0, 0.3);
}

.digital-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 255, 0, 0.1),
        transparent);
    animation: scanLine 3s linear infinite;
}

.code-segments {
    font-family: 'Courier New', 'Digital-7', monospace;
    font-size: 5rem;
    font-weight: bold;
    letter-spacing: 12px;
    color: #00ff00;
    text-shadow:
        0 0 5px #00ff00,
        0 0 10px #00ff00,
        0 0 15px #00ff00,
        0 0 20px #00ff00,
        0 0 30px #00ff00;
    animation: digitalPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.9);
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.error-text {
    margin: 20px 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.neon-button.secondary {
    background: rgba(0, 255, 0, 0.05);
    border-color: rgba(0, 255, 0, 0.5);
    color: rgba(0, 255, 0, 0.8);
}

.neon-button.secondary:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    color: #00ff00;
}

/* Responsive */
@media (max-width: 768px) {
    .neon-title {
        font-size: 2rem;
    }

    .casier-name {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .code-segments {
        font-size: 3.5rem;
        letter-spacing: 8px;
    }

    .digital-display {
        padding: 30px 20px;
        margin: 0 10px;
    }

    .casier-header {
        padding: 15px;
        margin-bottom: 40px;
    }

    .lockers-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .actions {
        flex-direction: column;
        align-items: center;
    }

    .neon-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .neon-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .casier-name {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .casier-label {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .code-segments {
        font-size: 2.8rem;
        letter-spacing: 6px;
        padding: 8px 15px;
    }

    .digital-display {
        padding: 25px 15px;
        margin: 0 5px;
        border-width: 3px;
    }

    .casier-header {
        padding: 15px 10px;
        margin-bottom: 30px;
    }

    .code-label {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .neon-box {
        padding: 20px;
    }
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}
