/* PCCARE_LP3I/public/assets/css/main.css */
:root{
  --bg0:#0b1524;
  --bg1:#12253a;
  --card: rgba(255,255,255,.08);
  --card2: rgba(255,255,255,.14);
  --text:#eaf6ff;
  --muted: rgba(191,220,240,.78);
  --line: rgba(220,236,248,.14);
  --brand1:#67c7f1;
  --brand2:#4aaee7;
  --ok:#22c55e;
  --warn:#f59e0b;
  --bad:#ef4444;
  --shadow: 0 16px 60px rgba(5,18,33,.45);
  --radius: 18px;
  --radius2: 26px;
  --container: 1150px;
  --font: "Sora", "Manrope", sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(900px 500px at 15% -10%, rgba(103,199,241,.32), transparent 60%),
              radial-gradient(900px 520px at 90% -5%, rgba(74,174,231,.28), transparent 55%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
code{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size:.95em}
.muted{color:var(--muted)}
.mt-10{margin-top:10px}
.mt-12{margin-top:12px}
.mt-16{margin-top:16px}
.mt-20{margin-top:20px}
.gap-10{gap:10px}
.gap-12{gap:12px}
.gap-16{gap:16px}

.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.app-shell{min-height:100%; display:flex; flex-direction:column}
.main{flex:1; padding: 22px 0 40px}

.bg-blobs{position:fixed; inset:0; pointer-events:none; filter: blur(40px); opacity:.55}
.blob{position:absolute; border-radius:999px; mix-blend-mode:screen}
.blob-a{width:420px;height:420px; left:-120px; top:120px; background:rgba(103,199,241,.42)}
.blob-b{width:500px;height:500px; right:-160px; top:-120px; background:rgba(74,174,231,.42)}
.blob-c{width:420px;height:420px; left:40%; bottom:-220px; background:rgba(34,197,94,.20)}

.topbar{
  position:sticky; top:0; z-index:50;
  background: rgba(10,14,28,.65);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.topbar-inner{
  height: 70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{display:flex; align-items:center; gap:12px}
.brand-badge{
  width:36px;height:36px; border-radius:12px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  font-weight:800;
  box-shadow: 0 12px 24px rgba(79,160,210,.25);
}
.brand-logo{
  width:60px;
  height:60px;
  object-fit:contain;
  border-radius:12px;
  background: transparent;
  border:0;
  padding:0;
  box-shadow:none;
}
.brand-text{font-weight:800; letter-spacing:.3px}

.nav{display:flex; gap:10px; flex-wrap:wrap}
.nav-link{
  padding:10px 12px;
  border-radius: 12px;
  color: var(--muted);
  transition: .15s ease;
  border:1px solid transparent;
}
.nav-link:hover{
  color: var(--text);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.08);
}
.nav-link-pill{
  color: var(--text);
  background: rgba(103,199,241,.18);
  border-color: rgba(103,199,241,.32);
}
.nav-right{display:flex; align-items:center; gap:10px}
.inline-form{display:inline}
.nav-toggle{
  display:none;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding:8px 12px;
  border-radius: 12px;
  font-weight:700;
  cursor:pointer;
}
.user-chip{
  display:flex; align-items:center; gap:10px;
  padding:8px 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  text-decoration: none;
}
.user-dot{
  width:10px;height:10px;border-radius:99px;background: var(--ok);
  box-shadow: 0 0 0 6px rgba(34,197,94,.12);
}
.avatar{
  width:36px;
  height:36px;
  border-radius:50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  position: relative;
  overflow: hidden;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.avatar::before{
  content:"";
  width:12px;
  height:12px;
  border-radius:50%;
  background: rgba(255,255,255,.55);
  position: absolute;
  top:8px;
}
.avatar::after{
  content:"";
  width:20px;
  height:12px;
  border-radius: 12px 12px 6px 6px;
  background: rgba(255,255,255,.4);
  position:absolute;
  bottom:6px;
}
.avatar img{
  width:100%;
  height:100%;
  object-fit: cover;
  position:relative;
  z-index:1;
}
/* kalau avatar punya gambar, matikan silhouette bawaan */
.avatar.has-img::before,
.avatar.has-img::after{
  display:none;
}

/* pastikan gambar selalu di layer paling atas */
.avatar img{
  z-index:2;
}
.avatar-lg{
  width:96px;
  height:96px;
}
.user-meta{display:flex; flex-direction:column; line-height:1.05}
.user-name{font-weight:700; font-size:.95rem}
.user-role{font-size:.75rem; color: var(--muted); letter-spacing:.7px}

.btn{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding:10px 14px;
  border-radius: 14px;
  font-weight:700;
  cursor:pointer;
  transition:.15s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
}
.btn:active{transform: translateY(0px)}
.btn-sm{padding:8px 10px; border-radius: 12px; font-size:.9rem}
.btn-block{width:100%}
.btn-primary{
  background: linear-gradient(135deg, rgba(103,199,241,.95), rgba(74,174,231,.9));
  border-color: rgba(255,255,255,.15);
  box-shadow: 0 16px 40px rgba(74,174,231,.22);
}
.btn-primary:hover{filter: brightness(1.05)}
.btn-ghost{background: rgba(255,255,255,.03)}
.btn-danger{
  background: rgba(239,68,68,.16);
  border-color: rgba(239,68,68,.30);
}
.btn-danger:hover{background: rgba(239,68,68,.22)}

.card{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card-soft{
  background: rgba(255,255,255,.04);
  box-shadow: none;
}
.card-glass{
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.05));
}
.card-head{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding-bottom:12px; border-bottom:1px solid rgba(255,255,255,.08);
  margin-bottom:12px;
}
.card-title{margin:0; font-size:1.05rem; font-weight:800}
.feature h3{margin:10px 0 6px; font-weight:900}
.feature p{margin:0}
.feature .icon{
  width:42px;height:42px;border-radius:12px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  font-weight:900;
  font-size:.78rem;
}

.tech-section{margin-top:24px}
.tech-grid{display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:16px}
.tech-card{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 14px;
  display:flex; align-items:center; gap:12px;
}

/* ✅ FOTO TEKNISI (gambar no-background jadi aman karena ada base biru) */
.tech-photo{
  width:56px;
  height:56px;
  border-radius:16px;
  background:#1e4f86;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  position:relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  font-weight:700;
  color:#d8ecff;
}
.tech-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.tech-initials-fallback{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#d8ecff;
  font-weight:800;
  letter-spacing:.4px;
  pointer-events:none;
}

/* kalau img kosong, biar gak nyempil */
.tech-photo img:not([src]),
.tech-photo img[src=""]{
  display:none;
}

.tech-meta{display:flex; flex-direction:column; gap:2px}
.tech-name{font-weight:800}
.tech-role{font-size:.82rem; color: var(--muted)}

.section{padding-top:10px}
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap}
.section-actions{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.h2{margin:0; font-size:1.6rem; font-weight:900}
.hero{padding: 24px 0}
.hero-card{padding: 22px; position:relative; overflow:hidden}
.hero-mark{
  position:absolute;
  right:22px;
  top:18px;
  width:180px;
  height:auto;
  opacity:.18;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,.45));
  pointer-events:none;
}
.hero-badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px;
  border-radius: 999px;
  background: rgba(103,199,241,.16);
  border: 1px solid rgba(103,199,241,.28);
  color: var(--text);
  font-weight:800;
  font-size:.85rem;
}
.hero-title{margin:12px 0 6px; font-size:2.1rem; font-weight:900; letter-spacing:-.5px}
.hero-sub{margin:0; color:var(--muted); max-width: 70ch}

.grid{display:grid}
.grid-2{grid-template-columns: repeat(2, minmax(0,1fr))}
.grid-3{grid-template-columns: repeat(3, minmax(0,1fr))}
.grid-4{grid-template-columns: repeat(4, minmax(0,1fr))}

.feature-grid{
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.field{display:flex; flex-direction:column; gap:8px; margin: 12px 0}
label{font-weight:800; color: rgba(238,242,255,.85); font-size:.92rem}
.input, .select, .textarea{
  width:100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text);
  padding: 12px 12px;
  border-radius: 14px;
  outline: none;
}
.input-wrap{position:relative}
.input-wrap .input{padding-right:44px}
.input-icon{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  border-radius:10px;
  border:0;
  background: transparent;
  color: var(--muted);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.input-icon:hover{color: var(--text); background: rgba(255,255,255,.06)}
.input-icon:focus{outline: none; box-shadow: 0 0 0 4px rgba(103,199,241,.18)}
.input-icon svg{width:18px; height:18px; fill: currentColor}
.textarea{resize: vertical}
.input:focus, .select:focus, .textarea:focus{
  border-color: rgba(103,199,241,.55);
  box-shadow: 0 0 0 6px rgba(103,199,241,.12);
}
.select option{background:#13263b; color:var(--text)}

.row{display:flex; align-items:center}
.row-between{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap}
.cta-row{display:flex; gap:10px; flex-wrap:wrap}

.alert{
  padding:12px 14px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  margin-bottom:14px;
}
.alert-success{background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.26)}
.alert-error{background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.26)}

.table-wrap{overflow:auto; border-radius: 16px; border:1px solid rgba(255,255,255,.10)}
.table{width:100%; border-collapse: collapse; min-width: 720px; background: rgba(255,255,255,.03)}
.table th, .table td{padding:12px 12px; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: top}
.table th{text-align:left; font-size:.85rem; color: rgba(238,242,255,.80); letter-spacing:.4px}
.table-compact{min-width: 560px}
.table-compact th, .table-compact td{padding:10px 10px}

.badge{
  display:inline-flex; align-items:center; justify-content:center;
  padding:6px 10px;
  border-radius: 999px;
  font-weight:800;
  font-size:.75rem;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.badge-available{background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.28)}
.badge-in_use{background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.28)}
.badge-maintenance{background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.28)}
.badge-sev-low{background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.22)}
.badge-sev-medium{background: rgba(245,158,11,.10); border-color: rgba(245,158,11,.22)}
.badge-sev-high{background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.22)}
.badge-status-open{background: rgba(74,174,231,.14); border-color: rgba(74,174,231,.32)}
.badge-status-closed{background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.28)}
.badge-progress{background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.28)}
.badge-role-admin{background: rgba(103,199,241,.16); border-color: rgba(103,199,241,.32)}
.badge-role-superadmin{background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.30)}
.badge-role-teknisi{background: rgba(59,130,246,.14); border-color: rgba(59,130,246,.30)}
.badge-role-user{background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12)}

.stat{
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
}
.stat-label{color: var(--muted); font-weight:800; font-size:.85rem}
.stat-value{font-size:1.6rem; font-weight:900; margin-top:6px}
.stat-available{background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.22)}
.stat-use{background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.22)}
.stat-maint{background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.22)}

.link{color: rgba(180,226,255,.95); font-weight:800}
.link:hover{text-decoration: underline}

.divider{
  height:1px;
  background: rgba(255,255,255,.10);
  margin: 16px 0;
}

.list{margin:10px 0 0; padding-left: 18px; color: var(--muted)}
.list li{margin: 6px 0}

.pill-list{display:flex; gap:8px; flex-wrap:wrap}
.pill{
  display:inline-flex;
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(238,242,255,.86);
  font-weight:800;
  font-size:.78rem;
}

.chips{display:flex; flex-wrap:wrap; gap:10px; margin-top:12px}
.chip{
  display:flex; flex-direction:column; gap:4px;
  padding:12px 14px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  min-width: 160px;
}
.chip:hover{background: rgba(255,255,255,.06)}
.chip-sub{font-size:.85rem}

.kv{display:flex; flex-direction:column; gap:10px}
.kv-row{display:flex; gap:12px; align-items:flex-start; justify-content:space-between}
.kv-k{font-weight:900; color: rgba(238,242,255,.82)}
.kv-v{color: var(--text); text-align:right; max-width: 70%}

.breadcrumbs{display:flex; align-items:center; gap:10px}
.segmented{display:flex; gap:10px; flex-wrap:wrap}
.seg{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  font-weight:900;
  cursor:pointer;
  user-select:none;
}
.seg input{accent-color: var(--brand1)}

.dropdown{position:relative}
.dropdown summary{list-style:none}
.dropdown summary::-webkit-details-marker{display:none}
.dropdown-menu{
  margin-top:10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,14,28,.85);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  min-width: 320px;
}
.mini-form .field{margin:10px 0}

.footer{
  padding: 26px 0 20px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(10,14,28,.55);
  backdrop-filter: blur(12px);
}
.footer-inner{
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.footer-title{font-weight:900; font-size:1.05rem}
.footer-sub{color:var(--muted); max-width: 65ch; margin-top:6px}
.footer-right{display:flex; gap:12px; align-items:flex-start; flex-wrap:wrap}
.footer-link{color: var(--muted); font-weight:800}
.footer-link:hover{color: var(--text)}
.footer-bottom{
  margin-top: 14px;
  display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap;
  color: var(--muted);
}
/* === FIX AVATAR: jangan numpuk ikon default & alt text === */
.avatar.has-img::before,
.avatar.has-img::after{
  display:none !important;
}

.avatar.has-img{
  background: rgba(255,255,255,.06);
}

/* pastikan img nutup penuh */
.avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  position:relative;
  z-index:2;
}

/* opsional: kalau masih ada teks yang “nyempil” */
.avatar{
  overflow:hidden;
}

.feature-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 32px;
  padding: 0 12px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  line-height: 1;
}

/* FIX: isi tabel kepotong di card (mobile) */
.table-wrap { overflow-y: visible !important; }
.card { overflow: visible; }