/* style.css - single stylesheet for all pages */
/* Colors */
:root{
  --purple:#2f25b3;
  --purple-dark:#1d1a82;
  --soft:#c1cff7;
  --accent:#7cfcd2;
  --muted:#777;
  --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(108,78,210,0.12);
  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(25,10,70,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;
}
.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}
.user-box .time{font-size:28px;font-weight:700}


/* Button: Check-in (white style on purple background) */
.btn-checkin {
  background: #fff;
  color: var(--purple);
  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.12);
  transition: all 0.2s ease-in-out;
}
.btn-checkin:hover {
  background: #f3f0fb;
  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(25,10,70,0.05);
  display:flex;flex-direction:column;align-items:center;gap:8px;font-weight:600;
  box-shadow:0 6px 14px rgba(108,78,210,0.04);cursor:pointer;
}

/* Bottom fixed nav */
.bottom-nav{
  position:fixed;left:0;right:0;bottom:0;height:64px;
  background:#fff;border-top:1px solid rgba(25,10,70,0.05);
  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:#777;display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;
}
.bottom-nav button.active{color:var(--purple)}

/* 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(108,78,210,0.08);
  background:#fff;cursor:pointer;
}
.absen-item .icon{
  min-width:52px;height:52px;border-radius:50%;background:var(--purple);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(25,10,70,0.04)}
.geo-btn{
  margin-top:12px;background:var(--purple);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(108,78,210,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(108,78,210,0.16);border:6px solid rgba(108,78,210,0.12);
}
.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(25,10,70,0.08);background: #fff;outline:none;font-size:15px;color:#222
}
textarea{min-height:120px;resize:vertical}
.btn{
  display:inline-block;background:var(--accent);padding:12px 18px;border-radius:10px;font-weight:800;border:none;cursor:pointer;margin-top:10px
}

/* 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(108,78,210,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 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; /* ✅ ini yang bikin auto-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;   /* ✅ biar kata panjang otomatis turun */
  word-break: break-word;  /* ✅ biar alamat/email panjang gak nembus kontainer */
  white-space: normal;     /* ✅ supaya teks bisa multi-baris */
  overflow-wrap: anywhere; /* ✅ tambahan untuk browser modern */
}


/* Tiny helpers */
.small{font-size:13px;color:var(--muted)}
.center{text-align:center}

/* Responsive */
@media(min-width:720px){
  body{background:#fbfaff}
  .container{padding:28px}
  .menu-grid{grid-template-columns:repeat(4,1fr)}
  .camera-circle{width:360px;height:360px}
  #map{height:72vh}
}
