/* === STYLE GLOBAL THÈME POKER === */
body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(34, 197, 94, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(239, 68, 68, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '♠ ♥ ♦ ♣';
    position: fixed;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.02);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    pointer-events: none;
    z-index: 0;
    letter-spacing: 3rem;
}

.container {
    position: relative;
    z-index: 1;
}

.card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card-header {
    background: linear-gradient(-45deg, #ffd700, #ffb347, #ff8c00, #2c2c2c);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    border: none;
    position: relative;
    overflow: hidden;
    color: #ffffff !important;
    text-align: center;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.8) 2px, transparent 2px),
        radial-gradient(circle at 25% 60%, rgba(255, 215, 0, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 45% 30%, rgba(255, 215, 0, 0.7) 1.5px, transparent 1.5px),
        radial-gradient(circle at 65% 70%, rgba(255, 215, 0, 0.5) 1px, transparent 1px),
        radial-gradient(circle at 80% 40%, rgba(255, 215, 0, 0.8) 2px, transparent 2px),
        radial-gradient(circle at 15% 80%, rgba(255, 215, 0, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 35% 50%, rgba(255, 215, 0, 0.7) 1.5px, transparent 1.5px),
        radial-gradient(circle at 55% 20%, rgba(255, 215, 0, 0.5) 1px, transparent 1px),
        radial-gradient(circle at 75% 60%, rgba(255, 215, 0, 0.8) 2px, transparent 2px),
        radial-gradient(circle at 90% 30%, rgba(255, 215, 0, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 20% 40%, rgba(255, 215, 0, 0.7) 1.5px, transparent 1.5px),
        radial-gradient(circle at 40% 70%, rgba(255, 215, 0, 0.5) 1px, transparent 1px),
        radial-gradient(circle at 60% 50%, rgba(255, 215, 0, 0.8) 2px, transparent 2px),
        radial-gradient(circle at 85% 80%, rgba(255, 215, 0, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 30% 10%, rgba(255, 215, 0, 0.7) 1.5px, transparent 1.5px);
    animation: particlesFloat 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes particlesFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-3px) scale(1.1);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-6px) scale(1);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-3px) scale(0.9);
        opacity: 0.9;
    }
}

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

.card-header h1 {
    animation: glow 2s ease-in-out infinite alternate;
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
    color: #ffffff !important;
    position: relative;
    z-index: 2;
}

@keyframes glow {
    from { 
        text-shadow: 
            0 0 20px rgba(255, 215, 0, 0.6),
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    to { 
        text-shadow: 
            0 0 30px rgba(255, 215, 0, 0.9),
            0 0 40px rgba(255, 140, 0, 0.8),
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }
}

.form-control {
    background: #1e293b;
    border: 2px solid #334155;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: #1e293b;
    border-color: #22c55e;
    color: #e2e8f0;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.form-label {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-custom {
    border-radius: 16px;
    padding: 16px 28px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
}

.btn-custom::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-custom:hover::before {
    opacity: 1;
}

.btn-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.btn-custom:hover::after {
    width: 300px;
    height: 300px;
}

.btn-custom:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-custom:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-custom span {
    position: relative;
    z-index: 1;
}

.btn-custom-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: #ffffff;
    border: 2px solid rgba(16, 185, 129, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-custom-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 
        0 15px 35px rgba(16, 185, 129, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-custom-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    color: #ffffff;
    border: 2px solid rgba(59, 130, 246, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-custom-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 
        0 15px 35px rgba(59, 130, 246, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-admin {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-admin-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.btn-admin-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
}

.btn-admin-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-admin-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.btn-admin-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.btn-admin-info:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.btn-admin-success {
    background: linear-gradient(135deg, #10b981, #059669);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #10b981;
}

.btn-admin-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    border-color: #059669;
}

.clickable-badge {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    display: inline-block;
}

.clickable-badge::after {
    content: '👆';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clickable-badge:hover::after {
    opacity: 1;
}

.clickable-badge:hover {
    background-color: #ffd700 !important;
    color: #000 !important;
    transform: scale(1.15);
    border-color: #ff8c00;
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.4);
    z-index: 10;
}

@keyframes subtle-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
    }
}

.clickable-badge {
    animation: subtle-pulse 3s infinite;
}

.player-card {
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.player-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-color: #ffd700;
}

.player-rank {
    font-size: 18px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 8px;
    text-align: center;
}

.player-info {
    margin-bottom: 8px;
}

.player-name {
    font-weight: bold;
    color: #fff;
    font-size: 14px;
    margin-bottom: 4px;
}

.player-seat {
    color: #94a3b8;
    font-size: 12px;
}

.player-stack {
    font-size: 16px;
    font-weight: bold;
    color: #10b981;
    text-align: center;
}

.table-players-container {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.table-stats-summary {
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}