/* assets/style.css */

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #05070a;
    color: #f0f0f0;
    min-height: 100vh;
}

/* Tema dark */
.dark-bg {
    background: radial-gradient(circle at top, #151820 0, #05070a 60%);
    color: #f5f5f5;
}

/* Centralizar login */
.center-screen {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cards */
.card {
    background: rgba(15, 18, 28, 0.96);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

/* Login card */
.login-card {
    width: 100%;
    max-width: 380px;
}

.title {
    font-size: 1.6rem;
    margin-bottom: 6px;
    text-align: center;
}

.subtitle {
    font-size: 0.9rem;
    color: #9ca3af;
    text-align: center;
    margin-bottom: 18px;
}

/* Formulário */
.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-size: 0.85rem;
    color: #d1d5db;
    margin-bottom: 2px;
}

input,
select {
    background: #020617;
    border-radius: 10px;
    border: 1px solid #1f2937;
    padding: 8px 10px;
    color: #e5e7eb;
    font-size: 0.95rem;
    outline: none;
    transition: border 0.15s, box-shadow 0.15s, background 0.15s;
}

input:focus,
select:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35);
    background: #020617;
}

input::placeholder {
    color: #6b7280;
}

/* Botões */
button,
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.btn-primary {
    background: linear-gradient(135deg, #06b6d4, #22c55e);
    color: #020617;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(34, 197, 94, 0.4);
}

.btn-secondary {
    background: #111827;
    color: #e5e7eb;
    border: 1px solid #374151;
}

.btn-secondary:hover {
    background: #1f2937;
}

button:active,
.btn-primary:active,
.btn-secondary:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Pequeno */
.small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Topbar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid #1f2937;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.topbar-user {
    font-size: 0.85rem;
    color: #9ca3af;
}

.container {
    max-width: 1080px;
    margin: 20px auto;
    padding: 0 16px;
}

/* Grid filtros */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.field {
    display: flex;
    flex-direction: column;
}

.actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
}

/* Alerts / status */
.alert {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.status-message {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Resultados */
.results {
    margin-top: 10px;
    max-height: 500px;
    overflow: auto;
    border-radius: 12px;
    border: 1px solid #1f2937;
    background: #020617;
}

.result-row {
    padding: 8px 10px;
    border-bottom: 1px solid #0f172a;
    font-family: "JetBrains Mono", "Fira Code", monospace;
    font-size: 0.8rem;
    display: grid;
    grid-template-columns: 155px 1fr;
    gap: 10px;
}

.result-row:nth-child(even) {
    background: rgba(15, 23, 42, 0.85);
}

.result-timestamp {
    color: #38bdf8;
}

.result-message {
    color: #e5e7eb;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Scrollbar custom leve */
.results::-webkit-scrollbar {
    width: 8px;
}
.results::-webkit-scrollbar-track {
    background: #020617;
}
.results::-webkit-scrollbar-thumb {
    background: #1f2937;
    border-radius: 999px;
}
.results::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

.muted {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 2px;
}
