/* === Reset & Global === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neon-blue: #29c4ff;
    --neon-pink: #ff1493;
    --neon-green: #00ff9d;
    --neon-purple: #9d4edd;
    --neon-orange: #ff9900;
    --neon-red: #ff416c;
    --neon-yellow: #ffd700;
    --dark-bg: #0a0a0f;
    --panel-bg: rgba(15, 15, 30, 0.95);
    --glass-border: rgba(41, 196, 255, 0.25);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --danger: #ff416c;
    --warning: #ff9900;
    --success: #00ff9d;
    --info: #29c4ff;
}

body {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* === Cyber Grid Background === */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(41, 196, 255, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(41, 196, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* === Floating Particles === */
.floating-elements {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.floating-elements div {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--neon-blue), transparent);
    filter: blur(10px);
    animation: float 20s infinite linear;
}

.floating-elements div:nth-child(1) {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    background: radial-gradient(circle, var(--neon-blue), transparent);
}

.floating-elements div:nth-child(2) {
    width: 100px;
    height: 100px;
    top: 70%;
    left: 85%;
    animation-delay: 5s;
    background: radial-gradient(circle, var(--neon-pink), transparent);
}

.floating-elements div:nth-child(3) {
    width: 120px;
    height: 120px;
    top: 40%;
    left: 15%;
    animation-delay: 10s;
    background: radial-gradient(circle, var(--neon-green), transparent);
}

.floating-elements div:nth-child(4) {
    width: 80px;
    height: 80px;
    top: 85%;
    left: 65%;
    animation-delay: 15s;
    background: radial-gradient(circle, var(--neon-purple), transparent);
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg); 
        opacity: 0.3;
    }
    25% { 
        transform: translate(100px, -50px) rotate(90deg); 
        opacity: 0.5;
    }
    50% { 
        transform: translate(50px, 100px) rotate(180deg); 
        opacity: 0.3;
    }
    75% { 
        transform: translate(-100px, 50px) rotate(270deg); 
        opacity: 0.5;
    }
}

/* === Scan Line Effect === */
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--neon-blue), 
        var(--neon-green), 
        var(--neon-pink), 
        transparent);
    z-index: 1000;
    opacity: 0.7;
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

/* === Login Page === */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

.login-box {
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 25px;
    padding: 50px 40px;
    width: 100%;
    max-width: 500px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 80px rgba(41, 196, 255, 0.15),
        0 0 200px rgba(255, 20, 147, 0.1),
        inset 0 0 30px rgba(255, 255, 255, 0.05);
    animation: loginAppear 1s ease-out;
}

.login-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--neon-blue), 
        var(--neon-pink), 
        var(--neon-green), 
        var(--neon-purple));
    z-index: -1;
    border-radius: 27px;
    animation: borderGlow 3s linear infinite;
    filter: blur(5px);
}

.login-box::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--panel-bg);
    border-radius: 23px;
    z-index: 1;
}

@keyframes loginAppear {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes borderGlow {
    0%, 100% { filter: blur(5px) hue-rotate(0deg); }
    50% { filter: blur(8px) hue-rotate(180deg); }
}

.login-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink), var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 30px rgba(41, 196, 255, 0.5);
}

.login-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
    z-index: 2;
    position: relative;
}

/* === Form Styles === */
.form-group {
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.form-label {
    display: block;
    margin-bottom: 12px;
    color: var(--neon-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-with-icon {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(41, 196, 255, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Courier New', monospace;
}

.form-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 
        0 0 30px rgba(41, 196, 255, 0.3),
        inset 0 0 20px rgba(41, 196, 255, 0.1);
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-blue);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.form-input:focus + .input-icon {
    color: var(--neon-green);
    animation: iconPulse 0.5s ease;
}

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

/* === Login Button === */
.login-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 2;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(41, 196, 255, 0.3);
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(41, 196, 255, 0.4),
        0 0 60px rgba(157, 78, 221, 0.3);
    letter-spacing: 3px;
}

.login-btn:active:not(:disabled) {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(45deg, #666, #888);
}

.login-btn::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: 0.5s;
}

.login-btn:hover:not(:disabled)::before {
    left: 100%;
}

.btn-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 12px;
    background: inherit;
    animation: btnGlow 2s infinite;
    z-index: -1;
}

@keyframes btnGlow {
    0%, 100% { 
        opacity: 0.8;
        filter: blur(0px);
    }
    50% { 
        opacity: 0;
        filter: blur(20px);
    }
}

/* === Messages === */
.error-message, 
.success-message,
.warning-message,
.info-message {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    z-index: 2;
    position: relative;
    animation: messageAppear 0.5s ease;
}

.error-message {
    background: rgba(255, 20, 147, 0.15);
    border: 2px solid rgba(255, 20, 147, 0.3);
    color: var(--neon-pink);
}

.success-message {
    background: rgba(0, 255, 157, 0.15);
    border: 2px solid rgba(0, 255, 157, 0.3);
    color: var(--neon-green);
}

.warning-message {
    background: rgba(255, 153, 0, 0.15);
    border: 2px solid rgba(255, 153, 0, 0.3);
    color: var(--neon-orange);
}

.info-message {
    background: rgba(41, 196, 255, 0.15);
    border: 2px solid rgba(41, 196, 255, 0.3);
    color: var(--neon-blue);
}

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

/* === Version Badge === */
.version-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(41, 196, 255, 0.15);
    border: 1px solid rgba(41, 196, 255, 0.4);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neon-blue);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

/* === Security Info === */
.security-info {
    margin-top: 25px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid rgba(41, 196, 255, 0.1);
    z-index: 2;
    position: relative;
}

/* === Login Footer === */
.login-footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    z-index: 2;
    position: relative;
}

.login-footer div {
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* === Control Panel Styles === */
.control-panel {
    max-width: 1800px;
    margin: 0 auto;
    padding: 25px;
    position: relative;
}

/* Panel Header */
.panel-header {
    background: var(--panel-bg);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px 35px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.panel-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--neon-blue), 
        var(--neon-pink), 
        var(--neon-green));
    animation: headerGlow 3s infinite;
}

@keyframes headerGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.panel-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Server Status */
.server-status {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 20px var(--neon-green);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { 
        box-shadow: 0 0 20px var(--neon-green);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 40px var(--neon-green);
        transform: scale(1.1);
    }
}

.server-address {
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(41, 196, 255, 0.3);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.session-time {
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 20, 147, 0.3);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--neon-pink);
}

/* Logout Button */
.logout {
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    padding: 12px 30px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 65, 108, 0.3);
}

.logout:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 65, 108, 0.4);
}

/* Main Content Grid */
.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Command Boxes */
.command-box, .map-control, .quick-actions, 
.player-mgmt, .game-modes, .output-area {
    background: var(--panel-bg);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.command-box:hover, .map-control:hover, .quick-actions:hover, 
.player-mgmt:hover, .game-modes:hover, .output-area:hover {
    border-color: var(--neon-blue);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(41, 196, 255, 0.2);
}

.command-box::before, .map-control::before, .quick-actions::before,
.player-mgmt::before, .game-modes::before, .output-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--neon-blue), 
        var(--neon-pink));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.command-box:hover::before, .map-control:hover::before, .quick-actions:hover::before,
.player-mgmt:hover::before, .game-modes:hover::before, .output-area:hover::before {
    opacity: 1;
}

/* Section Headers */
h3 {
    color: var(--neon-blue);
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-bottom: 10px;
}

h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), transparent);
}

h4 {
    color: var(--neon-green);
    margin: 20px 0 15px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Gamemode Tabs */
.sub-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sub-tab {
    background: rgba(41, 196, 255, 0.1);
    border: 1px solid rgba(41, 196, 255, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: var(--text-secondary);
    user-select: none;
}

.sub-tab:hover {
    background: rgba(41, 196, 255, 0.2);
    border-color: rgba(41, 196, 255, 0.5);
    transform: translateY(-2px);
}

.sub-tab.active {
    background: rgba(41, 196, 255, 0.3);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(41, 196, 255, 0.3);
}

/* Map List Container */
.map-list-container {
    max-height: 300px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid rgba(41, 196, 255, 0.2);
}

/* Map Items */
.map-item {
    padding: 10px 15px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-item:hover {
    background: rgba(41, 196, 255, 0.2);
    transform: translateX(5px);
}

.map-name {
    font-weight: 600;
    color: #29c4ff;
}

.map-path {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Courier New', monospace;
}

/* Player History Box */
.player-history-box {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border: 2px solid rgba(0, 255, 157, 0.3);
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    padding: 10px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    border-left: 3px solid #29c4ff;
    display: flex;
    align-items: center;
}

.history-index {
    color: #ff1493;
    font-weight: bold;
    margin-right: 10px;
    min-width: 30px;
}

.history-name {
    color: #00ff9d;
    font-family: 'Courier New', monospace;
}

/* Ban Duration Buttons */
.ban-duration {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.duration-btn {
    padding: 8px 15px;
    background: rgba(255, 65, 108, 0.2);
    border: 1px solid rgba(255, 65, 108, 0.4);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.duration-btn:hover {
    background: rgba(255, 65, 108, 0.4);
    transform: translateY(-2px);
    color: white;
}

/* Match Controls */
.match-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.match-input {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(41, 196, 255, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    color: white;
    width: 100%;
    font-family: 'Courier New', monospace;
}

.match-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(41, 196, 255, 0.3);
}

/* Inputs */
.command-input, .map-select, .player-input, .say-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(41, 196, 255, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.command-input:focus, .map-select:focus, 
.player-input:focus, .say-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 25px rgba(41, 196, 255, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

/* Buttons */
.btn-execute, .btn-map, .btn-action, 
.btn-kick, .btn-say, .btn-mode {
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn-execute {
    background: linear-gradient(45deg, var(--neon-blue), #00b8ff);
    color: white;
    margin-top: 10px;
    width: 100%;
}

.btn-map {
    background: linear-gradient(45deg, var(--neon-pink), #ff416c);
    color: white;
    margin-top: 10px;
    width: 100%;
}

.btn-action {
    background: linear-gradient(45deg, var(--neon-green), #00cc7a);
    color: #000;
    flex: 1;
    min-width: 140px;
}

.btn-kick {
    background: linear-gradient(45deg, #ff416c, #ff0000);
    color: white;
    padding: 12px 25px;
}

.btn-say {
    background: linear-gradient(45deg, var(--neon-orange), #ff6600);
    color: white;
    padding: 12px 25px;
}

.btn-mode {
    background: linear-gradient(45deg, var(--neon-purple), #7b2cbf);
    color: white;
    flex: 1;
}

/* Button Hover Effects */
.btn-execute:hover, .btn-map:hover, .btn-action:hover, 
.btn-kick:hover, .btn-say:hover, .btn-mode:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.btn-execute:hover { 
    box-shadow: 0 10px 25px rgba(41, 196, 255, 0.4); 
}
.btn-map:hover { 
    box-shadow: 0 10px 25px rgba(255, 20, 147, 0.4); 
}
.btn-action:hover { 
    box-shadow: 0 10px 25px rgba(0, 255, 157, 0.4); 
}
.btn-kick:hover { 
    box-shadow: 0 10px 25px rgba(255, 65, 108, 0.4); 
}
.btn-say:hover { 
    box-shadow: 0 10px 25px rgba(255, 153, 0, 0.4); 
}
.btn-mode:hover { 
    box-shadow: 0 10px 25px rgba(157, 78, 221, 0.4); 
}

/* Action Grid */
.action-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

/* Input Groups */
.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.input-group .player-input,
.input-group .say-input {
    flex: 1;
    margin-bottom: 0;
}

/* Output Area */
.output-area {
    grid-column: span 2;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.output-controls {
    display: flex;
    gap: 10px;
}

.clear-btn {
    background: linear-gradient(45deg, #ff416c, #ff0000);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 65, 108, 0.3);
}

/* Save Log Button */
.clear-btn:nth-child(3) {
    background: linear-gradient(45deg, #00ff9d, #00cc7a);
}

.clear-btn:nth-child(3):hover {
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.3);
}

/* Output Box */
.output-box {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 25px;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    border: 2px solid rgba(41, 196, 255, 0.2);
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
    position: relative;
}

.output-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 95%,
        rgba(41, 196, 255, 0.1) 100%
    );
    pointer-events: none;
    animation: outputScan 2s linear infinite;
}

@keyframes outputScan {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* Footer */
.footer {
    text-align: center;
    padding: 25px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(41, 196, 255, 0.1);
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

.footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Glitch Effect */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
    -webkit-clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
}

@keyframes glitch-anim-1 {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes glitch-anim-2 {
    0% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
    100% { transform: translate(0); }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink));
    border-radius: 6px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue));
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(41, 196, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--neon-blue);
    animation: spin 1s ease-in-out infinite;
}

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

/* Confirmation Dialog */
.confirmation-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.confirmation-content {
    background: var(--panel-bg);
    border: 2px solid var(--neon-pink);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.confirmation-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.confirm-btn {
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-yes {
    background: linear-gradient(45deg, #ff416c, #ff0000);
    color: white;
}

.confirm-no {
    background: linear-gradient(45deg, #666, #888);
    color: white;
}

.confirm-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background: var(--panel-bg);
    color: var(--text-primary);
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid var(--neon-blue);
    font-size: 0.9rem;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .output-area {
        grid-column: 1;
    }
    
    .match-controls {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .panel-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .server-status {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer p {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .login-box {
        padding: 30px 20px;
    }
    
    .login-title {
        font-size: 2.2rem;
    }
    
    .panel-header h1 {
        font-size: 2rem;
    }
    
    .control-panel {
        padding: 15px;
    }
    
    .command-box, .map-control, .quick-actions, 
    .player-mgmt, .game-modes, .output-area {
        padding: 20px;
    }
    
    .sub-tabs {
        justify-content: center;
    }
    
    .sub-tab {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .match-controls {
        grid-template-columns: 1fr;
    }
    
    .action-grid {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .output-controls {
        flex-direction: column;
    }
    
    .clear-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .login-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .version-badge {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 20px;
        justify-content: center;
    }
    
    .panel-header h1 {
        font-size: 1.6rem;
        flex-direction: column;
        gap: 10px;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .server-address, .session-time {
        font-size: 0.85rem;
        padding: 8px 15px;
    }
    
    .logout {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .map-list-container {
        max-height: 200px;
    }
    
    .map-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .map-path {
        font-size: 0.8rem;
    }
    
    .duration-btn {
        min-width: 70px;
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .footer p {
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .scan-line,
    .cyber-grid,
    .floating-elements,
    .login-btn::before,
    .btn-pulse,
    .panel-header::before,
    .output-box::before {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .login-box,
    .control-panel,
    .command-box,
    .map-control,
    .quick-actions,
    .player-mgmt,
    .game-modes,
    .output-area {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    .output-box {
        background: white;
        color: black;
        border: 1px solid #ccc;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --neon-blue: #00a8ff;
        --neon-pink: #ff0055;
        --neon-green: #00ff88;
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
    }
    
    .output-box {
        color: #00ff00;
        background: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scan-line,
    .cyber-grid,
    .floating-elements,
    .btn-pulse {
        display: none;
    }
}