* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }
body { background: #F7F8FA; color: #1B2430; font-size: 14px; }
.mono { font-family: 'JetBrains Mono', monospace; }
button { cursor: pointer; font-family: inherit; }
a { text-decoration: none; color: inherit; }

.app { display: flex; min-height: 100vh; }

.sidebar { width: 240px; background: #12181F; color: #E5E7EB; padding: 24px 18px; display: flex; flex-direction: column; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; background: #1B242F; display: flex; align-items: center; justify-content: center; color: #2DD4BF; font-size: 16px; }
.brand-name { font-size: 14.5px; font-weight: 700; letter-spacing: 0.2px; }
.brand-sub { font-size: 11px; color: #7B8794; }

.nav { margin-top: 28px; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; background: transparent; border: none; color: #B8C1CC; font-size: 13.5px; margin-bottom: 2px; text-align: left; }
.nav-item.active { background: #1B242F; color: #fff; }
.nav-count { margin-left: auto; font-size: 11px; background: #242E3A; color: #9CA6B2; padding: 1px 7px; border-radius: 999px; }

.add-btn { margin-top: 24px; width: 100%; padding: 9px 10px; border-radius: 8px; background: #2DD4BF; border: none; color: #04342C; font-weight: 700; font-size: 13px; }
.side-actions { margin-top: 8px; }
.ghost-btn-full { display: block; width: 100%; padding: 8px 10px; border-radius: 8px; background: transparent; border: 1px solid #242E3A; color: #B8C1CC; font-size: 12.5px; margin-top: 8px; text-align: center; }
.sidebar-footer { margin-top: auto; font-size: 11px; color: #5B6572; line-height: 1.5; padding-top: 20px; }
.sidebar-footer code { color: #7B8794; }

.main { flex: 1; overflow-x: auto; padding: 32px 40px; }
.page-title { font-size: 22px; font-weight: 700; }
.page-sub { font-size: 13px; color: #6B7280; margin-top: 4px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 24px; }
.stat-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #E2E6EA; border-radius: 12px; padding: 14px 16px; cursor: pointer; }
.stat-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }
.stat-value { font-size: 20px; font-weight: 700; line-height: 1.1; }
.stat-label { font-size: 12px; color: #6B7280; margin-top: 2px; }

.panel-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-top: 20px; }
.panel { background: #fff; border: 1px solid #E2E6EA; border-radius: 12px; padding: 18px; }
.panel-title { font-size: 13px; font-weight: 700; }
.bar-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; }
.bar-label { width: 96px; font-size: 12.5px; color: #4B5563; flex-shrink: 0; }
.bar-track { flex: 1; height: 8px; background: #EEF0F3; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: #2DD4BF; border-radius: 4px; }
.bar-value { width: 24px; text-align: right; font-size: 12.5px; font-weight: 600; }

.status-row { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 3px 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.expire-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid #F1F2F4; font-size: 13px; }

.toolbar { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.search-box { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #E2E6EA; border-radius: 8px; padding: 0 12px; height: 36px; min-width: 260px; flex: 1; }
.search-box input { border: none; outline: none; font-size: 13px; flex: 1; background: transparent; }
select { height: 36px; border-radius: 8px; border: 1px solid #E2E6EA; background: #fff; font-size: 13px; padding: 0 10px; color: #1B2430; }

.table-wrap { margin-top: 16px; background: #fff; border: 1px solid #E2E6EA; border-radius: 12px; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.4px; color: #8A93A0; padding: 10px 14px; border-bottom: 1px solid #E2E6EA; white-space: nowrap; }
td { padding: 10px 14px; font-size: 13px; border-bottom: 1px solid #F1F2F4; white-space: nowrap; }
tr:hover td { background: #F4F6F8; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.icon-btn { border: none; background: transparent; color: #8A93A0; padding: 6px; border-radius: 6px; margin-left: 2px; font-size: 13px; }
.icon-btn:hover { background: #EEF0F3; }
.empty-row td { text-align: center; color: #8A93A0; padding: 32px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.page-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid #E2E6EA; background: #fff; }
.page-btn:disabled { opacity: 0.4; cursor: default; }

.overlay { position: fixed; inset: 0; background: rgba(15,20,27,0.5); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal { background: #fff; border-radius: 14px; width: 640px; max-width: 100%; max-height: 88vh; display: flex; flex-direction: column; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #EEF0F3; }
.modal-title { font-size: 15.5px; font-weight: 700; }
.modal-body { padding: 18px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; overflow-y: auto; }
.field-full { grid-column: 1 / -1; }
.field-label { font-size: 12px; color: #6B7280; margin-bottom: 5px; font-weight: 600; display: block; }
.field input, .field select, .field textarea { width: 100%; height: 36px; border-radius: 8px; border: 1px solid #E2E6EA; padding: 0 10px; font-size: 13px; color: #1B2430; background: #FCFCFD; }
.field textarea { height: 60px; padding: 8px 10px; resize: vertical; }
.form-error { margin: 0 20px 8px; font-size: 12.5px; color: #A32D2D; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid #EEF0F3; }
.ghost-btn { padding: 8px 16px; border-radius: 8px; border: 1px solid #E2E6EA; background: #fff; font-size: 13px; font-weight: 600; }
.primary-btn { padding: 8px 16px; border-radius: 8px; border: none; background: #12181F; color: #fff; font-size: 13px; font-weight: 700; }
.danger-btn { padding: 8px 16px; border-radius: 8px; border: none; background: #A32D2D; color: #fff; font-size: 13px; font-weight: 700; }
.confirm-box { background: #fff; border-radius: 14px; width: 400px; max-width: 100%; padding: 20px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #12181F; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 13px; z-index: 60; }
.toast.error { background: #A32D2D; }

@media (max-width: 720px) {
  .app { flex-direction: column; }
  .sidebar { width: 100%; }
  .main { padding: 20px; }
  .panel-row { grid-template-columns: 1fr; }
  .modal-body { grid-template-columns: 1fr; }
}

/* ---------- login ---------- */
.login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #12181F; }
.login-card { width: 340px; max-width: 90vw; background: #fff; border-radius: 16px; padding: 32px 28px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); text-align: center; }
.login-mark { margin: 0 auto; color: #2DD4BF; font-size: 20px; }
.login-title { font-size: 19px; font-weight: 800; margin-top: 14px; }
.login-sub { font-size: 12.5px; color: #6B7280; margin-top: 4px; }
.login-card .field { text-align: left; }
.login-hint { font-size: 11.5px; color: #8A93A0; margin-top: 16px; line-height: 1.5; }
.login-hint code { background: #F1F2F4; padding: 1px 5px; border-radius: 4px; }

/* ---------- topbar user badge ---------- */
.user-badge { font-size: 12px; color: #B8C1CC; line-height: 1.5; }
.user-badge .role-pill { display: inline-block; margin-top: 3px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; padding: 2px 8px; border-radius: 999px; }
.role-admin { background: #E1F5EE; color: #085041; }
.role-semi-admin { background: #E6F1FB; color: #0C447C; }
.role-user { background: #F1EFE8; color: #444441; }

/* ---------- tickets ---------- */
.ticket-priority { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.priority-Low { background: #EEF0F3; color: #4B5563; }
.priority-Medium { background: #E6F1FB; color: #0C447C; }
.priority-High { background: #FAEEDA; color: #633806; }
.priority-Critical { background: #FCEBEB; color: #791F1F; }

.ticket-detail { padding: 4px 0; }
.ticket-detail .ticket-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; font-size: 12.5px; color: #4B5563; margin: 14px 0; }
.ticket-detail .ticket-meta b { color: #1B2430; font-weight: 600; }
.ticket-desc { background: #F7F8FA; border-radius: 10px; padding: 12px 14px; font-size: 13px; color: #1B2430; white-space: pre-wrap; margin-bottom: 14px; }
.comment-list { display: flex; flex-direction: column; gap: 10px; max-height: 220px; overflow-y: auto; margin-bottom: 12px; }
.comment-item { background: #F7F8FA; border-radius: 10px; padding: 9px 12px; }
.comment-item .comment-head { display: flex; justify-content: space-between; font-size: 11.5px; color: #8A93A0; margin-bottom: 3px; }
.comment-item .comment-text { font-size: 13px; color: #1B2430; white-space: pre-wrap; }
.comment-box { display: flex; gap: 8px; }
.comment-box textarea { flex: 1; height: 44px; border-radius: 8px; border: 1px solid #E2E6EA; padding: 8px 10px; font-size: 13px; resize: vertical; }

/* ---------- users panel ---------- */
.role-select-inline { height: 30px; border-radius: 6px; border: 1px solid #E2E6EA; font-size: 12px; padding: 0 6px; }

@media (max-width: 720px) {
  .ticket-detail .ticket-meta { grid-template-columns: 1fr; }
}

/* ---------- modern dashboard refresh ---------- */
body { background: #f4f7fb; color: #17212b; }
.sidebar { background: linear-gradient(180deg,#0e1722 0%,#111d2a 100%); width: 250px; padding: 22px 16px; box-shadow: 8px 0 30px rgba(16,31,48,.08); }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg,#19c3a8,#4f8cff); color: #fff; box-shadow: 0 8px 22px rgba(25,195,168,.2); }
.brand-name { font-size: 16px; }
.brand-sub { color:#8da0b4; }
.nav { margin-top: 30px; }
.nav-item { padding: 11px 12px; border-radius: 10px; color:#9eafc1; transition:.18s ease; }
.nav-item:hover { background:#172636; color:#fff; transform:translateX(2px); }
.nav-item.active { background:linear-gradient(90deg,#1b3145,#193043); color:#fff; box-shadow: inset 3px 0 0 #27d5bd; }
.nav-icon { width:22px; text-align:center; font-size:15px; color:#70dccc; }
.add-btn { margin-top: 26px; padding: 11px; border-radius: 10px; background: linear-gradient(135deg,#27d5bd,#2ea8ff); color:#062a27; box-shadow:0 10px 24px rgba(39,213,189,.18); }
.ghost-btn-full { border-color:#26394c; color:#aebdcb; }
.main { padding: 34px 42px; }
.hero-header { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; margin-bottom:22px; }
.eyebrow { font-size:10px; font-weight:800; letter-spacing:1.5px; color:#4e8cff; margin-bottom:7px; }
.hero-actions { display:flex; gap:8px; flex-wrap:wrap; }
.page-title { font-size:28px; letter-spacing:-.7px; }
.page-sub { color:#718096; line-height:1.5; }
.stat-grid { gap:14px; margin-top:0; }
.stat-card { position:relative; text-align:left; min-height:104px; padding:18px; border:1px solid #e2e9f1; border-radius:16px; box-shadow:0 7px 24px rgba(22,40,58,.045); transition:.18s ease; overflow:hidden; }
.stat-card:hover { transform:translateY(-2px); border-color:#cdd9e6; box-shadow:0 12px 30px rgba(22,40,58,.09); }
.stat-card::after { content:""; position:absolute; right:-20px; top:-24px; width:82px; height:82px; border-radius:50%; background:rgba(39,213,189,.08); }
.stat-green::after { background:rgba(45,190,133,.10); }.stat-amber::after { background:rgba(245,178,62,.12); }.stat-blue::after { background:rgba(78,140,255,.11); }.stat-red::after { background:rgba(239,91,91,.10); }
.stat-icon { width:38px; height:38px; border-radius:11px; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:14px; background:#e8f8f5; color:#087b6a; flex-shrink:0; }
.stat-green .stat-icon{background:#e6f8ef;color:#17804e}.stat-amber .stat-icon{background:#fff4dd;color:#a56600}.stat-blue .stat-icon{background:#eaf1ff;color:#3d73d9}.stat-red .stat-icon{background:#ffeded;color:#c13b3b}
.stat-value { display:block; font-size:25px; margin-bottom:3px; }.stat-label { display:block; font-size:12px; color:#728095; }.card-arrow { position:absolute; right:14px; bottom:13px; color:#9aabba; font-size:16px; }
.panel-row { gap:16px; margin-top:18px; }.panel { border:1px solid #e2e9f1; border-radius:16px; box-shadow:0 7px 24px rgba(22,40,58,.045); padding:20px; }
.panel-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:14px; }.panel-title { font-size:14px; }.panel-hint { font-size:11.5px; color:#8a98a9; margin-top:4px; }.panel-kpi { font-size:11px; font-weight:700; color:#5f7185; background:#f0f4f8; border-radius:999px; padding:5px 9px; white-space:nowrap; }
.category-list,.status-list { display:flex; flex-direction:column; gap:4px; }.bar-row { border:0; background:transparent; width:100%; text-align:left; border-radius:9px; padding:8px 7px; }.bar-row:hover,.status-row:hover { background:#f4f8fc; }.bar-label { width:105px; }.bar-track { height:9px; background:#edf2f7; }.bar-fill { background:linear-gradient(90deg,#25c9b1,#4f8cff); }.bar-value { color:#526276; }
.status-row { width:100%; border:0; background:transparent; text-align:left; border-radius:9px; padding:8px 7px; color:#405064; }.status-count{font-weight:700;color:#233449}.row-arrow{color:#9aaabd; margin-left:7px;}.recent-panel{margin-top:18px}.recent-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.recent-asset{display:flex;align-items:center;gap:11px;border:1px solid #e8eef4;background:#fbfcfe;border-radius:11px;padding:11px;text-align:left;transition:.15s}.recent-asset:hover{border-color:#cfdbe8;background:#fff;transform:translateY(-1px)}.recent-icon{width:34px;height:34px;border-radius:9px;background:#eaf7f5;color:#168a78;display:flex;align-items:center;justify-content:center}.recent-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.recent-copy strong{font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-copy small{font-size:11px;color:#8795a5}.text-btn{border:0;background:none;color:#3978dc;font-weight:700;font-size:12px}.empty-state{padding:25px;text-align:center;color:#8492a2;background:#f8fafc;border-radius:10px;font-size:13px}
.toolbar { background:#fff; border:1px solid #e2e9f1; border-radius:14px; padding:10px; box-shadow:0 5px 18px rgba(22,40,58,.035); }.search-box{border:1px solid #dce5ee;box-shadow:none}.table-wrap{border:1px solid #e2e9f1;border-radius:14px;box-shadow:0 7px 24px rgba(22,40,58,.04)} th{background:#f8fafc;color:#7b8999} td{padding:12px 14px} tr:hover td{background:#f6f9fc}.asset-row{cursor:pointer}.asset-row:active td{background:#eef7ff}.primary-btn{background:linear-gradient(135deg,#172331,#2b4660);border-radius:9px;padding:9px 16px}.ghost-btn{border-radius:9px}.small-btn{padding:7px 11px;font-size:12px}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.settings-card{background:#fff;border:1px solid #e2e9f1;border-radius:16px;padding:18px;box-shadow:0 7px 24px rgba(22,40,58,.045)}.settings-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;border-bottom:1px solid #edf1f5;padding-bottom:13px;margin-bottom:10px}.settings-card h3{font-size:14px}.settings-card p{font-size:11.5px;color:#8795a5;margin-top:4px;line-height:1.45}.config-list{display:flex;flex-direction:column}.config-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 4px;border-bottom:1px solid #f0f3f6;font-size:13px}.config-item:last-child{border-bottom:0}.danger-icon{color:#a0adbb}.danger-icon:hover{color:#c53e3e;background:#fff0f0}
.login-screen{background:radial-gradient(circle at 15% 20%,#17334a 0,#0e1722 42%,#091019 100%)}.login-card{border:1px solid rgba(255,255,255,.15);box-shadow:0 25px 80px rgba(0,0,0,.35)}
@media(max-width:900px){.main{padding:26px 20px}.recent-grid,.settings-grid{grid-template-columns:1fr}.hero-header{align-items:flex-start;flex-direction:column}}

/* ---------- GetFive company branding ---------- */
.company-logo { display: block; object-fit: contain; }
.sidebar-logo { width: 132px; height: 42px; object-position: left center; margin: 0 0 10px 0; }
.login-logo { width: 230px; height: 76px; margin: 0 auto 2px; }
.login-card .login-title { color: #243b80; }
@media (max-width: 700px) {
  .sidebar-logo { width: 120px; height: 38px; }
  .login-logo { width: 210px; height: 70px; }
}
