:root {
    --primary-color: #10b981;
    --primary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --success-color: #10b981;
    --error-color: #ef4444;
    --radius: 12px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 800px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.logo span {
    color: var(--text-muted);
    margin: 0 5px;
}

.settings-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-decoration: none;
}

.settings-btn:hover {
    background: var(--primary-gradient);
    color: white;
    transform: rotate(45deg);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-muted);
}

.status-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
}

.status-card.idle .status-icon {
    background-color: #94a3b8;
}

.status-card.success .status-icon {
    background-color: var(--success-color);
    box-shadow: 0 0 10px var(--success-color);
}

.status-card.error .status-icon {
    background-color: var(--error-color);
    box-shadow: 0 0 10px var(--error-color);
}

.status-icon::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 1px solid currentColor;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.status-text {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.data-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.code-box {
    background: #000;
    padding: 15px;
    border-radius: 8px;
    font-family: inherit;
}

.response-box {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
    white-space: pre-wrap;
}

.info-box pre,
.error-container pre {
    background: #000;
    padding: 15px;
    border-radius: 8px;
    color: #6ee7b7;
    font-size: 0.85rem;
    overflow-x: auto;
    margin-top: 10px;
}

.diagnostic-box {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

.diagnostic-box h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.diagnostic-box ul {
    list-style: none;
}

.diagnostic-box li {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.diagnostic-box li strong {
    color: var(--text-color);
}

footer {
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

footer p {
    font-size: 0.8rem;
}

/* Áreas de Teste */
.test-area {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(16, 185, 129, 0.05);
    border-radius: var(--radius);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.test-area h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.test-form {
    display: flex;
    gap: 10px;
}

.test-form input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.test-form input:focus {
    border-color: var(--primary-color);
}

.test-form button {
    background: var(--primary-gradient);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    white-space: nowrap;
}

.test-form button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.test-form button:active {
    transform: translateY(0);
}

.test-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .test-form {
        flex-direction: column;
    }
}