:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --accent-color: #38bdf8;
    --text-main: #f1f5f9;
    --text-dim: #94a3b8;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.container {
    max-width: 900px;
    width: 100%;
}

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

.clock {
    font-size: 4rem;
    font-weight: 800;
    margin: 0;
    color: var(--accent-color);
    font-variant-numeric: tabular-nums;
}

.date {
    font-size: 1.2rem;
    color: var(--text-dim);
}

.status-bar {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 30px;
    color: #4ade80;
}

.dot {
    height: 8px;
    width: 8px;
    background-color: #4ade80;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

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

.card {
    background: var(--card-bg);
    text-decoration: none;
    color: inherit;
    padding: 20px;
    border-radius: 16px;
    display: flex !important;
    align-items: center !important;
    border: 1px solid #334155;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

/* LED STYLING */
.led-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    width: 20px;
}

.led {
    display: inline-block !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50%;
}

.led-green {
    background-color: #2ecc71 !important;
    box-shadow: 0 0 10px #2ecc71;
    animation: blink-green 2s infinite;
}

.led-red {
    background-color: #e74c3c !important;
    box-shadow: 0 0 10px #e74c3c;
}

@keyframes blink-green {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}
/* Status-Text Styling */
.status-text {
    font-size: 0.8rem;
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

.status-online {
    color: #4ade80; /* Das Grün aus deinem Inline-Style */
}

.status-offline {
    color: #e74c3c; /* Das Rot aus deinem Inline-Style */
}

/* Styling für die IP Adresse */
.host-ip {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    opacity: 0.7;
}

.card-content h3 { margin: 0; font-size: 1.1rem; }
.card-content p { margin: 5px 0; font-size: 0.85rem; color: var(--text-dim); }

footer { margin-top: 50px; text-align: center; font-size: 0.8rem; color: var(--text-dim); }