*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #1a1a2e;
    color: #e0e0e0;
    min-height: 100vh;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-size: 1.2rem;
    color: #888;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

h1 {
    text-align: center;
    color: #e94560;
    margin-bottom: 0.25rem;
    font-size: 1.8rem;
}

.subtitle {
    text-align: center;
    color: #888;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

h2 {
    color: #e94560;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.4rem;
}

h3 {
    margin-top: 0;
    color: #0f3460;
}

/* Cards */
.card {
    background: #16213e;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid #1f3460;
}

.info-card {
    background: #0f3460;
    border-color: #e94560;
}

.info-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Status Grid */
.status-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.3rem 1rem;
    font-size: 0.9rem;
}

.label {
    color: #999;
    font-weight: 500;
}

.value {
    font-weight: 600;
}

.value.yes {
    color: #4ecca3;
}

.value.no {
    color: #e94560;
}

/* Forms */
.form-row {
    margin-bottom: 0.75rem;
}

.form-row label {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.25rem;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #333;
    border-radius: 6px;
    background: #0f3460;
    color: #e0e0e0;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
textarea:focus {
    border-color: #e94560;
}

textarea {
    min-height: 60px;
    resize: vertical;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #e94560;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    opacity: 0.9;
}

.btn-danger {
    background: #c0392b;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    opacity: 0.9;
}

.btn-secondary {
    background: #2c3e6d;
    color: #ccc;
}

.btn-secondary:hover:not(:disabled) {
    background: #3a5199;
}

/* Status message */
.status-card {
    font-size: 0.9rem;
    font-weight: 500;
}

.status-card.success {
    border-color: #4ecca3;
    color: #4ecca3;
}

.status-card.error {
    border-color: #e94560;
    color: #e94560;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

th, td {
    text-align: left;
    padding: 0.5rem;
    border-bottom: 1px solid #1f3460;
}

th {
    color: #999;
    font-weight: 600;
}

.endpoint {
    word-break: break-all;
    font-family: monospace;
    font-size: 0.75rem;
    color: #888;
}

.muted {
    color: #666;
    font-style: italic;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 1rem 0.75rem 2rem;
    }

    h1 {
        font-size: 1.4rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
