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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #2c3e50;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    backdrop-filter: blur(10px);
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 300;
    color: #34495e;
}

h1 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

h1 a:hover {
    color: #3498db;
}

h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 500;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.server-info-container {
    margin-bottom: 40px;
}

.table-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8f4fd;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

td {
    padding: 12px 0;
    border-bottom: 1px solid #ecf0f1;
    vertical-align: top;
}

td:first-child {
    font-weight: 600;
    color: #34495e;
    width: 40%;
    padding-right: 20px;
}

td:last-child {
    color: #2c3e50;
    word-break: break-word;
}

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

.players-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8f4fd;
}

.players-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    margin-top: 20px;
}

.player-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.player-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.player-avatar {
    font-size: 24px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.player-name {
    font-weight: 500;
    font-size: 1.1rem;
    word-break: break-all;
}

.no-players {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    margin-top: 20px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #bdc3c7;
}

.log-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8f4fd;
    transition: all 0.3s ease;
}

.log-section.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 20px;
    border-radius: 0;
    z-index: 1000;
    box-shadow: none;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.fullscreen-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: clamp(3px, 0.5vw, 4px) clamp(6px, 1vw, 8px);
    cursor: pointer;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    transition: background-color 0.3s;
    height: fit-content;
}

.fullscreen-btn:hover {
    background: #0056b3;
}

.log-section.fullscreen .log-container {
    max-height: none;
    height: 100%;
    flex: 1;
    margin-bottom: 20px;
}

.log-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    font-family: 'Courier New', Monaco, monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.log-line {
    display: flex;
    margin-bottom: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    word-wrap: break-word;
}

.log-line:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.log-timestamp {
    font-weight: bold;
    color: #495057;
    margin-right: 8px;
    flex-shrink: 0;
}

.log-level {
    font-weight: bold;
    color: #6c757d;
    margin-right: 8px;
    flex-shrink: 0;
    min-width: 120px;
}

.log-message {
    color: #343a40;
    flex: 1;
    word-break: break-word;
}

.log-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.log-warning:hover {
    background-color: #ffeaa7;
}

.log-error {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

.log-error:hover {
    background-color: #f5c6cb;
}

.log-join {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
}

.log-join:hover {
    background-color: #c3e6cb;
}

.log-leave {
    background-color: #d1ecf1;
    border-left: 4px solid #17a2b8;
}

.log-leave:hover {
    background-color: #bee5eb;
}

.loading-message {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
    font-size: 1rem;
}

.resource-links {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8f4fd;
}

.resource-links p {
    margin-top: 15px;
    font-size: 1.1rem;
    text-align: center;
}

.resource-links a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid #3498db;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0 10px;
    background: transparent;
}

.resource-links a:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}


.error-banner {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    border: none;
    animation: slideDown 0.3s ease-out;
}

.error-banner.warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

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

@media (min-width: 1024px) {
    
    .server-table td {
        text-align: center;
    }
    
    .server-table td:first-child {
        text-align: right;
    }
    
    .server-table td:last-child {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    
    .players-grid {
        grid-template-columns: 1fr;
    }

    .resource-links a {
        display: block;
        margin: 10px 0;
    }
    
    td:first-child {
        width: 35%;
        padding-right: 15px;
        font-size: 0.9rem;
    }
    
    td:last-child {
        font-size: 0.9rem;
    }
    
    .log-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .log-timestamp, .log-level {
        margin-right: 0;
        min-width: auto;
    }
    
    .log-message {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.7rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .table-section {
        padding: 20px;
    }
    
    td {
        padding: 10px 0;
        font-size: 0.85rem;
    }
    
    .player-card {
        padding: 15px;
    }
    
    .player-name {
        font-size: 1rem;
    }

    .log-container {
        font-size: 0.8rem;
        padding: 10px;
        max-height: 300px;
    }

}
