* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.server-indicators {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.indicator {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: white;
}

h1 {
    font-size: 1.8rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin: 0;
}

h2 {
    font-size: 1.5rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Marquee animation */
.marquee-container {
    overflow: hidden;
    margin-bottom: 20px;
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.marquee-text {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0;
    white-space: nowrap;
    animation: marquee 15s linear infinite;
    text-align: center;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Card styling */
.card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card-header {
    padding: 15px;
    border-bottom: none;
}

.card-body {
    padding: 20px;
}

.card-footer {
    background-color: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px 20px;
    font-size: 0.85rem;
}

/* Status colors */
[style*="color: green"] {
    color: #28a745 !important;
}

[style*="color: red"] {
    color: #dc3545 !important;
}

[style*="color: blue"] {
    color: #007bff !important;
}

[style*="color: orange"] {
    color: #fd7e14 !important;
}

/* Animation for data updates */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.updated {
    animation: pulse 0.5s ease-in-out;
}

/* Footer styling */
footer {
    margin-top: auto;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 15px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .server-indicators {
        justify-content: center;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .marquee-text {
        font-size: 1.3rem;
    }
}

.data p[style*="red"] {
    background: linear-gradient(135deg, #ffb3b3 0%, #ff8a80 100%) !important;
    color: #8b0000 !important;
    border-color: #f44336 !important;
}

.data p[style*="blue"] {
    background: linear-gradient(135deg, #b3d9ff 0%, #80c7ff 100%) !important;
    color: #0066cc !important;
    border-color: #2196f3 !important;
}

.data p[style*="orange"] {
    background: linear-gradient(135deg, #ffd6b3 0%, #ffb380 100%) !important;
    color: #cc6600 !important;
    border-color: #ff9800 !important;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .dataShow {
        padding: 15px;
        margin: 10px;
    }
    
    .data {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .data h2, .data p {
        text-align: center;
        flex: none;
        width: 100%;
    }
    
    h1 {
        font-size: 2rem;
    }
}

/* Animation for real-time updates */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.data p.updated {
    animation: pulse 0.5s ease-in-out;
}
