/* ⬇️ Customize variables here ⬇️ */
:root {
    /* Theme Colors */
    --background-color: #0d0e13;
    --text-color: white;
    --text-color-secondary: #aeaeae;

    --item-bg: #1f1f26;
    --item-border: #39343d;

    /* Card colors */
    --card-bg: rgba(30, 30, 35, 0.4);
    --card-border: rgba(255, 255, 255, 0.2);
    --card-text: #ffffff;
    --card-text-secondary: #cccccc;
    --card-footer-text: #888888;
    --card-divider: rgba(255, 255, 255, 0.1);

    /* Fonts */
    --font-primary: "Outfit", sans-serif;

    /* Background */
    --bg: url("assets/bg.png");
}

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

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-color);
}

p,
span {
    color: var(--text-color-secondary);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

body {
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 16px;
}

.status-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--card-text);
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--card-divider);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.server-icon {
    width: 45px;
    height: 45px;
}

.server-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.card-header h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--card-text);
    margin: 0;
}

.services-section {
    margin-bottom: 24px;
}

.services-section:last-of-type {
    margin-bottom: 16px;
}

.services-section h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--card-text);
    margin: 0 0 12px 0;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.service-name {
    font-size: 14px;
    color: var(--card-text-secondary);
    font-weight: 400;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-text {
    font-size: 12px;
    font-weight: 500;
}

.status-indicator.online .status-dot {
    background-color: #22c55e;
}

.status-indicator.online .status-text {
    color: #22c55e;
}

.status-indicator.offline .status-dot {
    background-color: #ef4444;
}

.status-indicator.offline .status-text {
    color: #ef4444;
}

.status-indicator.maintenance .status-dot {
    background-color: #f59e0b;
}

.status-indicator.maintenance .status-text {
    color: #f59e0b;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--card-divider);
    font-size: 11px;
}

.copyright {
    color: var(--card-footer-text);
}

.last-updated {
    color: var(--card-footer-text);
}

.alert-container {
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.alert {
    margin-top: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid;
    animation: slideIn 0.3s ease-out;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--card-text);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--card-text);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--card-text);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--card-text);
}

.alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.alert-warning .alert-icon {
    color: #f59e0b;
}

.alert-error .alert-icon {
    color: #ef4444;
}

.alert-info .alert-icon {
    color: #3b82f6;
}

.alert-success .alert-icon {
    color: #22c55e;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--card-text);
    margin-bottom: 4px;
}

.alert-message {
    font-size: 13px;
    color: var(--card-text-secondary);
    line-height: 1.4;
    margin-bottom: 6px;
}

.alert-time {
    font-size: 11px;
    color: var(--card-footer-text);
    opacity: 0.8;
}

.alert-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--card-text-secondary);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.alert-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--card-text);
}

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

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .alert-container {
        max-width: 100%;
    }

    .status-card {
        padding: 24px;
        max-width: 100%;
    }

    .card-footer {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .alert {
        padding: 12px;
        gap: 10px;
    }

    .alert-title {
        font-size: 13px;
    }

    .alert-message {
        font-size: 12px;
    }
}
