@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* =========================
   ROOT VARIABLES
   ========================= */
:root {
  --green-700: #5f8f63;
  --green-600: #6aa06e;
  --green-300: #cfe0c6;
  --bg: #fbfbf5;
  --text: #2e2e2e;
}

/* =========================
   GLOBAL RESET
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 0;
}

html {
  width: 100%;
  height: 100%;
  overflow: hidden; /* ← TAMBAHKAN INI */
  position: fixed; /* ← TAMBAHKAN INI */
}

body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: -webkit-fill-available; /* ← TAMBAHKAN INI untuk iOS */
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  font-family: "Poppins", sans-serif;
  overflow: hidden; /* ← TAMBAHKAN INI */
  position: fixed; /* ← TAMBAHKAN INI */
}

/* =========================
   WRAPPER (PHONE FRAME)
   ========================= */
.wrapper {
  position: relative;
  height: 100vh;
  height: -webkit-fill-available; /* ← TAMBAHKAN INI untuk iOS */
  width: 100%;
  max-width: 100vw; /* ← TAMBAHKAN INI */
  overflow: hidden;
  background: var(--bg);
}

/* =========================
   SCREEN BASE
   ========================= */
.screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition:
    opacity 800ms ease-out,
    transform 800ms ease-out;
}

.screen.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pattern-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url("../image/background.png") center/cover no-repeat;
}

/* =========================
   SPLASH SCREEN
   ========================= */
.splash-center {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}

.logo {
  width: 90%;
  max-width: 170px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.brand {
  font-size: clamp(28px, 7vw, 40px);
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
}

.brand-mu {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--green-700);
  color: #fff;
  line-height: 1.05;
}

.brand-sub {
  font-size: clamp(11px, 2.5vw, 14px);
  color: var(--green-600);
  font-weight: 600;
  margin-top: -6px;
  width: 100%;
  text-align: center;
}

.version {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 2;
  text-align: center;
  font-size: clamp(10px, 2vw, 12px);
  font-weight: 700;
  color: #000;
}

/* =========================
   WELCOME SCREEN
   ========================= */
.welcome-logo-wrap {
  position: absolute;
  left: 50%;
  top: 15%;
  transform: translateX(-50%);
  z-index: 3;
  width: 90%;
  max-width: 280px;
  padding: 0 20px;
}

.logo--welcome {
  width: 100%;
  height: auto;
}

.welcome-card {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 45%;
  max-height: 50%;
  background: #fff;
  z-index: 2;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 12px);
  padding: 20px 24px 30px;
}

.welcome-title {
  font-size: clamp(18px, 4.5vw, 24px);
  color: var(--green-700);
  text-align: center;
  line-height: 1.2;
}

.welcome-brand {
  font-weight: 800;
}

.welcome-sub {
  font-size: clamp(13px, 3vw, 16px);
  font-weight: 600;
  color: #111;
  text-align: center;
  margin-top: -2px;
  line-height: 1.3;
}

.btn-primary {
  margin-top: 10px;
  width: 90%;
  max-width: 320px;
  height: clamp(44px, 10vw, 48px);
  border: 0;
  border-radius: 8px;
  background: var(--green-700);
  color: #fff;
  font-weight: 700;
  font-size: clamp(13px, 3vw, 16px);
  cursor: pointer;
}

.btn-primary:active {
  transform: translateY(1px);
}

/* =========================
   LOGIN PAGE
   ========================= */
.login-page {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.login-header {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 120px;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.login-logo {
  width: 95px;
  height: auto;
  flex-shrink: 0;
}

.text-logo {
  width: 200px;
  height: auto;
  flex-shrink: 0;
}

.login-brand-wrap {
  text-align: center;
}

.login-brand-wrap .brand {
  font-size: 54px;
  font-weight: 900;
  line-height: 1.1;
}

.login-brand-wrap .brand-sub {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #6f6f6f;
}

.login-card {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: auto;
  max-height: calc(100% - 200px);
  background: #fff;
  z-index: 2;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(10px, 2vh, 14px);
  padding: clamp(24px, 4vh, 32px) 24px 100px;
  overflow-y: auto;
}

.login-title {
  position: relative;
  z-index: 3;
  font-size: clamp(28px, 7vw, 42px);
  font-weight: 700;
  color: var(--green-700);
  text-align: center;
  line-height: 1.1;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.login-form {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2.5vh, 16px);
}

.input-box {
  position: relative;
  width: 90%;
  max-width: 520px;
  height: clamp(54px, 11vw, 64px);
  border: 2px solid #1f1f1f;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.input-icon {
  width: clamp(34px, 7vw, 40px);
  display: grid;
  place-items: center;
  color: var(--green-700);
  flex-shrink: 0;
}

.input-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: clamp(14px, 3.5vw, 18px);
  color: #2e2e2e;
  width: 100%;
}

.input-box input::placeholder {
  color: #9a9a9a;
}

#eyeicon {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.btn-login {
  width: 90%;
  max-width: 520px;
  height: clamp(52px, 11vw, 60px);
  border-radius: 12px;
  font-size: clamp(14px, 3vw, 16px);
}

.btn-back {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: 41px;
  height: 41px;
  border-radius: 50%;
  border: none;
  background: var(--green-700);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-back svg {
  pointer-events: none;
}
/* =========================
   HOME PAGE
   ========================= */
.home-page {
  position: relative;
  width: 100%;
  height: 100%;
  background: #f3f6fb;
}

.home-scroll {
  height: 100%;
  overflow-y: auto;
  padding: 18px 18px 100px;
}

.home-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.home-hello {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin-bottom: 2px;
}

.home-sub {
  font-size: 12px;
  font-weight: 600;
  color: #111;
  margin-top: 2px;
}

.home-last {
  font-size: 13px;
  font-weight: 600;
  color: #0f8b1f;
  margin-top: 2px;
  line-height: 1.1;
}

.home-bottom-space {
  height: 0;
}

/* =========================
   NOTIFICATION DROPDOWN
   ========================= */
.notif-container {
  position: relative;
  display: inline-block;
}

.notif-btn {
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px;
  margin-top: 10px;
}

.notif-btn svg {
  display: block;
}

.badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #ff0000;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 300px;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
}

.notif-dropdown.show {
  display: block;
}

.notif-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid white;
}

.notif-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111;
}

.notif-count {
  background: #ff0000;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.notif-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notif-item {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
  cursor: pointer;
}

.notif-item:hover {
  background: #f8f8f8;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-title {
  font-size: 14px;
  color: #111;
  font-weight: 500;
  margin: 0;
}

.notif-badge {
  background: #ff0000;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.notif-empty {
  padding: 40px 20px;
  text-align: center;
  color: #999;
}

.notif-empty p {
  margin: 0;
  font-size: 14px;
}

.badge[style*="display: none"] {
  display: none !important;
}

/* =========================
   POINTS CARD
   ========================= */
.points-card {
  margin: 12px 0 14px;
  border-radius: 28px;
  padding: 14px 16px 16px;
  background: linear-gradient(90deg, #7fe27c, #0a8d0a);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.points-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.points-user .points-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
}

.points-user .points-class {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.95;
}

.points-mid {
  margin-top: 12px;
  text-align: center;
}

.points-label {
  font-size: 18px;
  font-weight: 600;
}

.points-value {
  font-size: 90px;
  font-weight: 700;
  line-height: 1;
  margin: 8px 0 10px;
}

.points-btn {
  border: none;
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  font-weight: 600;
  font-size: 10px;
  padding: 10px 26px;
  border-radius: 999px;
  cursor: pointer;
}

/* =========================
   SECTION TITLE
   ========================= */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 4px 0 10px;
}

/* =========================
   SCHEDULE CARD
   ========================= */
.schedule-card {
  background: #fff;
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.09);
  margin-bottom: 12px;
  width: 100%;
  height: 118px;
  box-sizing: border-box;
}

.schedule-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.schedule-date {
  font-size: 16px;
  color: #111;
}

.schedule-time {
  font-size: 16px;
  font-weight: 800;
  color: #1aa300;
  white-space: nowrap;
}

.schedule-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.act-card {
  width: 100%;
  height: 52px;
  border: none;
  background: #f3f3f3;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.act-ic {
  width: 41px;
  height: 41px;
  border-radius: 50%;
  background: #dedede;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.act-ic svg {
  width: 26px;
  height: 26px;
}

.act-text {
  flex: 1;
  overflow: hidden;
}

.act-text .act-title {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  line-height: 1.1;
}

.act-text .act-sub {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  opacity: 0.7;
  line-height: 1.1;
}

/* =========================
   QUICK MENU
   ========================= */
.quick-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
  width: 100%;
}

.menu-tile {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  height: 93px;
  padding: 14px 5px;
  text-decoration: none;
  color: #111;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.menu-tile img,
.menu-tile svg {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.menu-tile div {
  font-size: 13px;
  font-weight: 500;
}

/* =========================
   BOTTOM NAVIGATION
   ========================= */
.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 74px;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 26px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #3b3b3b;
  font-weight: 300;
}

.nav-item.active {
  color: #5f8f63;
}

.nav-fab {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #5f8f63;
  display: grid;
  place-items: center;
  transform: translateY(-22px);
  cursor: pointer;
}

/* =========================
   PROFILE PAGE
   ========================= */
.profile-page {
  position: relative;
  width: 100%;
  height: 100%;
  background: #f3f6fb;
  overflow: hidden;
}

.profile-scroll {
  height: 100%;
  overflow: hidden;
  padding: 18px 18px 90px;
  display: flex;
  flex-direction: column;
}

.profile-header {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.profile-card {
  background: linear-gradient(135deg, #7fe27c, #0a8d0a);
  border-radius: 20px;
  padding: 20px 18px;
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  margin-bottom: 18px;
  flex-shrink: 0;
  width: 100%;
  height: 226px;
}

.profile-avatar-wrap {
  width: 59px;
  height: 59px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-id {
  font-size: 13px;
  margin-bottom: 6px;
}

.profile-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}

.profile-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  margin: 14px 0;
}

.profile-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.profile-btn {
  flex: 1;
  max-width: 180px;
  background: rgba(255, 255, 255, 0.9);
  color: #0a8d0a;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.profile-btn:hover {
  background: #fff;
}

.profile-btn:active {
  transform: scale(0.98);
}

.siswa-title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.siswa-card {
  background: #fff;
  border: 3px solid #0a8d0a;
  border-radius: 20px;
  padding: 20px 18px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  width: 100%;
}

.siswa-name {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}

.siswa-school {
  font-size: 13px;
  font-weight: 500;
  color: #111;
  margin-bottom: 6px;
}

.siswa-class {
  font-size: 13px;
  font-weight: 500;
  color: #111;
  margin-bottom: 10px;
}

.siswa-status {
  font-size: 15px;
  font-weight: 600;
  color: #111;
}

.btn-logout {
  width: 100%;
  height: 50px;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
  transition:
    background 0.2s,
    transform 0.1s;
  flex-shrink: 0;
}

.btn-logout:hover {
  background: #c0392b;
}

.btn-logout:active {
  transform: translateY(2px);
}

.profile-bottom-space {
  height: 0;
}

/* =========================
   EDIT PROFILE PAGE
   ========================= */
.editprofile-page{
  position: relative;
  width: 100%;
  height: 100%;
  background: #f3f6fb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.editprofile-header{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: transparent;
  flex-shrink: 0;
  z-index: 10;
}

.editprofile-title{
  font-size: 18px;
  font-weight: 700;
  color: #111;
  flex: 1;
  text-align: center;
  margin: 0;
}

.editprofile-content{
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Avatar Section */
.avatar-section{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
}

.avatar-circle{
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #c8e6c9;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.avatar-circle img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-ubah-foto{
  display: inline-block;
  height: 40px;
  padding: 0 28px;
  border-radius: 20px;
  border: none;
  background: #8BC34A;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 40px;
  text-align: center;
}

.btn-ubah-foto:hover{
  background: #9CCC65;
  box-shadow: 0 2px 8px rgba(139, 195, 74, 0.3);
}

.btn-ubah-foto:active{
  transform: scale(0.98);
}

/* Form */
.editprofile-form{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Actions */
.editprofile-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}

.btn-simpan{
  height: 50px;
  border: none;
  border-radius: 12px;
  background: #5f8f63;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(95, 143, 99, 0.3);
  transition: all 0.2s;
}

.btn-simpan:hover{
  background: #6aa06e;
}

.btn-simpan:active{
  transform: translateY(1px);
}

/* =========================
   UBAH KATA SANDI PAGE
   ========================= */
.ubahsandi-page{
  position: relative;
  width: 100%;
  height: 100%;
  background: #f3f6fb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ubahsandi-header{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: transparent;
  flex-shrink: 0;
  z-index: 10;
}

.ubahsandi-title{
  font-size: 18px;
  font-weight: 700;
  color: #111;
  flex: 1;
  text-align: center;
  margin: 0;
}

.ubahsandi-content{
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Form */
.ubahsandi-form{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Password Input Wrapper */
.password-input-wrapper{
  position: relative;
  width: 100%;
}

.password-input-wrapper .form-input{
  padding-right: 50px;
}

.btn-toggle-password{
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

/* Actions */
.ubahsandi-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}

/* =========================
   MASUK PAGE (PRESENSI)
   ========================= */
.masuk-page{
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Map Full Screen - PENTING! */
.masuk-page #map{
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
}

/* Popup Card Mengambang */
.lokasi-popup{
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  width: calc(100% - 32px);
  max-width: 380px;
}

.lokasi-title{
  font-size: 18px;
  font-weight: 700;
  color: #111;
  text-align: center;
  margin: 0 0 14px 0;
  letter-spacing: 0.5px;
}

.lokasi-info{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.lokasi-item{
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.lokasi-item svg{
  flex-shrink: 0;
  margin-top: 2px;
  width: 20px;
  height: 20px;
}

.lokasi-text{
  font-size: 11px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  margin: 0;
  flex: 1;
}

.lokasi-inline{
  display: flex;
  gap: 6px;
  align-items: center;
}

.lokasi-label{
  font-size: 11px;
  font-weight: 500;
  color: #666;
}

.lokasi-value{
  font-size: 11px;
  font-weight: 600;
  color: #111;
}

/* Button Presensi di Card */
.btn-presensi-masuk{
  width: 100%;
  height: 44px;
  background: #5f8f63;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(95, 143, 99, 0.3);
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.5px;
}

.btn-presensi-masuk:hover{
  background: #6aa06e;
}

.btn-presensi-masuk:active{
  transform: translateY(1px);
}

.btn-presensi-masuk:disabled{
  opacity: 0.5;
  cursor: not-allowed;
}

/* Floating Button Current Location */
.btn-current-location{
  position: absolute;
  right: 20px;
  bottom: 80px;
  z-index: 999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #5f8f63;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: background 0.2s, transform 0.1s;
}

.btn-current-location:hover{
  background: #6aa06e;
}

.btn-current-location:active{
  transform: scale(0.95);
}

/* Leaflet Custom Styles */
.leaflet-container{
  width: 100% !important;
  height: 100% !important;
}

.leaflet-control-attribution{
  display: none !important;
}

.leaflet-control-zoom{
  display: none !important;
}

/* User Location Marker dengan Pulse */
.user-marker-container{
  position: relative;
  width: 70px;
  height: 70px;
}

.user-location-pulse{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(66, 165, 245, 0.2);
  border: 2px solid rgba(66, 165, 245, 0.5);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.user-location-dot{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #1976D2;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 10;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
  }
}

/* =========================
   FACE RECOGNITION PAGE
   ========================= */
.face-recognition-page{
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

/* Camera Container */
.camera-container{
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

#video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);  /* ← TAMBAHKAN INI untuk mirror/flip horizontal */
  -webkit-transform: scaleX(-1);  /* Safari/Chrome */
}

/* Face Scan Overlay */
.face-scan-overlay{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(0,0,0,0.3);
}

/* Scan Frame */
.scan-frame{
  position: relative;
  width: 280px;
  height: 380px;
  border-radius: 20px;
}

/* Corner styling */
.corner{
  position: absolute;
  width: 60px;
  height: 60px;
  border: 4px solid #4CAF50;
}

.corner-tl{
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
  border-radius: 20px 0 0 0;
}

.corner-tr{
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
  border-radius: 0 20px 0 0;
}

.corner-bl{
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 20px;
}

.corner-br{
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
  border-radius: 0 0 20px 0;
}

/* Scanning Line Animation */
.scan-line{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #4CAF50, transparent);
  box-shadow: 0 0 10px #4CAF50;
  animation: scan 2s linear infinite;
  opacity: 0;
}

.scan-line.active{
  opacity: 1;
}

@keyframes scan {
  0% {
    top: 0;
  }
  100% {
    top: 100%;
  }
}

/* Instruction Text */
.scan-instruction{
  margin-top: 30px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  padding: 0 20px;
}

/* Success Popup */
.success-popup{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.success-popup.show{
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.success-content{
  background: #fff;
  border-radius: 20px;
  padding: 30px 24px;
  width: calc(100% - 48px);
  max-width: 340px;
  text-align: center;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.success-icon{
  margin: 0 auto 20px;
  animation: scaleIn 0.5s ease 0.2s backwards;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.success-title{
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin: 0 0 12px 0;
  letter-spacing: 0.5px;
}

.success-name{
  font-size: 16px;
  font-weight: 600;
  color: #111;
  margin: 0 0 8px 0;
}

.success-time{
  font-size: 13px;
  font-weight: 500;
  color: #4CAF50;
  margin: 0 0 24px 0;
}

.btn-ok{
  width: 100%;
  height: 50px;
  background: #5f8f63;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(95, 143, 99, 0.3);
  transition: all 0.2s;
}

.btn-ok:hover{
  background: #6aa06e;
}

.btn-ok:active{
  transform: translateY(1px);
}

/* =========================
   RIWAYAT PAGE
   ========================= */
.riwayat-page{
  position: relative;
  width: 100%;
  height: 100%;
  background: #f3f6fb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header - tanpa background putih */
.riwayat-header{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: transparent;
  flex-shrink: 0;
  z-index: 10;
}

.btn-back-header{
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.btn-back-header:hover{
  background: rgba(0,0,0,0.05);
}

.riwayat-title{
  font-size: 18px;
  font-weight: 700;
  color: #111;
  flex: 1;
  text-align: center;
  margin: 0;
}

.header-spacer{
  width: 40px;
}

/* Scrollable Content */
.riwayat-scroll{
  flex: 1;
  overflow-y: auto;
  padding: 0 18px 20px;
}

/* Points Card */
.riwayat-points-card{
  background: linear-gradient(135deg, #7fe27c, #0a8d0a);
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  width: 100%;
  max-width: 100%;
}

.riwayat-points-left{
  display: flex;
  align-items: center;
  gap: 12px;
}

.riwayat-avatar{
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  overflow: hidden;
  flex-shrink: 0;
}

.riwayat-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.riwayat-user-info{
  color: #fff;
}

.riwayat-user-name{
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 2px;
}

.riwayat-user-class{
  font-size: 13px;
  font-weight: 500;
  opacity: 0.95;
}

.riwayat-points-right{
  text-align: center;
  color: #fff;
}

.riwayat-points-label{
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}

.riwayat-points-value{
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.btn-riwayat-small{
  background: rgba(255,255,255,0.3);
  color: #fff;
  border: none;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-riwayat-small:hover{
  background: rgba(255,255,255,0.4);
}

/* History List - dengan card putih */
.riwayat-list{
  background: #fff;
  border-radius: 16px;
  padding: 16px 16px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  width: 100%;
  max-width: 100%;
}

.riwayat-item{
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #f0f0f0;
  width: 100%;
}

.riwayat-item:first-child{
  padding-top: 0;
}

.riwayat-item:last-child{
  border-bottom: none;
  padding-bottom: 0;
}

.riwayat-item-left{
  flex: 1;
  min-width: 0;
}

.riwayat-item-title{
  font-size: 14px;
  font-weight: 500;
  color: #111;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.riwayat-item-date{
  font-size: 12px;
  font-weight: 400;
  color: #666;
  margin: 0;
}

.riwayat-item-points{
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.riwayat-item-points.positive{
  color: #ff0000;
}

.riwayat-item-points.negative{
  color: #111;
}

/* =========================
   TATA TERTIB PAGE
   ========================= */
.tata-tertib-page{
  position: relative;
  width: 100%;
  height: 100%;
  background: #f3f6fb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.tata-tertib-header{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: transparent;
  flex-shrink: 0;
  z-index: 10;
}

.tata-tertib-title{
  font-size: 18px;
  font-weight: 700;
  color: #111;
  flex: 1;
  text-align: center;
  margin: 0;
}

/* Scrollable Content */
.tata-tertib-scroll{
  flex: 1;
  overflow-y: auto;
  padding: 0 18px 20px;
}

/* Info Card dengan Dropdown - DIGABUNG */
.tata-tertib-info-card{
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.info-card-header{
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.info-card-icon{
  width: 44px;
  height: 44px;
  background: #f5f5f5;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.info-card-text{
  flex: 1;
}

.info-card-title{
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin: 0 0 4px 0;
}

.info-card-desc{
  font-size: 12px;
  font-weight: 400;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* Dropdown dalam card yang sama */
.dropdown-toggle{
  width: 100%;
  padding: 12px 14px;
  background: #f8f8f8;
  border: none;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #111;
  transition: background 0.2s;
}

.dropdown-toggle:hover{
  background: #f0f0f0;
}

.dropdown-toggle svg{
  transition: transform 0.3s;
  flex-shrink: 0;
}

.dropdown-toggle svg.rotated{
  transform: rotate(90deg);
}

.dropdown-content{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0;
}

.dropdown-content.show{
  max-height: 400px;
  padding: 12px 0 0;
}

.dropdown-content p{
  font-size: 13px;
  color: #666;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.dropdown-content ul{
  margin: 0;
  padding-left: 20px;
}

.dropdown-content li{
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.4;
}

.dropdown-content li:last-child{
  margin-bottom: 0;
}

/* Categories Accordion */
.tata-tertib-categories{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-accordion{
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.category-toggle{
  width: 100%;
  padding: 16px;
  background: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.category-toggle:hover{
  background: #f8f8f8;
}

.category-left{
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.category-icon{
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.category-accordion.ringan .category-icon{
  background: rgba(76, 175, 80, 0.1);
}

.category-accordion.sedang .category-icon{
  background: rgba(255, 193, 7, 0.1);
}

.category-accordion.berat .category-icon{
  background: rgba(244, 67, 54, 0.1);
}

.category-text{
  text-align: left;
  flex: 1;
}

.category-title{
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin: 0 0 4px 0;
}

.category-subtitle{
  font-size: 12px;
  font-weight: 400;
  color: #666;
  margin: 0;
}

.category-arrow{
  flex-shrink: 0;
  transition: transform 0.3s;
}

.category-arrow.rotated{
  transform: rotate(90deg);
}

/* Category Content - Dropdown */
.category-content{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #f8f8f8;
}

.category-content.show{
  max-height: 600px;
}

/* Pelanggaran List */
.pelanggaran-list{
  padding: 12px 16px 16px;
}

.pelanggaran-item{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e8e8e8;
}

.pelanggaran-item:last-child{
  border-bottom: none;
  padding-bottom: 0;
}

.pelanggaran-text{
  font-size: 13px;
  font-weight: 500;
  color: #111;
  flex: 1;
}

.pelanggaran-poin{
  font-size: 14px;
  font-weight: 700;
  color: #F44336;
  flex-shrink: 0;
}

/* =========================
   KEHADIRAN PAGE
   ========================= */
.kehadiran-page{
  position: relative;
  width: 100%;
  height: 100%;
  background: #f3f6fb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.kehadiran-header{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: transparent;
  flex-shrink: 0;
  z-index: 10;
}

.kehadiran-title{
  font-size: 18px;
  font-weight: 700;
  color: #111;
  flex: 1;
  text-align: center;
  margin: 0;
}

/* Scrollable Content */
.kehadiran-scroll{
  flex: 1;
  overflow-y: auto;
  padding: 0 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Chart Card - DIPERKECIL */
.kehadiran-chart-card{
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
}

/* Month Selector */
.month-selector{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.month-nav{
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background 0.2s;
  flex-shrink: 0;
}

.month-nav:hover{
  background: #f0f0f0;
}

.month-nav svg{
  width: 18px;
  height: 18px;
}

.month-text{
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

/* Status Badges - LEBIH KECIL */
.status-badges{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 10px;
  width: 100%;
}

.badge-item{
  padding: 6px 4px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.badge-item.hadir{
  background: #4CAF50;
}

.badge-item.sakit{
  background: #FFC107;
}

.badge-item.izin{
  background: #2196F3;
}

.badge-item.terlambat{
  background: #FF9800;
}

.badge-item.pulang-awal{
  background: #8BC34A;
}

.badge-item.alpa{
  background: #F44336;
}

.badge-label{
  font-size: 8px;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
}

.badge-value{
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

/* Chart Container - LEBIH BESAR */
.chart-container{
  position: relative;
  width: 100%;
  max-width: 140px;
  margin: 0 auto 12px;
  aspect-ratio: 1;
}

/* Legend - LEBIH COMPACT */
.chart-legend{
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.legend-row{
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.legend-item{
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot.hadir{
  background: #4CAF50;
}

.legend-dot.sakit{
  background: #FFC107;
}

.legend-dot.izin{
  background: #2196F3;
}

.legend-dot.alpa{
  background: #F44336;
}

.legend-dot.terlambat{
  background: #FF9800;
}

.legend-dot.pulang-awal{
  background: #8BC34A;
}

.legend-label{
  font-size: 11px;
  font-weight: 500;
  color: #666;
}

/* Table Card - FIXED HEIGHT */
.kehadiran-table-card{
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.kehadiran-table{
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
  table-layout: fixed;
}

.kehadiran-table thead{
  background: #f8f8f8;
}

.kehadiran-table th{
  padding: 8px 4px;
  font-size: 9px;
  font-weight: 600;
  color: #666;
  text-align: center;
  border-bottom: 2px solid #e8e8e8;
  line-height: 1.2;
  word-wrap: break-word;
}

.kehadiran-table th:nth-child(1){
  width: 18%;
}

.kehadiran-table th:nth-child(2){
  width: 18%;
}

.kehadiran-table th:nth-child(3){
  width: 13%;
}

.kehadiran-table th:nth-child(4){
  width: 13%;
}

.kehadiran-table th:nth-child(5){
  width: 38%;
}

.kehadiran-table td{
  padding: 11px 5px;
  font-size: 9px;
  font-weight: 400;
  color: #111;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.4;
  vertical-align: middle;
  white-space: nowrap;
  text-align: center;
}

/* Kolom Keterangan (ke-5) - WRAP TEXT */
.kehadiran-table td:nth-child(5){
  white-space: normal;
  word-wrap: break-word;
}

.kehadiran-table tr:last-child td{
  border-bottom: none;
}

.status-badge{
  display: inline-block;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.status-badge.hadir{
  background: #4CAF50;
}

.status-badge.sakit{
  background: #FFC107;
}

.status-badge.izin{
  background: #2196F3;
}

.status-badge.alpa{
  background: #F44336;
}

/* Download Button - LEBIH KECIL */
.btn-download{
  width: 100%;
  max-width: 100%;
  height: 40px;
  background: #5f8f63;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(95, 143, 99, 0.3);
  transition: all 0.2s;
}

.btn-download:hover{
  background: #6aa06e;
}

.btn-download:active{
  transform: translateY(1px);
}

/* =========================
   IZIN PAGE
   ========================= */
.izin-page{
  position: relative;
  width: 100%;
  height: 100%;
  background: #f3f6fb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.izin-header{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: transparent;
  flex-shrink: 0;
  z-index: 10;
}

.izin-title{
  font-size: 18px;
  font-weight: 700;
  color: #111;
  flex: 1;
  text-align: center;
  margin: 0;
}

/* Scrollable Content */
.izin-scroll{
  flex: 1;
  overflow-y: auto;
  padding: 0 18px 20px;
}

/* Top Actions */
.izin-top-actions{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.izin-section-title{
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin: 0;
}

.izin-buttons{
  display: flex;
  gap: 8px;
}

.btn-filter{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: #5f8f63;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(95, 143, 99, 0.3);
  transition: all 0.2s;
}

.btn-filter:hover{
  background: #6aa06e;
}

.btn-filter:active{
  transform: translateY(1px);
}

.btn-tambah{
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: none;
  background: #5f8f63;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(95, 143, 99, 0.3);
  transition: all 0.2s;
}

.btn-tambah:hover{
  background: #6aa06e;
}

.btn-tambah:active{
  transform: translateY(1px);
}

/* List Izin */
.izin-list{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.izin-item{
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.izin-item-content{
  flex: 1;
  min-width: 0;
}

.izin-item-title{
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin: 0 0 4px 0;
}

.izin-item-date{
  font-size: 12px;
  font-weight: 400;
  color: #666;
  margin: 0 0 4px 0;
}

.izin-item-keterangan{
  font-size: 12px;
  font-weight: 500;
  color: #111;
  margin: 0;
}

.izin-item-right{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}

.izin-status{
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.izin-status.pending{
  color: #FF9800;
}

.izin-status.disetujui{
  color: #4CAF50;
}

.izin-status.ditolak{
  color: #F44336;
}

.izin-actions{
  display: flex;
  gap: 8px;
}

.btn-edit,
.btn-delete{
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-edit:hover{
  background: rgba(76, 175, 80, 0.1);
}

.btn-delete:hover{
  background: rgba(244, 67, 54, 0.1);
}

.btn-edit:active,
.btn-delete:active{
  transform: scale(0.95);
}

/* Filter Dropdown */
.filter-dropdown{
  position: absolute;
  right: 18px;
  top: 110px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 150px;
  z-index: 100;
  animation: slideDown 0.2s ease;
}

.filter-dropdown.show{
  display: flex;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-option{
  width: 100%;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #111;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  padding: 0 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.filter-option:hover{
  background: #f0f0f0;
}

.filter-option.active{
  background: #5f8f63;
  color: #fff;
}

/* =========================
   TAMBAH IZIN PAGE
   ========================= */
.tambahizin-page{
  position: relative;
  width: 100%;
  height: 100%;
  background: #f3f6fb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.tambahizin-header{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: transparent;
  flex-shrink: 0;
  z-index: 10;
}

.tambahizin-title{
  font-size: 18px;
  font-weight: 700;
  color: #111;
  flex: 1;
  text-align: center;
  margin: 0;
}

/* Scrollable Content */
.tambahizin-scroll{
  flex: 1;
  overflow-y: auto;
  padding: 0 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Form */
.tambahizin-form{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label{
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

/* Input with Icon */
.input-with-icon{
  position: relative;
  width: 100%;
}

.form-input{
  width: 100%;
  height: 50px;
  padding: 0 50px 0 16px;
  border: 1px solid #d0d0d0;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 400;
  color: #111;
  outline: none;
  transition: border 0.2s;
}

.form-input::placeholder{
  color: #999;
}

.form-input:focus{
  border-color: #5f8f63;
}

/* Input Date - Native */
.form-input-date{
  color: #111;
  position: relative;
  cursor: pointer;
}

.form-input-date::-webkit-calendar-picker-indicator{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

/* Untuk HP - pastikan icon tidak blocking */
.input-with-icon .input-icon-right{
  pointer-events: none;
  z-index: 1;
}

/* Style untuk date value yang sudah dipilih */
.form-input-date::-webkit-datetime-edit-text,
.form-input-date::-webkit-datetime-edit-month-field,
.form-input-date::-webkit-datetime-edit-day-field,
.form-input-date::-webkit-datetime-edit-year-field {
  color: #111;
}

/* Placeholder untuk date input */
.form-input-date:invalid {
  color: #999;
}

.form-input-date::before {
  content: attr(placeholder);
  color: #999;
  position: absolute;
  pointer-events: none;
}

.form-input-date:focus::before,
.form-input-date:valid::before {
  display: none;
}

/* =========================
   AIR DATEPICKER CUSTOM THEME
   ========================= */
.air-datepicker {
  --adp-font-family: "Poppins", sans-serif;
  --adp-font-size: 14px;
  --adp-width: 100%;
  --adp-color: #111;
  --adp-color-secondary: #666;
  --adp-accent-color: #5f8f63;
  --adp-background-color: #fff;
  --adp-background-color-hover: #e8f5e9;
  --adp-background-color-active: #5f8f63;
  --adp-background-color-in-range: #e8f5e9;
  --adp-background-color-selected-other-month-focused: #5f8f63;
  --adp-background-color-selected-other-month: #6aa06e;
  --adp-color-other-month: #ccc;
  --adp-color-disabled: #ddd;
  --adp-color-current-date: #5f8f63;
  --adp-cell-background-color-selected: #5f8f63;
  --adp-cell-background-color-selected-hover: #6aa06e;
  --adp-cell-border-color-selected: #5f8f63;
  --adp-border-color: #f0f0f0;
  --adp-border-color-inner: #f0f0f0;
  --adp-border-radius: 16px;
  --adp-border-color-inline: #f0f0f0;
  --adp-nav-height: 50px;
  --adp-nav-color-secondary: #fff;
  --adp-day-name-color: #666;
  --adp-day-name-color-hover: #111;
  --adp-btn-height: 36px;
  
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  border: none;
  max-width: 340px;
}

/* Navigation Header */
.air-datepicker-nav {
  background: linear-gradient(135deg, #6aa06e, #5f8f63);
  border-radius: 16px 16px 0 0;
  padding: 12px 16px;
  min-height: 50px;
}

.air-datepicker-nav--title {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

.air-datepicker-nav--title:hover {
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
}

.air-datepicker-nav--action {
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.air-datepicker-nav--action:hover {
  background: rgba(255,255,255,0.2);
}

.air-datepicker-nav--action svg {
  width: 12px;
  height: 12px;
}

/* Body */
.air-datepicker-body {
  padding: 16px;
}

.air-datepicker-body--day-names {
  margin-bottom: 8px;
}

.air-datepicker-body--day-name {
  color: #666;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
}

.air-datepicker-body--cells {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

/* Day Cells */
.air-datepicker-cell {
  border-radius: 8px;
  height: 36px;
  font-size: 13px;
  font-weight: 500;
}

.air-datepicker-cell.-day- {
  color: #111;
}

.air-datepicker-cell.-current- {
  color: #5f8f63;
  font-weight: 700;
  border: 2px solid #5f8f63;
}

.air-datepicker-cell.-selected- {
  background: #5f8f63;
  color: #fff;
  font-weight: 700;
}

.air-datepicker-cell.-selected-:hover {
  background: #6aa06e;
}

.air-datepicker-cell:hover {
  background: #e8f5e9;
  color: #111;
}

.air-datepicker-cell.-other-month- {
  color: #ccc;
}

.air-datepicker-cell.-disabled- {
  color: #ddd;
  cursor: not-allowed;
}

.air-datepicker-cell.-disabled-:hover {
  background: transparent;
}

/* Buttons */
.air-datepicker--buttons {
  border-top: 1px solid #f0f0f0;
  padding: 12px 16px;
  display: flex;
  gap: 8px;
}

.air-datepicker-button {
  color: #5f8f63;
  border: 1px solid #5f8f63;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  height: 36px;
}

.air-datepicker-button:hover {
  background: #e8f5e9;
  border-color: #6aa06e;
}

/* Time select (if enabled) */
.air-datepicker--time {
  border-top: 1px solid #f0f0f0;
}

.air-datepicker-time--current {
  color: #5f8f63;
  font-weight: 600;
}

/* Pointer */
.air-datepicker--pointer {
  display: none;
}

/* Input readonly style */
.form-input[readonly] {
  background: #fff;
  cursor: pointer;
}

.input-icon-right{
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

/* Select */
.select-wrapper{
  position: relative;
  width: 100%;
}

.form-select{
  width: 100%;
  height: 50px;
  padding: 0 50px 0 16px;
  border: 1px solid #d0d0d0;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 400;
  color: #999;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: border 0.2s;
}

.form-select:focus{
  border-color: #5f8f63;
}

.form-select option{
  color: #111;
}

.select-icon{
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Textarea */
.form-textarea{
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  border: 1px solid #d0d0d0;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 400;
  color: #111;
  font-family: "Poppins", sans-serif;
  outline: none;
  resize: vertical;
  transition: border 0.2s;
}

.form-textarea::placeholder{
  color: #999;
}

.form-textarea:focus{
  border-color: #5f8f63;
}

/* File Input - Hidden */
.file-input{
  display: none;
}

/* Button Tambah Bukti - sebagai label */
.btn-tambah-bukti{
  width: fit-content;
  height: 44px;
  padding: 0 20px;
  border: 1px solid #d0d0d0;
  border-radius: 12px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-tambah-bukti:hover{
  background: #f8f8f8;
  border-color: #5f8f63;
}

.btn-tambah-bukti:active{
  transform: scale(0.98);
}

/* File List */
.file-list{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.file-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8f8f8;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.file-item-name{
  font-size: 13px;
  font-weight: 500;
  color: #111;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 8px;
}

.btn-remove-file{
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 4px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.btn-remove-file:hover{
  background: rgba(244, 67, 54, 0.1);
}

/* Action Buttons */
.tambahizin-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
}

.btn-kirim{
  height: 50px;
  border: none;
  border-radius: 12px;
  background: #5f8f63;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(95, 143, 99, 0.3);
  transition: all 0.2s;
}

.btn-kirim:hover{
  background: #6aa06e;
}

.btn-kirim:active{
  transform: translateY(1px);
}

.btn-batal{
  height: 50px;
  border: none;
  border-radius: 12px;
  background: #F44336;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
  transition: all 0.2s;
}

.btn-batal:hover{
  background: #E53935;
}

.btn-batal:active{
  transform: translateY(1px);
}
/* =========================
   DESKTOP RESPONSIVE
   ========================= */
@media (min-width: 768px) {
  /* Wrapper jadi mockup HP di tengah layar */
  .wrapper {
    height: 50rem;
    width: 25rem;
    border-radius: 40px;
    border: 10px solid #2e2e2e;
  }

  /* Penyesuaian kecil untuk tampilan desktop */
  .login-card {
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
  }

  .welcome-card {
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
  }

  .lokasi-popup{
    left: 50%;
    transform: translateX(-50%);
  }
}
