/* style.css - composants de base réutilisables */
body {
    background: linear-gradient(45deg, #181a20 60%, #ff2d5325 100%), linear-gradient(225deg, #181a20 60%, #37ff1425 100%);
    background-blend-mode: lighten, normal;
    min-height: 100vh;
    margin: 0;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Arial, sans-serif;
}


.card {
    background-color: #181a20;
    box-shadow: 0 4px 18px 0 #23272a44;
    padding: 32px 24px 24px 24px;
    border-radius: 18px;
    flex: 1 1 320px;
    min-width: 320px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.2s, border 0.2s;
    border: 1.5px solid #23272A;
}

.card h2 {
    color: #39FF14;
    margin-bottom: 18px;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

label {
    color: #39FF14;
    font-weight: 500;
    margin-bottom: 2px;
}


/* Table de base */
table {
    width: 100%;
    border-collapse: collapse;
    background: #181a20;
    border-radius: 12px;
    overflow: hidden;
}

th,
td {
    padding: 12px 10px;
    text-align: left;
    color: #e3e9f7;
}

th {
    background: #23272A;
    color: #39FF14;
}

tr:nth-child(even) {
    background: #23272A;
}

tr:hover {
    background: #23272A;
    color: #39FF14;
}

::selection {
    background: #5865F244;
}

.success {
    color: #4caf50;
    background: #1e2b1e;
    border-radius: 6px;
    padding: 6px 12px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 1.05rem;
}

.error {
    color: #f44336;
    margin-bottom: 12px;
}


.logout-btn {
    background: linear-gradient(90deg, #050507 0%, #201818 100%);
    color: #ff6b6b;
    font-weight: 700;
    border: 1.5px solid #23272A;
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 1.08em;
    box-shadow: 0 2px 8px #23272a55;
    text-decoration: none;
    transition: background 0.18s, box-shadow 0.18s, color 0.18s, border 0.18s;
    display: inline-block;
    letter-spacing: 0.5px;
    position: relative;
    width: 161px;
    margin-bottom: -6px;
}

.logout-btn:hover {
    background: #f44336;
    color: #fff;
    border: 1.5px solid #f44336;
    box-shadow: 0 4px 16px #f4433644;
    text-decoration: none;
}

/* ================================ */
/* BACKGROUND PARTICLES ANIMATION */
/* ================================ */

.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(55, 255, 20, 0.3);
    border-radius: 50%;
    animation: float 6s infinite linear;
}

.particle.alt {
    background: rgba(88, 101, 242, 0.2);
    width: 1.5px;
    height: 1.5px;
    animation-duration: 8s;
}

.particle.glow {
    background: rgba(255, 255, 255, 0.1);
    width: 1px;
    height: 1px;
    animation-duration: 10s;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

@keyframes float {
    from {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    to {
        transform: translateY(-110vh) rotate(360deg);
        opacity: 0;
    }
}

/* Particle variations for different pages */
.particles-dense .particle {
    animation-duration: 4s;
}

.particles-slow .particle {
    animation-duration: 12s;
}

.particles-colorful .particle:nth-child(3n) {
    background: rgba(255, 45, 85, 0.2);
}

.particles-colorful .particle:nth-child(3n+1) {
    background: rgba(55, 255, 20, 0.3);
}

.particles-colorful .particle:nth-child(3n+2) {
    background: rgba(88, 101, 242, 0.2);
}

/* Auto-initialize particles on body */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Utility classes for different particle effects */
.particles-enabled {
    position: relative;
}

.particles-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Shimmer effect for special elements */
.shimmer-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(55, 255, 20, 0.2), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Enhanced hover effects with particles */
.card:hover {
    box-shadow:
        0 4px 18px 0 #23272a44,
        0 0 20px rgba(55, 255, 20, 0.1);
    border-color: rgba(55, 255, 20, 0.3);
}

/* Floating animation for special elements */
@keyframes gentle-float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.floating-element {
    animation: gentle-float 4s ease-in-out infinite;
}

/* Pulse effect for buttons */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(55, 255, 20, 0.3);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 20px rgba(55, 255, 20, 0.6);
        transform: scale(1.02);
    }
}

.pulse-on-hover:hover {
    animation: pulse-glow 1.5s infinite;
}