/* ============ TABLE ENHANCEMENTS WITH EMOJIS ============ */
thead th {
    padding: var(--space-xl) var(--space-lg);
    background: rgba(10, 10, 15, 0.9);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--surface-border);
    text-align: left;
    position: relative;
}

/* Table header emojis */
thead th:contains("Data")::before,
thead th:contains("Date")::before {
    content: '📅 ';
    margin-right: 0.3rem;
}

thead th:contains("Nick")::before,
thead th:contains("Player")::before,
thead th:contains("Gracz")::before {
    content: '🎮 ';
    margin-right: 0.3rem;
}

thead th:contains("Rodzaj")::before,
thead th:contains("Type")::before,
thead th:contains("Kar")::before {
    content: '⚖️ ';
    margin-right: 0.3rem;
}

thead th:contains("Powód")::before,
thead th:contains("Reason")::before {
    content: '📝 ';
    margin-right: 0.3rem;
}

thead th:contains("Admin")::before {
    content: '👑 ';
    margin-right: 0.3rem;
}

thead th:contains("Akcje")::before,
thead th:contains("Actions")::before {
    content: '⚡ ';
    margin-right: 0.3rem;
}

thead th:contains("Usunięte")::before,
thead th:contains("Deleted")::before {
    content: '🗑️ ';
    margin-right: 0.3rem;
}

thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-blue) 20%, 
        var(--accent-purple) 50%, 
        var(--accent-pink) 80%, 
        transparent 100%);
    opacity: 0.4;
}

/* Punishment type specific emojis in table cells */
tbody td:contains("Warning")::before,
tbody td:contains("Ostrzeżenie")::before {
    content: '⚠️ ';
    margin-right: 0.3rem;
}

tbody td:contains("Ban")::before,
tbody td:contains("Blokada")::before {
    content: '🔨 ';
    margin-right: 0.3rem;
}

tbody td:contains("Mute")::before,
tbody td:contains("Wyciszenie")::before {
    content: '🔇 ';
    margin-right: 0.3rem;
}

tbody td:contains("Notation")::before,
tbody td:contains("Notka")::before {
    content: '📄 ';
    margin-right: 0.3rem;
}

/* User role emojis */
.user-info small:contains("admin")::before {
    content: '👑 ';
}

.user-info small:contains("moderator")::before {
    content: '🛡️ ';
}

.user-info small:contains("user")::before {
    content: '👤 ';
}

/* Status indicators with emojis */
.empty-row::before {
    content: '📭 ';
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Floating Action Button with emoji */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-xl), var(--glow-blue);
    transition: all var(--transition-normal);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab::before {
    content: '⚡';
    font-size: 1.5rem;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(59, 130, 246, 0.6);
}

.fab:hover::before {
    content: '🚀';
    animation: fabBounce 0.6s ease-in-out;
}

@keyframes fabBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ============ TOAST NOTIFICATIONS WITH EMOJIS ============ */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: var(--space-lg) var(--space-xl);
    background: var(--surface-glass);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    transform: translateX(400px);
    transition: transform var(--transition-normal);
    z-index: 1000;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl);
    max-width: 350px;
}

.toast.show {
    transform: translateX(0);
    animation: toastBounce 0.6s var(--transition-bounce);
}

.toast.success {
    border-left: 4px solid var(--accent-green);
    box-shadow: var(--shadow-xl), var(--glow-green);
}

.toast.success::before {
    content: '🎉 ';
    margin-right: 0.5rem;
}

.toast.error {
    border-left: 4px solid var(--accent-red);
    box-shadow: var(--shadow-xl), var(--glow-red);
}

.toast.error::before {
    content: '💥 ';
    margin-right: 0.5rem;
}

.toast.info::before {
    content: 'ℹ️ ';
    margin-right: 0.5rem;
}

.toast.warning::before {
    content: '⚠️ ';
    margin-right: 0.5rem;
}

/* ============ PAGINATION WITH EMOJIS ============ */
.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 1px solid var(--surface-border);
    background: var(--surface-glass);
    transition: all var(--transition-normal);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.pagination a[href*="page=1"]:first-child::before {
    content: '⏪';
    font-size: 0.9rem;
}

.pagination a:contains("«")::before {
    content: '⬅️';
    font-size: 0.9rem;
}

.pagination a:contains("»")::before {
    content: '➡️';
    font-size: 0.9rem;
}

.pagination a:last-child::before {
    content: '⏩';
    font-size: 0.9rem;
}

/* ============ USER STATUS INDICATORS ============ */
.user-info::before {
    content: '👋 ';
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Online status indicator */
.user-info::after {
    content: '🟢';
    margin-left: 0.5rem;
    font-size: 0.8rem;
    animation: pulse 2s infinite;
}

/* ============ LOADING STATES WITH EMOJIS ============ */
.loading-text::before {
    content: '⏳ ';
    margin-right: 0.3rem;
}

.skeleton-text::before {
    content: '💭 ';
    margin-right: 0.3rem;
    opacity: 0.6;
}

/* ============ FORM VALIDATION EMOJIS ============ */
.input-group.valid input:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15), var(--glow-green);
}

.input-group.valid::after {
    content: '✅';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
}

.input-group.invalid input:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15), var(--glow-red);
}

.input-group.invalid::after {
    content: '❌';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
}

/* ============ CONTEXTUAL EMOJIS FOR DIFFERENT PAGES ============ */
/* Admin panel specific */
body[class*="admin"] .logo-area h1::before {
    content: '👑 ';
}

/* Journal/log page specific */
body[class*="journal"] .logo-area h1::before,
body[class*="dziennik"] .logo-area h1::before {
    content: '📚 ';
}

/* Panel/dashboard specific */
body[class*="panel"] .logo-area h1::before {
    content: '⚡ ';
}

/* Login page specific */
body[class*="login"] .logo-area h1::before {
    content: '🔐 ';
}

/* ============ SECURITY STATUS INDICATORS ============ */
.security-stats h3::before {
    content: '🔒 ';
    margin-right: 0.5rem;
}

.stat-card h4::before {
    content: '📊 ';
    margin-right: 0.3rem;
}

/* ============ HELP TEXT ENHANCEMENTS ============ */
.help-text::before {
    content: '💡 ';
    margin-right: 0.3rem;
    opacity: 0.8;
}

.required::after {
    content: ' 🔥';
    font-size: 0.8rem;
    margin-left: 0.2rem;
}/* ==============================================
   BAXPIA PANEL - ULTRA PREMIUM DARK THEME 2025
   Enhanced version with advanced animations
   ============================================== */

/* ============ VARIABLES & RESET ============ */
:root {
    /* Core Colors - Enhanced palette */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a2e;
    --bg-quaternary: #252538;
    
    /* Surface Colors with more depth */
    --surface-glass: rgba(17, 17, 24, 0.85);
    --surface-glass-light: rgba(26, 26, 46, 0.6);
    --surface-hover: rgba(37, 37, 56, 0.9);
    --surface-border: rgba(255, 255, 255, 0.08);
    --surface-border-bright: rgba(255, 255, 255, 0.15);
    
    /* Enhanced Accent Colors */
    --accent-blue: #3b82f6;
    --accent-blue-bright: #60a5fa;
    --accent-purple: #8b5cf6;
    --accent-purple-bright: #a78bfa;
    --accent-green: #10b981;
    --accent-green-bright: #34d399;
    --accent-red: #ef4444;
    --accent-red-bright: #f87171;
    --accent-orange: #f59e0b;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --text-accent: #94a3b8;
    
    /* Enhanced Gradients */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #f59e0b 100%);
    --gradient-bg: radial-gradient(ellipse at top, rgba(59, 130, 246, 0.1) 0%, transparent 70%),
                   radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.1) 0%, transparent 70%),
                   radial-gradient(ellipse at bottom left, rgba(236, 72, 153, 0.05) 0%, transparent 70%);
    
    /* Neon glows */
    --glow-blue: 0 0 20px rgba(59, 130, 246, 0.5);
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.5);
    --glow-green: 0 0 20px rgba(16, 185, 129, 0.5);
    --glow-red: 0 0 20px rgba(239, 68, 68, 0.5);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    
    /* Enhanced Shadows */
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.6);
    --shadow-md: 0 8px 16px -4px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 32px -8px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 24px 48px -12px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset with enhanced defaults */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* Animated background with floating particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    z-index: -2;
    animation: backgroundShift 20s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.1), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(59, 130, 246, 0.1), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(139, 92, 246, 0.1), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(236, 72, 153, 0.1), transparent);
    background-repeat: repeat;
    background-size: 150px 100px;
    z-index: -1;
    animation: twinkle 8s linear infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { opacity: 0.3; }
}

/* ============ ENHANCED TYPOGRAPHY WITH EMOJIS ============ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

h1 { 
    font-size: 2.5rem; 
    letter-spacing: -0.02em;
}
h2 { 
    font-size: 2rem; 
    letter-spacing: -0.01em;
}
h3 { 
    font-size: 1.75rem; 
}

/* ============ EMOJI ENHANCEMENTS ============ */
/* Panel Title */
.logo-area h1::before {
    content: '🛡️ ';
    font-size: 1.5rem;
    margin-right: 0.5rem;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.6));
}

/* Section Headers with Context Emojis */
section h2[class*="punishment"]::before,
section h2:contains("Dodaj")::before,
section h2:contains("notat")::before {
    content: '⚡ ';
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

section h2[class*="journal"]::before,
section h2:contains("Dziennik")::before,
section h2:contains("kar")::before {
    content: '📋 ';
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

section h2[class*="admin"]::before,
section h2:contains("Admin")::before,
section h2:contains("Bezpieczeń")::before {
    content: '👑 ';
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Navigation Links */
.main-nav a[href*="panel"]::before {
    content: '✨ ';
    margin-right: 0.3rem;
}

.main-nav a[href*="dziennik"]::before {
    content: '📖 ';
    margin-right: 0.3rem;
}

.main-nav a[href*="admin"]::before {
    content: '🔐 ';
    margin-right: 0.3rem;
}

.accent-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.accent-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.accent-text:hover::after {
    width: 100%;
}

/* ============ ENHANCED GLASS SURFACES ============ */
.glass-surface {
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.glass-surface::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.4) 20%, 
        rgba(255,255,255,0.4) 80%, 
        transparent 100%);
    opacity: 0.6;
}

.glass-surface:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: var(--surface-border-bright);
}

/* ============ ENHANCED BUTTONS WITH EMOJIS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-xl);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    min-width: 140px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.3), 
        transparent);
    transition: left var(--transition-slow);
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--glow-blue);
    filter: brightness(1.1);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(0) scale(0.98);
    transition: all var(--transition-fast);
}

/* Button Type Emojis */
.btn[type="submit"]::after,
.btn[name*="add"]::after {
    content: ' 🚀';
    margin-left: 0.3rem;
}

.btn-logout {
    background: transparent;
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.btn-logout::after {
    content: ' 👋';
    margin-left: 0.3rem;
}

.btn-logout:hover {
    background: var(--accent-red);
    color: white;
    box-shadow: var(--glow-red);
    border-color: var(--accent-red-bright);
}

.btn-delete {
    background: none;
    border: none;
    color: var(--accent-red);
    padding: var(--space-sm);
    font-size: 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete::before {
    content: '🗑️';
    font-size: 1rem;
}

.btn-delete:hover {
    background: var(--accent-red);
    color: white;
    transform: scale(1.15) rotate(5deg);
    box-shadow: var(--glow-red);
}

.btn-delete:hover::before {
    content: '💥';
    animation: deleteShake 0.5s ease-in-out;
}

@keyframes deleteShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* ============ ENHANCED LOGIN PAGE WITH EMOJIS ============ */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-lg);
    position: relative;
}

.login-form {
    width: 100%;
    max-width: 450px;
    padding: var(--space-3xl);
    text-align: center;
    animation: slideInUp 0.8s var(--transition-bounce);
    position: relative;
}

.login-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.login-form:hover::before {
    opacity: 0.6;
}

.login-form h2 {
    margin-bottom: var(--space-md);
    font-size: 2.25rem;
    animation: fadeInDown 1s var(--transition-normal) 0.2s both;
}

.login-form h2::before {
    content: '🔐 ';
    font-size: 2rem;
    margin-right: 0.5rem;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.6));
}

.login-form p {
    margin-bottom: var(--space-2xl);
    color: var(--text-secondary);
    font-size: 1.1rem;
    animation: fadeInDown 1s var(--transition-normal) 0.4s both;
}

.login-form p::before {
    content: '👋 ';
    margin-right: 0.3rem;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ ENHANCED FORM INPUTS WITH EMOJIS ============ */
.input-group {
    position: relative;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s var(--transition-normal) calc(var(--delay, 0) * 0.1s) both;
}

.input-group:nth-child(1) { --delay: 6; }
.input-group:nth-child(2) { --delay: 8; }

.input-group i {
    position: absolute;
    left: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: all var(--transition-normal);
    z-index: 2;
}

/* Replace boxicons with emojis for better visual context */
.input-group:has(input[name*="username"]) i::before,
.input-group:has(input[name*="user"]) i::before {
    content: '👤';
    font-family: inherit;
    font-size: 1.2rem;
}

.input-group:has(input[type="password"]) i::before,
.input-group:has(input[name*="password"]) i::before {
    content: '🔒';
    font-family: inherit;
    font-size: 1.2rem;
}

.input-group:has(input[name*="nick"]) i::before,
.input-group:has(input[name*="player"]) i::before {
    content: '🎮';
    font-family: inherit;
    font-size: 1.2rem;
}

.input-group:has(select[name*="punishment"]) i::before,
.input-group:has(select[name*="type"]) i::before {
    content: '⚖️';
    font-family: inherit;
    font-size: 1.2rem;
}

.input-group:has(textarea[name*="reason"]) i::before {
    content: '📝';
    font-family: inherit;
    font-size: 1.2rem;
}

.input-group:has(input[id*="filter"]) i::before,
.input-group:has(input[placeholder*="filter"]) i::before,
.input-group:has(input[placeholder*="Search"]) i::before {
    content: '🔍';
    font-family: inherit;
    font-size: 1.2rem;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: var(--space-lg) var(--space-lg) var(--space-lg) 3.25rem;
    background: rgba(17, 17, 24, 0.9);
    border: 2px solid var(--surface-border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    position: relative;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(17, 17, 24, 0.95);
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.15),
        var(--glow-blue),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.input-group input:focus + i,
.input-group:focus-within i {
    color: var(--accent-blue);
    transform: translateY(-50%) scale(1.1);
    text-shadow: var(--glow-blue);
}

.input-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Label emojis based on content */
.input-group label[for*="nick"]::before,
.input-group label[for*="player"]::before {
    content: '🎮 ';
    margin-right: 0.3rem;
}

.input-group label[for*="punishment"]::before,
.input-group label[for*="type"]::before {
    content: '⚖️ ';
    margin-right: 0.3rem;
}

.input-group label[for*="reason"]::before {
    content: '📝 ';
    margin-right: 0.3rem;
}

.input-group label[for*="username"]::before,
.input-group label[for*="user"]::before {
    content: '👤 ';
    margin-right: 0.3rem;
}

.input-group label[for*="password"]::before {
    content: '🔒 ';
    margin-right: 0.3rem;
}

/* Enhanced password field with strength indicator */
.input-group.password {
    position: relative;
}

.input-group.password::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 2px;
    right: 2px;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--accent-red) 0% 33%, 
        var(--accent-orange) 33% 66%, 
        var(--accent-green) 66% 100%);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.input-group.password:focus-within::after {
    opacity: 0.6;
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ ENHANCED HEADER ============ */
.panel-header {
    padding: var(--space-xl) var(--space-2xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--surface-border);
    min-height: 90px;
    transition: all var(--transition-normal);
}

.panel-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.5;
}

.logo-area h1 {
    font-size: 1.75rem;
    font-weight: 800;
    position: relative;
    letter-spacing: -0.02em;
}

.logo-area h1::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -10px;
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: var(--glow-green);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.main-nav {
    display: flex;
    gap: var(--space-sm);
    background: var(--surface-glass);
    padding: var(--space-sm);
    border-radius: var(--radius-lg);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(20px);
}

.main-nav a {
    padding: var(--space-md) var(--space-lg);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left var(--transition-normal);
    z-index: -1;
    opacity: 0.1;
}

.main-nav a:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.main-nav a:hover::before {
    left: 0;
}

.main-nav a.active {
    color: white;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-md), var(--glow-blue);
    transform: translateY(-2px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: var(--space-md) var(--space-lg);
    background: var(--surface-glass-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(10px);
}

/* ============ ENHANCED MAIN CONTENT ============ */
.panel-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-2xl);
}

.content-wrapper {
    animation: contentFadeIn 0.8s var(--transition-normal);
}

@keyframes contentFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px) scale(0.98); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

section {
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
    position: relative;
}

section h2 {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--surface-border);
    font-weight: 700;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

/* ============ ENHANCED FORMS ============ */
.punishment-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.punishment-form .input-group {
    margin-bottom: 0;
}

.punishment-form input[type="text"] {
    padding-left: var(--space-lg);
}

.punishment-form textarea {
    padding-left: var(--space-lg);
    resize: vertical;
    min-height: 140px;
    font-family: inherit;
    line-height: 1.6;
}

.punishment-form select {
    padding-left: var(--space-lg);
    cursor: pointer;
}

.punishment-form select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: var(--space-sm);
}

/* ============ ENHANCED TABLES ============ */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--surface-border);
    margin: var(--space-xl) 0;
    position: relative;
}

.table-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.6;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
}

thead th {
    padding: var(--space-xl) var(--space-lg);
    background: rgba(10, 10, 15, 0.9);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--surface-border);
    text-align: left;
    position: relative;
}

thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-blue) 20%, 
        var(--accent-purple) 50%, 
        var(--accent-pink) 80%, 
        transparent 100%);
    opacity: 0.4;
}

tbody tr {
    transition: all var(--transition-normal);
    border-bottom: 1px solid var(--surface-border);
    position: relative;
}

tbody tr:hover {
    background: var(--surface-hover);
    transform: scale(1.01);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

tbody tr:hover td {
    color: var(--text-primary);
}

tbody tr:last-child {
    border-bottom: none;
}

tbody td {
    padding: var(--space-xl) var(--space-lg);
    color: var(--text-secondary);
    vertical-align: middle;
    transition: all var(--transition-normal);
}

.reason-cell {
    max-width: 400px;
    word-wrap: break-word;
    white-space: pre-wrap;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.empty-row {
    text-align: center;
    padding: var(--space-3xl) !important;
    color: var(--text-muted);
    font-style: italic;
    font-size: 1.1rem;
}

/* ============ ENHANCED FILTER ============ */
.filter-wrapper {
    margin-bottom: var(--space-2xl);
    max-width: 500px;
    position: relative;
}

.filter-wrapper .input-group {
    margin-bottom: 0;
}

.filter-wrapper .input-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-secondary);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.filter-wrapper .input-group:focus-within::after {
    transform: scaleX(1);
}

/* ============ ENHANCED PAGINATION ============ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--surface-border);
    flex-wrap: wrap;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 1px solid var(--surface-border);
    background: var(--surface-glass);
    transition: all var(--transition-normal);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left var(--transition-normal);
    z-index: -1;
    opacity: 0.1;
}

.pagination a:hover {
    color: var(--text-primary);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination a:hover::before {
    left: 0;
}

.pagination a.current {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-lg), var(--glow-blue);
    transform: scale(1.1);
}

/* ============ ENHANCED MESSAGES WITH EMOJIS ============ */
.success-message,
.error-message {
    padding: var(--space-lg) var(--space-xl);
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    border: 1px solid;
    position: relative;
    backdrop-filter: blur(10px);
    animation: messageSlideIn 0.5s var(--transition-bounce);
}

.success-message {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green-bright);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: var(--glow-green);
}

.success-message::before {
    content: '✅ ';
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.error-message {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red-bright);
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: var(--glow-red);
}

.error-message::before {
    content: '❌ ';
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Specific message emojis based on content */
.success-message:contains("dodana")::before,
.success-message:contains("added")::before {
    content: '🚀 ';
}

.success-message:contains("usunięta")::before,
.success-message:contains("deleted")::before {
    content: '🗑️ ';
}

.error-message:contains("login")::before,
.error-message:contains("hasło")::before,
.error-message:contains("password")::before {
    content: '🔐 ';
}

.error-message:contains("zablokowane")::before,
.error-message:contains("locked")::before {
    content: '🚫 ';
}

.error-message:contains("sesja")::before,
.error-message:contains("session")::before {
    content: '⏰ ';
}

.success-message::after,
.error-message::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: var(--radius-sm);
}

.success-message::after {
    background: var(--accent-green);
}

.error-message::after {
    background: var(--accent-red);
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ============ FLOATING ACTION BUTTON ============ */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-xl), var(--glow-blue);
    transition: all var(--transition-normal);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(59, 130, 246, 0.6);
}

/* ============ LOADING ANIMATIONS ============ */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(90deg, 
        var(--surface-glass) 25%, 
        var(--surface-hover) 50%, 
        var(--surface-glass) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============ TOAST NOTIFICATIONS ============ */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: var(--space-lg) var(--space-xl);
    background: var(--surface-glass);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    transform: translateX(400px);
    transition: transform var(--transition-normal);
    z-index: 1000;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl);
    max-width: 350px;
}

.toast.show {
    transform: translateX(0);
    animation: toastBounce 0.6s var(--transition-bounce);
}

.toast.success {
    border-left: 4px solid var(--accent-green);
    box-shadow: var(--shadow-xl), var(--glow-green);
}

.toast.error {
    border-left: 4px solid var(--accent-red);
    box-shadow: var(--shadow-xl), var(--glow-red);
}

@keyframes toastBounce {
    0% { transform: translateX(400px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

/* ============ PROGRESS BARS ============ */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--surface-border);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width var(--transition-normal);
    width: var(--progress, 0%);
}

.progress-bar.animated::before {
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.5); }
    50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.8); }
}

/* ============ ENHANCED RESPONSIVE ============ */
@media (max-width: 1200px) {
    .panel-container {
        padding: var(--space-xl);
    }
}

@media (max-width: 1024px) {
    .panel-header {
        flex-direction: column;
        gap: var(--space-lg);
        padding: var(--space-lg);
        min-height: auto;
    }
    
    .main-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .user-info {
        width: 100%;
        justify-content: center;
    }
    
    .fab {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
        --space-3xl: 2.5rem;
    }
    
    .punishment-form .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .login-form {
        padding: var(--space-2xl);
        max-width: 400px;
    }
    
    .login-form h2 {
        font-size: 1.875rem;
    }
    
    section {
        padding: var(--space-xl);
    }
    
    .panel-container {
        padding: var(--space-lg);
    }
    
    /* Enhanced Mobile Table */
    .table-wrapper {
        border: none;
        border-radius: 0;
        margin: var(--space-lg) -var(--space-lg);
    }
    
    table, thead, tbody, tr, td {
        display: block;
    }
    
    thead {
        display: none;
    }
    
    tbody tr {
        margin-bottom: var(--space-lg);
        border-radius: var(--radius-lg);
        background: var(--surface-glass);
        border: 1px solid var(--surface-border);
        padding: var(--space-lg);
        position: relative;
        overflow: hidden;
    }
    
    tbody tr::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: var(--gradient-primary);
    }
    
    tbody tr:hover {
        transform: none;
        box-shadow: var(--shadow-lg), var(--glow-blue);
    }
    
    tbody td {
        border: none;
        padding: var(--space-sm) 0;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        border-bottom: 1px solid var(--surface-border);
        min-height: 40px;
    }
    
    tbody td:last-child {
        border-bottom: none;
        justify-content: center;
        padding-top: var(--space-md);
    }
    
    tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--accent-blue);
        font-size: 0.75rem;
        text-transform: uppercase;
        margin-right: var(--space-md);
        flex-shrink: 0;
        min-width: 80px;
    }
    
    .reason-cell {
        max-width: none;
        text-align: right;
        flex: 1;
        margin-left: var(--space-md);
    }
    
    /* Mobile pagination */
    .pagination {
        gap: var(--space-xs);
    }
    
    .pagination a {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .panel-container {
        padding: var(--space-md);
    }
    
    .login-container {
        padding: var(--space-md);
    }
    
    .login-form {
        padding: var(--space-xl);
    }
    
    section {
        padding: var(--space-lg);
    }
    
    .main-nav a {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.8rem;
    }
    
    .user-info {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .toast {
        left: 10px;
        right: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}

/* ============ DARK MODE ENHANCEMENTS ============ */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #000000;
        --bg-secondary: #0a0a0a;
        --surface-glass: rgba(10, 10, 10, 0.9);
    }
}

/* ============ PRINT STYLES ============ */
@media print {
    body::before,
    body::after {
        display: none;
    }
    
    .panel-header,
    .btn,
    .pagination,
    .fab {
        display: none !important;
    }
    
    .glass-surface {
        background: white;
        color: black;
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    table {
        background: white;
        color: black;
    }
}

/* ============ ACCESSIBILITY ENHANCEMENTS ============ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    body::before,
    body::after {
        animation: none;
    }
}

/* Focus styles for better accessibility */
.btn:focus-visible,
.input-group input:focus-visible,
.input-group textarea:focus-visible,
.input-group select:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --surface-border: rgba(255, 255, 255, 0.3);
        --text-muted: #a0a0a0;
    }
}

/* ============ ADDITIONAL HELPER CLASSES ============ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }
.p-5 { padding: var(--space-xl); }

.hidden { display: none; }
.visible { display: block; }

.fade-in {
    animation: fadeInUp 0.6s var(--transition-normal);
}

.scale-hover:hover {
    transform: scale(1.05);
    transition: transform var(--transition-normal);
}

.glow-text {
    text-shadow: 0 0 10px currentColor;
}

/* ============ REQUIRED FIELD STYLES ============ */
.required { 
    color: var(--accent-red); 
    font-weight: 700;
}

.help-text { 
    color: var(--text-muted); 
    font-size: 0.75rem; 
    margin-top: var(--space-xs); 
    display: block; 
    font-style: italic;
}

.text-muted {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* ============ CUSTOM SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--surface-border);
    border-radius: 4px;
    transition: background var(--transition-normal);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--surface-border) var(--bg-secondary);
}

/* ============ SELECTION STYLES ============ */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
}