* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f4f6f9;
    color: #1f2937;
}

/* ---------- Login page ---------- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-box {
    background: #fff;
    padding: 40px 36px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 360px;
}
.login-box h1 {
    margin: 0 0 4px;
    font-size: 24px;
    color: #0b63c5;
}
.login-box .subtitle {
    margin: 0 0 24px;
    color: #6b7280;
    font-size: 14px;
}
.login-box label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.login-box input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 18px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}
.login-box button {
    width: 100%;
    padding: 11px;
    background: #0b63c5;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.login-box button:hover { background: #094f9e; }

.alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}
.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ---------- Dashboard ---------- */
.brand { font-weight: 700; font-size: 18px; }

.container {
    max-width: 960px;
    margin: 24px auto;
    padding: 0 16px;
}
.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.card h2 {
    margin-top: 0;
    font-size: 17px;
    color: #111827;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.menu-group h3 {
    font-size: 14px;
    margin: 0 0 6px;
    color: #0b63c5;
}
.menu-group ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: #374151;
}

.inline-form {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.inline-form input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}
.inline-form button {
    padding: 9px 18px;
    background: #0b63c5;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.result-table th, .result-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
}
.result-table th {
    width: 160px;
    color: #6b7280;
    font-weight: 600;
}

.muted { color: #9ca3af; font-size: 13px; }

/* ---------- Nav bar ---------- */
.topbar {
    background: #0b63c5;
    color: #fff;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.main-nav { display: flex; gap: 18px; }
.main-nav a {
    color: #d6e8ff;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 2px;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: #fff; }
.main-nav a.active {
    color: #fff;
    border-bottom-color: #fff;
    font-weight: 600;
}
.user-info { font-size: 13px; }
.user-info a { color: #fff; text-decoration: underline; }

/* ---------- Lookup forms ---------- */
.lookup-form { margin-bottom: 20px; }
.form-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.form-field { flex: 1; min-width: 180px; position: relative; }
.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.form-field input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}
.form-field button {
    width: 100%;
    padding: 10px;
    background: #0b63c5;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}
.form-field button:hover { background: #094f9e; }

.autocomplete-wrap { position: relative; }
.suggest-box {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    z-index: 20;
    max-height: 220px;
    overflow-y: auto;
}
.suggest-item {
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
}
.suggest-item:hover { background: #eff6ff; color: #0b63c5; }

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.result-block h3 {
    font-size: 14px;
    color: #0b63c5;
    margin-bottom: 8px;
}

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.badge-free { background: #dcfce7; color: #166534; }
.badge-used { background: #fee2e2; color: #991b1b; }

/* ---------- Login tabs ---------- */
.login-box-wide { max-width: 420px; }
.tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}
.tab-btn {
     flex: 1;
    padding: 10px 4px;
    background: black;
    border: none;
    border-bottom: 1px solid transparent;
    font-size: 10px;
    font-weight: 100;
    color: #eaedf1;
    cursor: pointer;
    gap: 35px ;
    margin-right: 12px;
}
.tab-btn.active {
    color: #eceff3;
    border-bottom-color: #f1f2f4;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    font-family: ui-monospace, monospace;
    resize: vertical;
}
.tab-panel button {
    width: 100%;
    padding: 11px;
    background: #0b63c5;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.tab-panel button:hover { background: #094f9e; }

/* ---------- Export cookie page ---------- */
.export-box { position: relative; margin-bottom: 16px; }
.export-box textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: ui-monospace, monospace;
    font-size: 12px;
    resize: vertical;
    background: #f9fafb;
}
.btn-copy {
    margin-top: 8px;
    padding: 8px 18px;
    background: #0b63c5;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}
.btn-copy:hover { background: #094f9e; }
.copy-status {
    margin-left: 10px;
    color: #166534;
    font-size: 13px;
    font-weight: 600;
}
.alert-warn {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}
