/* ===== KODA Attendance UI (Corporate Minimal) ===== */
:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.10);
  --border: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.66);
  --muted2: rgba(255,255,255,.45);
  --primary: #4f8cff;
  --primary2:#7aa6ff;
  --success:#2bd576;
  --warning:#ffcc66;
  --danger:#ff5c7a;
  --shadow: 0 16px 50px rgba(0,0,0,.35);
  --radius: 16px;
  --radius2: 22px;
  --gap: 16px;
  --max: 1100px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(79,140,255,.22), transparent 50%),
    radial-gradient(900px 600px at 80% 0%, rgba(43,213,118,.16), transparent 55%),
    radial-gradient(800px 600px at 60% 80%, rgba(255,92,122,.14), transparent 55%),
    linear-gradient(180deg, #070c16 0%, #0b1220 60%, #070c16 100%);
}

a{ color: var(--primary2); text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 18px 60px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 240px;
}
.brand-badge{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, rgba(79,140,255,.95), rgba(122,166,255,.65));
  box-shadow: 0 12px 30px rgba(79,140,255,.22);
  font-weight: 800;
  letter-spacing:.5px;
}
.brand-title{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}
.brand-title b{ font-size: 16px; }
.brand-title span{ font-size: 12px; color: var(--muted); }

.userbox{
  display:flex;
  align-items:center;
  gap: 12px;
  justify-content:flex-end;
}
.pill{
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.role{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 13px;
}
.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display:inline-block;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(79,140,255,.12);
}
.role.owner .dot{ background: var(--success); box-shadow:0 0 0 6px rgba(43,213,118,.12); }
.role.office .dot{ background: var(--primary); box-shadow:0 0 0 6px rgba(79,140,255,.12); }
.role.field .dot{ background: var(--warning); box-shadow:0 0 0 6px rgba(255,204,102,.12); }

.btn{
  appearance:none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  cursor:pointer;
  transition: transform .06s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{ background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.18); }
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: linear-gradient(135deg, rgba(79,140,255,.95), rgba(122,166,255,.65));
  border-color: rgba(79,140,255,.45);
}
.btn-primary:hover{ background: linear-gradient(135deg, rgba(79,140,255,1), rgba(122,166,255,.75)); }

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: 18px;
}

@media(min-width: 900px){
  .grid.two{ grid-template-columns: 1.15fr .85fr; }
  .grid.three{ grid-template-columns: 1fr 1fr 1fr; }
}

.card{
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow:hidden;
}

.card-header{
  padding: 16px 18px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.card-header h3{
  margin:0;
  font-size: 14px;
  letter-spacing:.2px;
}
.card-header p{
  margin:6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.card-body{ padding: 16px 18px 18px; }

.kpi{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
}
.kpi .box{
  flex: 1 1 180px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.kpi .box b{ font-size: 18px; display:block; margin-bottom: 4px;}
.kpi .box span{ font-size: 12px; color: var(--muted); }

.form{
  display:grid;
  gap: 10px;
}
.label{
  font-size: 12px;
  color: var(--muted);
}
.input, select, input[type="date"], input[type="email"], input[type="password"], input[type="file"]{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(6,10,20,.45);
  color: var(--text);
  outline:none;
}
.input:focus, select:focus, input:focus{
  border-color: rgba(79,140,255,.6);
  box-shadow: 0 0 0 6px rgba(79,140,255,.12);
}

.help{
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.tablewrap{ overflow:auto; border-radius: 18px; border:1px solid rgba(255,255,255,.08); }
table{
  width:100%;
  border-collapse: collapse;
  min-width: 760px;
  background: rgba(255,255,255,.02);
}
th, td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-align:left;
  font-size: 13px;
  color: var(--text);
}
th{
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  background: rgba(255,255,255,.04);
}
tr:hover td{ background: rgba(255,255,255,.03); }

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  font-size: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
}
.badge.pending{ border-color: rgba(255,204,102,.25); color: rgba(255,204,102,.95); background: rgba(255,204,102,.06); }
.badge.approved{ border-color: rgba(43,213,118,.25); color: rgba(43,213,118,.95); background: rgba(43,213,118,.06); }
.badge.flagged{ border-color: rgba(255,92,122,.25); color: rgba(255,92,122,.95); background: rgba(255,92,122,.06); }

.footer-actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 14px;
}

.note{
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.18);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: 12px;
}

/* Mobile tweaks */
@media(max-width: 520px){
  .brand-title b{ font-size: 14px; }
  .pill, .role{ display:none; }
}

@media (max-width: 720px){
  .container{ padding: 16px; }
  .topbar{ flex-direction: column; align-items: flex-start; gap: 12px; }
  .userbox{ width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
  .grid.two{ grid-template-columns: 1fr; }
  .card{ border-radius: 18px; }
  .btn{ width: 100%; justify-content: center; padding: 12px 14px; }
  .form{ gap: 12px; }
  .input, select{ font-size: 16px; }
  .tablewrap{ overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table{ min-width: 820px; } /* supaya tabel tetap rapi, tinggal swipe */
}


.brand-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.brand-link:hover {
  opacity: 0.85;
  transition: 0.2s ease;
  text-decoration: none;
}

.brand {
  cursor: pointer;
}