/* ============================================================ */
/* FILE: /assets/css/style.css                                  */
/* ============================================================ */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #0a0a0b; color: #f5f5f7; font-size: 14px; }
a { color: #00d4ff; text-decoration: none; }
a:hover { color: #00b8e0; text-decoration: underline; }

/* === AUTH PAGES === */
body.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #0a0a0b; }
.auth-card { background: #151517; border: 1px solid #2a2a2e; border-radius: 12px; padding: 40px; width: 400px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo .logo-icon { font-size: 48px; }
.auth-logo h1 { font-size: 22px; color: #f5f5f7; margin-top: 8px; }
.auth-logo p { color: #6e6e73; font-size: 13px; }
.auth-form .form-group { margin-bottom: 16px; }
.auth-footer { text-align: center; margin-top: 18px; color: #6e6e73; font-size: 13px; }

/* === FORMS === */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: #6e6e73; font-size: 13px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 9px 12px; background: #1a1a1d; border: 1px solid #2a2a2e; border-radius: 6px;
    color: #f5f5f7; font-size: 14px; transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: #00d4ff; box-shadow: 0 0 0 3px rgba(0,212,255,.15);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #6e6e73; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
.select-inline { padding: 4px 8px; border-radius: 4px; border: 1px solid #2a2a2e; background: #1a1a1d; color: #f5f5f7; font-size: 13px; }
.form-actions { margin-top: 20px; display: flex; gap: 10px; }
.ws-form { padding: 4px 0; }

/* === BUTTONS === */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: 8px 16px; border-radius: 8px; border: 1px solid #2a2a2e; cursor: pointer; font-size: 14px; font-weight: 600; transition: all .2s; background: #151517; color: #f5f5f7; }
.btn:hover { border-color: #444; text-decoration: none; }
.btn-primary  { background: #00d4ff; color: #000; border: none; }
.btn-primary:hover  { filter: brightness(1.1); background: #00d4ff; }
.btn-secondary { background: #1a1a1d; color: #f5f5f7; border: 1px solid #2a2a2e; }
.btn-secondary:hover { border-color: #444; }
.btn-danger   { background: rgba(248,113,113,.15); color: #f87171; border: 1px solid #f87171; }
.btn-danger:hover   { background: #f87171; color: #fff; }
.btn-success  { background: rgba(52,211,153,.15); color: #34d399; border: 1px solid #34d399; }
.btn-success:hover  { background: #34d399; color: #000; }
.btn-warning  { background: rgba(251,191,36,.15); color: #fbbf24; border: 1px solid #fbbf24; }
.btn-warning:hover  { background: #fbbf24; color: #000; }
.btn-block { width: 100%; text-align: center; justify-content: center; margin-top: 6px; }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-xs { padding: 3px 8px; font-size: 12px; }
.btn-logout { background: transparent; border: 1px solid rgba(255,255,255,.2); color: #f5f5f7; padding: 5px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.btn-logout:hover { background: rgba(255,255,255,.1); text-decoration: none; }

/* === TOP NAV === */
.top-nav { background: #111113; color: #f5f5f7; display: flex; align-items: center; padding: 0 24px; height: 56px; gap: 32px; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 0 #2a2a2e; }
.nav-brand { font-size: 17px; font-weight: 700; color: #f5f5f7; white-space: nowrap; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a { color: #6e6e73; padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.nav-links a:hover { background: rgba(255,255,255,.07); color: #f5f5f7; text-decoration: none; }
.nav-links a.active { background: rgba(0,212,255,.15); color: #00d4ff; text-decoration: none; }
.nav-user { display: flex; align-items: center; gap: 12px; }
.user-chip { color: #f5f5f7; font-size: 13px; }
.user-chip small { color: #6e6e73; }

/* === MAIN CONTENT === */
.main-content { max-width: 1200px; margin: 0 auto; padding: 28px 24px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.page-header h2 { font-size: 22px; color: #f5f5f7; }
.welcome-msg { color: #6e6e73; font-size: 14px; }

/* === STAT CARDS === */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: #151517; border: 1px solid #2a2a2e; border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 16px; border-left: 4px solid #00d4ff; }
.stat-icon { font-size: 32px; }
.stat-value { display: block; font-size: 28px; font-weight: 700; color: #f5f5f7; line-height: 1; }
.stat-label { display: block; color: #6e6e73; font-size: 12px; margin-top: 4px; }

/* === QUICK NAV === */
.quick-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 28px; }
.quick-card { background: #151517; border: 1px solid #2a2a2e; border-radius: 12px; padding: 20px 16px; text-align: center; cursor: pointer; transition: all .2s; font-weight: 600; font-size: 14px; color: #f5f5f7; display: block; }
.quick-card span { display: block; font-size: 30px; margin-bottom: 8px; }
.quick-card small { display: block; color: #6e6e73; font-size: 11px; margin-top: 4px; font-weight: 400; }
.quick-card:hover:not(.disabled) { border-color: #444; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.4); text-decoration: none; }
.quick-card.disabled { opacity: .4; cursor: default; pointer-events: none; }

/* === SECTION TITLE === */
.section-title { font-size: 15px; font-weight: 700; color: #6e6e73; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1px solid #2a2a2e; }

/* === TABLES === */
.table-wrap { background: #151517; border: 1px solid #2a2a2e; border-radius: 12px; overflow: auto; margin-bottom: 28px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead { background: #1a1a1d; }
.data-table th { padding: 12px 14px; text-align: left; font-size: 11px; font-weight: 700; color: #6e6e73; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid #2a2a2e; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid #2a2a2e; vertical-align: middle; color: #f5f5f7; font-size: 14px; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,.03); }
.row-inactive td { opacity: .45; }
.url-cell { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #6e6e73; font-family: monospace; }
.actions-cell { white-space: nowrap; }
.actions-cell .btn { margin-right: 4px; }

/* === CARD === */
.card { background: #151517; border: 1px solid #2a2a2e; border-radius: 12px; padding: 24px; margin-bottom: 24px; }
.card h3 { font-size: 16px; margin-bottom: 18px; color: #f5f5f7; }

/* === BADGES === */
.badge { background: #1a1a1d; color: #6e6e73; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.badge-primary  { background: rgba(0,212,255,.15);  color: #00d4ff; }
.badge-type     { background: rgba(52,211,153,.15);  color: #34d399; }
.badge-danger   { background: rgba(248,113,113,.15); color: #f87171; }
.badge-warning  { background: rgba(251,191,36,.15);  color: #fbbf24; }
.badge-purple   { background: rgba(192,132,252,.2);  color: #c084fc; }

/* === STATUS DOT === */
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.status-dot.active   { background: #34d399; }
.status-dot.inactive { background: #f87171; }

/* === ALERTS === */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; border-width: 1px; border-style: solid; }
.alert-danger  { background: rgba(248,113,113,.1);  color: #f87171; border-color: #f87171; }
.alert-success { background: rgba(52,211,153,.1);   color: #34d399; border-color: #34d399; }
.alert-warning { background: rgba(251,191,36,.1);   color: #fbbf24; border-color: #fbbf24; }
.alert-info    { background: rgba(0,212,255,.1);    color: #00d4ff; border-color: #00d4ff; }

/* === ADMIN NAV === */
.admin-nav { display: flex; gap: 10px; margin-bottom: 20px; }

/* === TEXT === */
.text-muted { color: #6e6e73; padding: 16px 0; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #1a1a1d; border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #3a3a3e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }