/* style.css - HRIVE Theme: Hijau–Biru Solid */
/* ------------------------------------------ */
/* Colors */
:root {
  --purple: #2ba67a;        /* hijau segar solid */
  --purple-dark: #1f6f88;   /* biru laut elegan */
  --soft: #f2fdf9;          /* background lembut kehijauan */
  --accent: #25b0c8;        /* biru toska kontras */
  --muted: #666;
  --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: var(--soft);
  color: #222;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 84px;
}

/* 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;
  color: #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.05);
  padding: 18px;
  margin-bottom: 18px;
}

/* Dashboard top user box */
.user-box {
  background: var(--purple);
  color: #fff;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.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.25);
  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 */
.btn-checkin {
  background: var(--purple-dark);
  color: #fff;
  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.2);
  transition: all 0.2s ease-in-out;
}
.btn-checkin:hover {
  background: var(--accent);
  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.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #1f6f88;
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: 0.2s;
}
.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: var(--purple-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 10px;
  z-index: 60;
}
.bottom-nav button {
  background: transparent;
  border: none;
  font-size: 12px;
  color: #d2f5ec;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.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.05);
  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(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}

/* Map container */
#map {
  height: 60vh;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
}
.geo-btn {
  margin-top: 12px;
  background: var(--accent);
  color: #fff;
  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);
}
.geo-btn.green { background: #28a745; }

/* 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.16);
  border: 6px solid rgba(0,0,0,0.08);
}
.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; color: #1f6f88; }
.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: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}
.btn:hover { background: var(--purple-dark); }

/* 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.04);
}
.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: #fff;
  font-weight: 700;
  margin-bottom: 8px;
}
.profile-details { max-width: 720px; margin: 10px auto; }

/* Profile items */
.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(--accent);
  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;
}

/* Helpers */
.small { font-size: 13px; color: var(--muted); }
.center { text-align: center; }

/* Responsive */
@media (min-width: 720px) {
  body { background: #f6fefa; }
  .container { padding: 28px; }
  .menu-grid { grid-template-columns: repeat(4, 1fr); }
  .camera-circle { width: 360px; height: 360px; }
  #map { height: 72vh; }
}
