@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: #0a0a0a;
    color: #00ff41;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    min-height: 100vh;
    padding-bottom: 80px; /* Espace pour le footer */
}

/* Effet scanline CRT */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
}

/* Effet flicker */
@keyframes flicker {
    0% { opacity: 0.97; }
    50% { opacity: 1; }
    100% { opacity: 0.97; }
}

.terminal-container {
    width: 90%;
    max-width: 900px;
    margin: 50px auto;
    background: rgba(0, 20, 0, 0.9);
    border: 3px solid #00ff41;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.5),
                inset 0 0 50px rgba(0, 255, 65, 0.1);
    animation: flicker 3s infinite;
    position: relative;
    z-index: 1;
}

.terminal-header {
    background: #00ff41;
    color: #0a0a0a;
    padding: 10px 20px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 2px;
}

.terminal-body {
    padding: 30px;
    padding-bottom: 100px; /* Espace pour le footer */
    min-height: 400px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.terminal-line {
    margin: 10px 0;
    text-shadow: 0 0 5px #00ff41;
}

.prompt::before {
    content: '> ';
    color: #ffff00;
}

input[type="text"],
input[type="password"],
input[type="date"],
textarea,
select {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ff41;
    color: #00ff41;
    padding: 10px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    width: 100%;
    margin: 10px 0;
    box-shadow: inset 0 0 10px rgba(0, 255, 65, 0.3);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #00aa30;
}

button {
    background: #00ff41;
    color: #0a0a0a;
    border: none;
    padding: 12px 30px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    cursor: pointer;
    margin: 10px 10px 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

button:hover {
    background: #ffff00;
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.8);
}

.error {
    color: #ff0000;
    text-shadow: 0 0 5px #ff0000;
}

.warning {
    color: #ffff00;
    text-shadow: 0 0 5px #ffff00;
}

.success {
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

.appreciation-box {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #00ff41;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.student-list {
    max-height: 400px;
    overflow-y: auto;
}

.student-item {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00ff41;
    padding: 15px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s;
}

.student-item:hover {
    background: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
}

.hidden {
    display: none;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb {
    background: #00ff41;
    box-shadow: 0 0 10px #00ff41;
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

.footer {
    background: rgba(0, 20, 0, 0.9);
    border-top: 2px solid #00ff41;
    color: #00ff41;
    text-align: center;
    padding: 15px;
    font-size: 12px;
    text-shadow: 0 0 5px #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.footer a {
    color: #ffff00;
    text-decoration: none;
    text-shadow: 0 0 5px #ffff00;
    transition: all 0.3s;
}

.footer a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}