/* style.css - Kuning Hitam Theme (HRIVE Rebranding Proposal) */
/* ---------------------------------------------------------- */
/* Colors */
:root {
  --purple: #f4c20d;        /* kuning utama */
  --purple-dark: #222222;   /* hitam pekat */
  --soft: #fef9e7;          /* krem kekuningan lembut */
  --accent: #ffde59;        /* kuning terang aksen */
  --muted: #999;
  --danger: #e74c3c;
}

/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

html, body { height: 100%; }

body {
  background: #fff;
  color: #222;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 84px; /* space for fixed bottom nav */
}

/* Header */
.app-header {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 2px solid rgba(0,0,0,0.08);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.app-header .logo { height: 40px; width: auto; }

/* Page container */
.container {
  padding: 18px;
  max-width: 680px;
  margin: 0 auto;
}

/* Card */
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  padding: 18px;
  margin-bottom: 18px;
}

/* Dashboard top user box */
.user-box {
  background: var(--purple-dark);
  color: var(--accent);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.user-box .meta { display: flex; gap: 12px; align-items: center; }
.user-box .avatar {
  min-width: 64px;
  min-height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}
.user-box .time { font-size: 28px; font-weight: 700; color: #fff; }

/* Button: Check-in (inverted style) */
.btn-checkin {
  background: #000;
  color: var(--accent);
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease-in-out;
}
.btn-checkin:hover {
  background: #333;
  transform: scale(1.05);
}

/* Grid menu */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.menu-grid button {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: 0.2s ease;
}
.menu-grid button:hover {
  background: var(--soft);
  transform: translateY(-2px);
}

/* Bottom fixed nav */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 64px;
  background: #111;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 10px;
  z-index: 60;
  max-width: 100%;
}
.bottom-nav button {
  background: transparent;
  border: none;
  font-size: 12px;
  color: #bbb;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.2s;
}
.bottom-nav button.active { color: var(--accent); }

/* Absensi list */
.absen-list { display: flex; flex-direction: column; gap: 12px; }
.absen-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid rgba(0,0,0,0.08);
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}
.absen-item:hover { background: var(--soft); }
.absen-item .icon {
  min-width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 20px;
  font-weight: 700;
}

/* Map container */
#map {
  height: 60vh;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}
.geo-btn {
  margin-top: 12px;
  background: var(--purple);
  color: #000;
  padding: 12px 18px;
  border-radius: 28px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  transition: all 0.2s ease;
}
.geo-btn:hover { background: var(--accent); transform: translateY(-2px); }
.geo-btn.green { background: #28a745; color: #fff; }

/* Camera page */
.camera-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
}
.camera-circle {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  border: 6px solid rgba(255,215,0,0.2);
}
.camera-controls { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  background: #fff;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #fff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Forms */
label { display: block; margin-bottom: 8px; font-weight: 700; }
.input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  outline: none;
  font-size: 15px;
  color: #222;
}
textarea { min-height: 120px; resize: vertical; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #000;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.2s;
}
.btn:hover { background: var(--purple); }

/* Report preview */
.photo-preview {
  background: var(--soft);
  padding: 18px;
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
}

/* Lists */
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}
.list-item .left { display: flex; gap: 12px; align-items: center; }

/* Profile */
.profile-header { text-align: center; padding: 18px; }
.profile-header .big-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 700;
  margin-bottom: 8px;
}
.profile-details { max-width: 720px; margin: 10px auto; }

/* Profile Section Layout */
.profile-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.profile-item i {
  color: var(--purple);
  font-size: 18px;
  margin-right: 10px;
  margin-top: 4px;
}
.profile-item-label {
  flex: 1;
  font-weight: 500;
  color: #666;
  min-width: 80px;
}
.profile-item-value {
  flex: 2;
  font-weight: 600;
  color: #111;
  text-align: right;
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Tiny helpers */
.small { font-size: 13px; color: var(--muted); }
.center { text-align: center; }

/* Responsive */
@media (min-width: 720px) {
  body { background: #fdfbf3; }
  .container { padding: 28px; }
  .menu-grid { grid-template-columns: repeat(4, 1fr); }
  .camera-circle { width: 360px; height: 360px; }
  #map { height: 72vh; }
}
