* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
    padding: 20px;
    color: #e2e8f0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-image {
    width: auto;
    height: 180px;
    margin: 0 auto 20px;
    display: block;
    padding: 30px 45px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(226, 232, 240, 0.95));
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.logo-text {
    color: white;
    font-size: 32px;
    font-weight: bold;
}

h1 {
    color: #f8fafc;
    margin-bottom: 10px;
    font-size: 2.2em;
    background: linear-gradient(45deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #94a3b8;
    font-size: 1.1em;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(51, 65, 85, 0.3);
}

.card-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 16px;
    color: #f1f5f9;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.player-count {
    font-size: 3em;
    font-weight: bold;
    background: linear-gradient(45deg, #10b981, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.player-max {
    color: #64748b;
    font-size: 1.1em;
}

.player-list {
    background: #0f172a;
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
    max-height: 150px;
    overflow-y: auto;
}

.player-item {
    padding: 8px;
    margin: 4px 0;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-avatar {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 4px;
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-online {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    animation: pulse 2s infinite;
}

.status-offline {
    background: #ef4444;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin: 8px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #047857, #059669);
}

.btn-secondary {
    background: linear-gradient(135deg, #374151, #4b5563);
    color: #e5e7eb;
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(75, 85, 99, 0.4);
    background: linear-gradient(135deg, #4b5563, #6b7280);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, #b91c1c, #dc2626);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.stat-item {
    background: #0f172a;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #3b82f6;
}

.stat-label {
    color: #64748b;
    font-size: 0.9em;
    margin-top: 4px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(51, 65, 85, 0.8);
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
    display: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #06b6d4);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5);
}

.log-container {
    background: #0f172a;
    border-radius: 12px;
    padding: 16px;
    margin-top: 20px;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    border: 1px solid rgba(51, 65, 85, 0.5);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.log-container::-webkit-scrollbar {
    width: 8px;
}

.log-container::-webkit-scrollbar-track {
    background: rgba(51, 65, 85, 0.3);
    border-radius: 4px;
}

.log-container::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 4px;
}

.log-entry {
    padding: 8px;
    margin: 4px 0;
    border-radius: 6px;
    border-left: 3px solid;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.log-info { 
    border-left-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1); 
}

.log-success { 
    border-left-color: #10b981;
    background-color: rgba(16, 185, 129, 0.1); 
}

.log-error { 
    border-left-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1); 
}

.log-warning { 
    border-left-color: #f59e0b;
    background-color: rgba(245, 158, 11, 0.1); 
}

.admin-section {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
    border: 2px solid #dc2626;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2);
}

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

.admin-locked {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-weight: 500;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 1em;
    font-family: inherit;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.command-output {
    background: #0f172a;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    font-family: 'Courier New', monospace;
    color: #10b981;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    border: 1px solid #334155;
}

/* Responsive design */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.95em;
    }
    
    .card {
        padding: 16px;
    }
    
    .admin-section {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .player-count {
        font-size: 2.5em;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .logo-text {
        font-size: 24px;
    }
}