* {
    box-sizing: border-box;
}

body {

    margin: 0;

    background: #111827;

    color: #f9fafb;

    font-family:
        Segoe UI,
        Arial,
        sans-serif;
}

.hidden {
    display: none !important;
}

.center-container {

    display: flex;

    justify-content: center;

    align-items: center;

    height: 100vh;
}

.login-card {

    width: 350px;

    text-align: center;
}

.card {

    background: #1f2937;

    border: 1px solid #374151;

    border-radius: 10px;

    margin: 20px;

    padding: 20px;
}

header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 20px;
}

input {

    width: 100%;

    padding: 12px;

    margin-bottom: 15px;

    border-radius: 6px;

    border: 1px solid #374151;

    background: #111827;

    color: white;
}

button {

    background: #2563eb;

    color: white;

    border: none;

    border-radius: 6px;

    padding: 12px 16px;

    cursor: pointer;
}

button:hover {

    background: #1d4ed8;
}

button:disabled {

    opacity: .5;

    cursor: not-allowed;
}

.button-group {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}

.status-grid {

    display: grid;

    grid-template-columns:
        200px
        1fr;

    gap: 12px;
}

.audit-log {

    max-height: 300px;

    overflow-y: auto;

    font-family: monospace;

    white-space: pre-wrap;
}

.warning {

    background: #7f1d1d;

    border: 1px solid #dc2626;

    margin: 20px;

    padding: 15px;

    border-radius: 8px;
}

.error-text {

    color: #ef4444;

    margin-top: 10px;
}

.modal {

    position: fixed;

    inset: 0;

    background:
        rgba(0,0,0,0.8);

    display: flex;

    justify-content: center;

    align-items: center;
}

.modal-content {

    background: #1f2937;

    padding: 20px;

    border-radius: 10px;

    width: 400px;

    max-width: 90%;
}

.running {
    color: #22c55e;
}

.starting {
    color: #facc15;
}

.stopping {
    color: #fb923c;
}

.error {
    color: #ef4444;
}

.unknown {
    color: #9ca3af;
}

.maintenance {
    color: #9e00e7;
}

@media (max-width: 768px) {

    header {

        flex-direction: column;

        gap: 15px;
    }

    .status-grid {

        grid-template-columns: 1fr;
    }

    .button-group {

        flex-direction: column;
    }
}