/* Admin Dashboard */

html {
    scroll-behavior: smooth;
}

.cyber-border {
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.1);
}

.matrix-bg {
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.code-rain {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: rgba(0, 212, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
}

/* Arrière-plan sombre */
.bg-dark {
    background: linear-gradient(135deg, #0d1929 0%, #1a2332 50%, #0d1929 100%);
}

/* Animations Matrix */
@keyframes matrix-move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

@keyframes code-rain {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes scan-line {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100vw);
    }
}

.matrix-move {
    animation: matrix-move 20s linear infinite;
}

.code-rain {
    animation: code-rain 3s linear infinite;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    animation: scan-line 2s linear infinite;
}

/* Block de connexion */
.login-container {
    background: rgba(13, 25, 43, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 212, 255, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

/* Inputs cyber */
.input-cyber {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
}

.input-cyber:focus {
    border-color: #00d4ff;
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.3),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
    outline: none;
}

.input-cyber::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Boutons cyber */
.btn-cyber {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border: none;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-cyber:hover::before {
    left: 100%;
}

.btn-cyber:hover {
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn-cyber:active {
    transform: translateY(0);
}

/* Messages de succès et d'erreur */
.success {
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #34d399;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: slideInDown 0.5s ease-out;
}

.error {
    background: linear-gradient(45deg, #ef4444, #dc2626);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #f87171;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Effets de lueur */
.glow-on-hover {
    transition: all 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    border-color: #00d4ff;
}

/* Tableaux Dashboard */
.admin-table {
    background: rgba(13, 25, 43, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.admin-table th {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    color: #ffffff;
}

.admin-table tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

/* Formulaires Dashboard */
.admin-form {
    background: rgba(13, 25, 43, 0.9);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.admin-form label {
    color: #00d4ff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #ffffff;
    border-radius: 8px;
    padding: 0.75rem;
    width: 100%;
    transition: all 0.3s ease;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    outline: none;
}

/* Boutons d'action */
.btn-action {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-edit {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    color: white;
}

.btn-edit:hover {
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}

.btn-delete {
    background: linear-gradient(45deg, #ef4444, #dc2626);
    color: white;
}

.btn-delete:hover {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

.btn-view {
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
}

.btn-view:hover {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .login-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .admin-form {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .admin-table {
        font-size: 0.875rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }
}