/* STDS Enrollment Pro Dashboard — Premium Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

.stds-app, .stds-login-wrap {
    --stds-primary: #6366f1;
    --stds-primary-dark: #4338ca;
    --stds-primary-light: #818cf8;
    --stds-purple: #8b5cf6;
    --stds-green: #10b981;
    --stds-red: #ef4444;
    --stds-amber: #f59e0b;
    --stds-border: #e7e9f4;
    --stds-muted: #6b7280;
    --stds-text: #1e2233;
    --stds-grad: linear-gradient(120deg, #6366f1, #8b5cf6);
    --stds-sidebar-grad: linear-gradient(195deg, #1e1b4b 0%, #312e81 55%, #4338ca 100%);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--stds-text);
}
.stds-app h1, .stds-app h2, .stds-app h3, .stds-login-card h2 { font-family: 'Poppins', sans-serif; }

/* ---------- Login ---------- */
.stds-login-wrap {
    display: flex; justify-content: center; align-items: center;
    min-height: 70vh; padding: 40px 16px;
    background: radial-gradient(circle at top left, rgba(99,102,241,0.08), transparent 60%);
}
.stds-login-card {
    width: 100%; max-width: 420px; background: #fff; border-radius: 20px;
    padding: 36px 32px; box-shadow: 0 20px 50px rgba(49,46,129,0.14); border: 1px solid var(--stds-border);
    position: relative; overflow: hidden;
}
.stds-login-card::before {
    content: ''; position: absolute; top: -60px; right: -60px; width: 160px; height: 160px;
    border-radius: 50%; background: radial-gradient(circle, rgba(99,102,241,0.14), transparent 70%);
}
.stds-login-card h2 { font-size: 23px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.3px; }
.stds-sub { color: var(--stds-muted); font-size: 13.5px; margin-bottom: 22px; }
.stds-error {
    background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; padding: 11px 14px;
    border-radius: 10px; font-size: 13px; font-weight: 600; margin-bottom: 14px;
}
.stds-success {
    background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; padding: 12px 14px;
    border-radius: 10px; font-size: 13px; font-weight: 600; margin-top: 14px;
}

/* ---------- Buttons & Fields ---------- */
.stds-btn-primary {
    width: 100%; border: none; padding: 14px; border-radius: 10px; cursor: pointer;
    font-weight: 700; font-size: 14px; color: #fff; text-align: center; text-decoration: none;
    display: inline-block; background: var(--stds-grad);
    box-shadow: 0 10px 22px rgba(99,102,241,0.32); margin-top: 6px; transition: transform .15s ease, box-shadow .15s ease;
}
.stds-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(99,102,241,0.4); }
.stds-btn-soft {
    background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.25); color: var(--stds-primary-dark);
    padding: 9px 16px; border-radius: 10px; font-weight: 700; font-size: 12.5px; cursor: pointer;
    text-decoration: none; display: inline-block; margin-left: 6px; transition: background .15s ease;
}
.stds-btn-soft:hover { background: rgba(99,102,241,0.18); }
.stds-btn-soft.red { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.25); color: var(--stds-red); }
.stds-btn-soft.green { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.25); color: #047857; }
.stds-btn-tiny { padding: 5px 10px; border-radius: 7px; font-size: 11px; font-weight: 700; cursor: pointer; border: 1px solid; margin: 2px 3px 2px 0; display: inline-block; text-decoration: none; }
.stds-btn-tiny.danger { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.3); color: #b91c1c; }
.stds-btn-tiny.warn { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.3); color: #92400e; }

.stds-field { margin-bottom: 14px; }
.stds-field label { display: block; font-size: 11.5px; font-weight: 700; margin-bottom: 6px; color: var(--stds-muted); text-transform: uppercase; letter-spacing: .5px; }
.stds-field input, .stds-field select {
    width: 100%; border: 1.5px solid var(--stds-border); background: #f9fafc; padding: 11px 12px;
    border-radius: 10px; font-size: 14px; outline: none; transition: border-color .15s ease, background .15s ease;
}
.stds-field input:focus, .stds-field select:focus { border-color: var(--stds-primary); background: #fff; box-shadow: 0 0 0 3px rgba(99,102,241,0.12); }
.stds-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.stds-checklist { background: #fdf7ea; border: 1.5px dashed #f2d9a3; border-radius: 10px; padding: 12px; margin-bottom: 14px; }
.stds-checklist label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }

/* ---------- App shell ---------- */
.stds-app { max-width: 1150px; margin: 0 auto; padding: 10px 0 60px; }
.stds-topbar {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; flex-wrap: wrap; gap: 10px;
    background: var(--stds-sidebar-grad); border-radius: 18px; padding: 22px 26px; color: #fff;
    box-shadow: 0 14px 30px rgba(49,46,129,0.22);
}
.stds-topbar h1 { font-size: 21px; font-weight: 800; margin: 0; color: #fff; }
.stds-topbar .stds-sub { color: rgba(255,255,255,0.75); margin-bottom: 0; }
.stds-topbar .stds-btn-soft.red { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); color: #fff; }

.stds-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.stds-tab {
    background: #eef0fb; border: none; padding: 11px 20px; border-radius: 30px; cursor: pointer;
    font-weight: 700; font-size: 13px; color: var(--stds-muted); transition: all .15s ease;
}
.stds-tab:hover { background: #e2e5fa; }
.stds-tab.active { background: var(--stds-grad); color: #fff; box-shadow: 0 8px 18px rgba(99,102,241,0.3); }
.stds-tab-panel { display: none; }
.stds-tab-panel.active { display: block; animation: stdsFadeIn .25s ease; }
@keyframes stdsFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.stds-panel {
    background: #fff; border: 1px solid var(--stds-border); border-radius: 16px; padding: 24px;
    box-shadow: 0 10px 26px rgba(49,46,129,0.07); margin-bottom: 20px;
}
.stds-panel h3 { font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.stds-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }

.stds-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .stds-grid-2, .stds-row2 { grid-template-columns: 1fr; } .stds-topbar { flex-direction: column; align-items: flex-start; } }

.stds-analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stds-analytics-grid div { background: #f8f9fd; border-radius: 12px; padding: 14px; border: 1px solid var(--stds-border); }
.stds-analytics-grid span { display: block; font-size: 11px; color: var(--stds-muted); font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.stds-analytics-grid b { font-size: 18px; font-family: 'Poppins', sans-serif; }

.stds-table-wrap { overflow-x: auto; }
.stds-app table { width: 100%; border-collapse: collapse; font-size: 13px; }
.stds-app th { text-align: left; background: #f8f9fd; padding: 11px 10px; font-weight: 700; color: var(--stds-muted); text-transform: uppercase; font-size: 11px; }
.stds-app td { padding: 11px 10px; border-bottom: 1px solid var(--stds-border); }
.stds-app tr:hover td { background: #fafbff; }

.stds-scanner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.stds-signal-card { background: #f8f9fd; border: 1px solid var(--stds-border); border-radius: 12px; padding: 14px; transition: transform .15s ease; position: relative; }
.stds-signal-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(49,46,129,0.1); }
.stds-signal-card b { font-size: 15px; color: var(--stds-amber); font-family: 'Poppins', sans-serif; }
.stds-signal-remove-btn {
    position: absolute; top: 8px; right: 8px; background: rgba(239,68,68,0.12); color: #ef4444; border: none;
    width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-weight: 800; cursor: pointer; line-height: 1;
}
.stds-signal-remove-btn:hover { background: #ef4444; color: #fff; }
.stds-no-match { grid-column: 1 / -1; color: var(--stds-muted); font-size: 13.5px; padding: 14px; text-align: center; background: #f8f9fd; border-radius: 10px; }

/* ---------- Scanner Filter Toggle Buttons ---------- */
.stds-filter-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 18px; }
.stds-filter-group { text-align: center; }
.stds-filter-toggle-row { display: flex !important; border: 1.5px solid var(--stds-border); border-radius: 10px; overflow: hidden; }
.stds-app button.stds-toggle-btn {
    flex: 1; background: #ffffff !important; border: none !important; padding: 10px 12px; font-size: 12.5px; font-weight: 700 !important;
    color: #4b5563 !important; cursor: pointer; border-right: 1px solid var(--stds-border) !important; white-space: nowrap;
    box-shadow: none !important; text-shadow: none !important; margin: 0 !important;
}
.stds-app button.stds-toggle-btn:last-child { border-right: none !important; }
.stds-app button.stds-toggle-btn.active {
    background: linear-gradient(120deg, var(--stds-primary), var(--stds-purple)) !important;
    color: #ffffff !important;
}
.stds-filter-label { display: block; font-size: 11px; color: var(--stds-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: .4px; font-weight: 700; }
.stds-timeframe-row { flex-wrap: wrap; border: none !important; gap: 8px; }
.stds-app button.stds-toggle-btn.tf {
    flex: none; border: 1.5px solid var(--stds-border) !important; border-radius: 8px;
}
.stds-app button.stds-toggle-btn.tf.active { border-color: var(--stds-primary) !important; }
.stds-scanner-prompt { grid-column: 1 / -1; color: var(--stds-muted); font-size: 13.5px; padding: 18px; text-align: center; background: #f8f9fd; border-radius: 10px; border: 1.5px dashed var(--stds-border); }

.stds-box { max-width: 500px; margin: 40px auto; text-align: center; }
.stds-hidden { display: none; }
