/* Server Status Widget */
.server-status {
    background: 
        linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) padding-box,
        linear-gradient(90deg, 
            var(--primary-color, #4a90e2),
            rgba(74, 144, 226, 0.3),
            var(--primary-color, #4a90e2),
            rgba(74, 144, 226, 0.3),
            var(--primary-color, #4a90e2)
        ) border-box;
    border: 3px solid transparent;
    border-radius: 12px;
    color: #ffffff;
    padding: 25px;
    margin: 0 auto 40px auto;
    max-width: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background-size: 100% 100%, 200% 100%;
    transition: all 0.3s ease;
}

.server-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.server-status:hover {
    background: 
        linear-gradient(135deg, #2d2d2d 0%, #404040 100%) padding-box,
        linear-gradient(90deg, 
            var(--primary-color, #4a90e2),
            rgba(74, 144, 226, 0.3),
            var(--primary-color, #4a90e2),
            rgba(74, 144, 226, 0.3),
            var(--primary-color, #4a90e2)
        ) border-box;
    background-size: 100% 100%, 200% 100%;
    animation: flowingBorder 2s linear infinite;
    box-shadow: 
        0 0 20px rgba(74, 144, 226, 0.6),
        0 8px 25px rgba(74, 144, 226, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.server-status:hover::before {
    left: 100%;
}

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

.server-status-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.server-status h3 {
    color: #4a90e2;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.server-info {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.server-detail {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.server-detail .label {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.server-detail .value {
    color: #4a90e2;
    font-size: 1.4rem;
    font-weight: bold;
}

.server-status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.server-online {
    background-color: #4a90e2;
}

.server-offline {
    background-color: #dc3545;
}

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

.connect-button {
    background: linear-gradient(135deg, #4a90e2 0%, #6bb6ff 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.connect-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    background: linear-gradient(135deg, #6bb6ff 0%, #4a90e2 100%);
}

.server-ip {
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid #4a90e2;
    border-radius: 6px;
    padding: 8px 15px;
    font-family: 'Courier New', monospace;
    color: #4a90e2;
    margin: 10px 0;
    display: inline-block;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .server-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .server-detail {
        min-width: 100px;
    }
}
