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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f0f2f5;
    color: #1a1a2e;
    line-height: 1.6;
}

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

.navbar {
    background: #1a1a2e;
    padding: 14px 0;
    margin-bottom: 30px;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.navbar .brand { color: #fff; text-decoration: none; font-size: 1.3rem; font-weight: 700; }
.nav-links a { color: #ccc; text-decoration: none; margin-left: 24px; }
.nav-links a:hover { color: #fff; }

h1 { margin-bottom: 24px; color: #1a1a2e; }
h2 { margin-bottom: 16px; color: #16213e; }

.card {
    background: #fff;
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; }
.form-group select,
.form-group input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
}

button {
    background: #4472c4;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
}
button:hover { background: #3461b3; }
button:disabled { background: #94a3b8; cursor: not-allowed; }

.status {
    margin-top: 18px;
    padding: 14px;
    border-radius: 6px;
    font-weight: 500;
}
.status.success { background: #d1fae5; color: #065f46; }
.status.error { background: #fee2e2; color: #991b1b; }
.status.loading { background: #dbeafe; color: #1e40af; }
.status.warning { background: #fef3c7; color: #92400e; }
.status.info { background: #e0f2fe; color: #0c4a6e; font-size: 1.05rem; }

.warning-list { margin: 6px 0 0 20px; padding: 0; }
.warning-list li { margin-bottom: 4px; font-size: 0.9rem; }

.hidden { display: none; }

.downloads { margin-top: 18px; }
.downloads ul { list-style: none; padding: 0; }
.downloads li { margin: 8px 0; }
.downloads a {
    color: #4472c4;
    text-decoration: none;
    font-weight: 600;
}
.downloads a:hover { text-decoration: underline; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 20px; }

.info-table { width: 100%; border-collapse: collapse; }
.info-table td { padding: 8px 0; border-bottom: 1px solid #e5e7eb; }
.info-table td:first-child { font-weight: 600; width: 45%; color: #6b7280; }

/* Manual */
.manual-nav ul { list-style: none; columns: 2; gap: 16px; }
.manual-nav li { margin-bottom: 6px; }
.manual-nav a { color: #4472c4; text-decoration: none; font-weight: 500; }
.manual-nav a:hover { text-decoration: underline; }

.manual-section h2 { margin-bottom: 12px; }
.manual-section h3 { margin: 16px 0 8px; color: #1a1a2e; font-size: 1.05rem; }
.manual-section h4 { margin-bottom: 4px; color: #16213e; }
.manual-section p { margin-bottom: 10px; }
.manual-section ol,
.manual-section ul { margin: 0 0 12px 20px; }
.manual-section li { margin-bottom: 4px; }
.manual-section code { background: #e5e7eb; padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }

.manual-tip {
    background: #eff6ff;
    border-left: 4px solid #4472c4;
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
    margin: 12px 0;
}

.faq-item { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #e5e7eb; }
.faq-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

/* Login */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #1a1a2e;
}
.login-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 36px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    text-align: center;
}
.login-title { color: #1a1a2e; margin-bottom: 4px; font-size: 1.8rem; }
.login-subtitle { color: #6b7280; margin-bottom: 28px; font-size: 0.95rem; }
.login-card .form-group { text-align: left; }
.login-card input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}
.login-btn { width: 100%; margin-top: 8px; }
.login-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-weight: 500;
    font-size: 0.9rem;
}
.nav-logout {
    color: #f87171 !important;
    margin-left: 24px;
}
.nav-logout:hover { color: #fca5a5 !important; }

/* Pipefy card */
.btn-row { display: flex; gap: 10px; }
.btn-secondary { background: #059669; }
.btn-secondary:hover { background: #047857; }
.btn-secondary:disabled { background: #94a3b8; cursor: not-allowed; }
.cache-info { margin-top: 12px; color: #6b7280; font-size: 0.88rem; }

.text-muted { color: #6b7280; font-size: 0.9rem; margin-bottom: 14px; }
.btn-danger { background: #dc2626; }
.btn-danger:hover { background: #b91c1c; }
.btn-danger:disabled { background: #94a3b8; cursor: not-allowed; }
