/* =====================================================
   GOLD PREMIUM — Soft Yellow + Glossy + 3D Buttons
   Siap paste ke assets/style.css (ganti file lama)
   ===================================================== */

:root {
  --gold: #D4A34A;
  --gold-dark: #C37A1A;
  --brown: #5a2f12;
  --card-radius: 20px;
  --max-width: 860px;

  /* kotak color: sedikit lebih muda dari #F8AE19 */
  --box: #F9C46B; /* soft warm yellow */
  --box-overlay: rgba(255,255,255,0.20);
  --glass-alpha: 0.85;
  --shadow-strong: rgba(0,0,0,0.20);
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Philosopher', sans-serif;
  background: linear-gradient(180deg, #fffaf3, #fff 60%);
  color: var(--brown);
  padding: 18px;
  text-align: center;
}

/* Centering */
.app-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.container { width: 100%; max-width: var(--max-width); display: flex; justify-content: center; }

/* =====================================================
   CARD UTAMA: soft yellow background + glossy highlight
   ===================================================== */
.center-card {
  width: 100%;
  max-width: 600px;
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;

  /* dasar warna */
  background: linear-gradient(180deg, var(--box), color-mix(in srgb, var(--box) 85%, white 15%));
  box-shadow: 0 28px 60px rgba(120,60,18,0.20), 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid rgba(160,110,30,0.08);
}

/* subtle glossy band (di atas overlay) */
.center-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.30), rgba(255,255,255,0.06));
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* soft highlight streak */
.center-card::after {
  content: "";
  position: absolute;
  left: -10%;
  top: 8%;
  width: 60%;
  height: 22%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.486), rgba(255,255,255,0.12) 60%, rgba(255,255,255,0));
  transform: rotate(-18deg);
  filter: blur(6px);
  z-index: 2;
  pointer-events: none;
  opacity: 0.92;
}

/* ensure content sits above pseudo-elements */
.center-card > * { position: relative; z-index: 3; padding: 22px 28px; text-align: center; }

/* =====================================================
   HEADER / LOGO (logo path: /mnt/data/....png or assets/logo.png)
   ===================================================== */
/* ============================
   LOGO ALIGNMENT FIXED + RESPONSIVE
   ============================ */

.logo-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
  margin: 0 auto;
  padding-top: 4px;
  gap: 4px; /* jarak kecil yang rapi antara logo dan judul */
}

/* BUNGKUS LOGO FLUID & PROPORTIONAL */
.logo-glow-wrap {
  width: clamp(140px, 32vw, 240px);  /* responsif: minimal 140px, ideal 32%, max 240px */
  height: clamp(140px, 32vw, 240px);
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  border-radius: 50%;
  overflow: hidden;

  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.95), rgba(255,250,230,0.5) 40%);
  box-shadow: 
    0 8px 18px rgba(120,60,18,0.16), 
    inset 0 1px 0 rgba(255,255,255,0.6);

  transition: transform .35s ease;
}

/* LOGO DI DALAM SELALU PROPORSIONAL & TIDAK MELEBAR */
.brand-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  
  filter: drop-shadow(0 6px 14px rgba(120,60,18,0.24));
}

/* HOVER EFFECT (opsional) */
.logo-glow-wrap:hover {
  transform: translateY(-4px) scale(1.03);
}

/* MOBILE FIX */
@media (max-width: 480px) {
  .logo-glow-wrap {
    width: clamp(110px, 60vw, 180px);
    height: clamp(110px, 60vw, 180px);
  }
}
.header-text-top .title { font-size: 1.6rem; font-weight: 800; color: var(--brown); }
.header-text-top .small-note { font-size: 1rem; color: var(--brown); opacity: 0.85; margin-top: 4px; }

.logo-glow-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px auto;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.95), rgba(255,250,230,0.5) 40%);
  box-shadow: 0 12px 30px rgba(255, 106, 0, 0.16), inset 0 1px 0 rgba(244, 124, 4, 0.6);
  transition: transform .35s ease;
}

.brand-logo {
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 12px 26px rgba(120,60,18,0.24));
}

/* decorative ring (SVG) if present */
.logo-ring {
  position: absolute;
  width: 118%;
  height: 118%;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  filter: blur(6px);
  opacity: 0.95;
}

/* subtle floating on hover (desktop) */
.logo-glow-wrap:hover { transform: translateY(-6px) scale(1.02); }

/* =====================================================
   FORM ELEMENTS
   ===================================================== */
.form-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; color: var(--brown); }
.small-note { font-size: 0.95rem; opacity: 0.86; margin-bottom: 14px; }

.form-label { font-weight: 700; margin-bottom: 6px; color: var(--brown); }

/* Inputs: keep white so contrast with yellow is good */
input, select, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(90,45,10,0.18);
  background: #ffffff;
  text-align: center;
  font-size: 1rem;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--gold) 65%, white 35%);
  box-shadow: 0 12px 28px rgba(212,163,74,0.22);
}

/* Grid jam */
.jam-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 12px 0; }
@media (max-width: 480px) { .jam-grid { grid-template-columns: 1fr; } }

/* =====================================================
   3D BUTTONS — primary and ghost
   ===================================================== */

/* base button styles */
.btn {
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  min-width: 140px;
  border: none;
  position: relative;
  transition: transform .12s ease, box-shadow .12s ease;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

/* Primary - 3D look with inner highlight */
.btn-primary {
  color: #3a2508;
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 75%, white 25%), var(--gold-dark));
  box-shadow:
    0 18px 36px rgba(193,110,25,0.18),    /* outer shadow */
    inset 0 2px 0 rgba(255,255,255,0.35);  /* inner light */
  border: 1px solid rgba(190,120,30,0.18);
}

/* glossy top sheen */
.btn-primary::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 6px;
  height: 42%;
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.12));
  border-radius: 10px;
  pointer-events: none;
  opacity: 0.95;
  transform: translateZ(0);
}

/* subtle bottom edge */
.btn-primary::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  height: 10%;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.02));
  border-radius: 8px;
  pointer-events: none;
}

/* hover & active interactions */
.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(193,110,25,0.22); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 8px 18px rgba(0,0,0,0.12); transition: transform .06s ease; }

/* Ghost button (outlined 3D) */
.btn-ghost {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.92));
  color: var(--brown);
  border: 1px solid rgba(90,45,10,0.16);
  box-shadow: 0 10px 24px rgba(90,45,10,0.06);
}
.btn-ghost:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(90,45,10,0.1); }
.btn-ghost:active { transform: translateY(0); }

/* =====================================================
   Alerts + footer
   ===================================================== */
.alert { margin-top: 12px; padding: 12px; border-radius: 12px; }
.alert.success {
  background: linear-gradient(180deg, rgba(220,245,220,0.92), rgba(230,250,230,0.9));
  border: 1px solid rgba(34,120,50,0.12);
  color: #145b2c;
}
.alert.error {
  background: linear-gradient(180deg, rgba(255,240,240,0.95), rgba(255,240,240,0.95));
  border: 1px solid rgba(200,120,120,0.12);
  color: #7a1b1b;
}
.footer { margin-top: 18px; opacity: 0.9; color: var(--brown); }

/* responsive tweaks */
@media (max-width: 640px) {
  .logo-glow-wrap { width: 200px; height: 200px; }
  .brand-logo { width: 72%; height: 72%; }
  .center-card { padding-top: 8px; }
  .btn { min-width: 120px; }
}

/* ======================================================
   FONT PRESET — Kombinasi Elegan & Jelas
   ====================================================== */
body { font-family: 'Poppins', 'Philosopher', sans-serif !important; }

/* HEADER TITLE — versi kuat */
.header-text-top .title,
.header-text-top .title * {
  font-family: 'Philosopher', sans-serif !important;
  font-size: 3rem !important;
  font-weight: 900 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;

  background: linear-gradient(90deg, #D4A34A, #b8862b) !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
}

/* Sembunyikan subjudul */
.header-text-top .small-note { display: none !important; }

/* Label & teks kecil */
.form-label, .small-note, .footer { font-family: 'Philosopher', sans-serif !important; }

/* Input teks & dropdown */
input, select, textarea { font-family: 'Philosopher', sans-serif !important; font-weight: 500; }

/* Tombol */
.btn { font-family: 'Philosopher', sans-serif !important; font-weight: 700; letter-spacing: 0.3px; }

/* ======================================================
   MOBILE UPGRADE — Judul “Absensi Dosen” lebih besar
   ====================================================== */
@media (max-width: 480px) {

  .header-text-top .title {
    font-size: 2rem !important; /* lebih besar dari sebelumnya */
    line-height: 1.2;
  }

  .header-text-top .small-note {
    font-size: 1.05rem !important;
  }

  /* Menyesuaikan jarak agar seimbang dengan logo */
  .logo-header { margin-bottom: 4px !important; }

  .logo-glow-wrap {
    margin-top: 4px;
    margin-bottom: 10px;
  }
}

/* ======================================================
   PREMIUM GLOSSY TITLE — ABSENSI DOSEN
   ====================================================== */

/* PREMIUM GOLD TITLE — Absensi Dosen */
.title {
  font-family: 'Philosopher', sans-serif !important;
  font-size: 2rem !important;
  font-weight: 900 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;

  /* efek warna emas */
  background: linear-gradient(90deg, #D4A34A, #b8862b);
  background-clip: text;
-webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

  /* efek glow halus */
  text-shadow: 0 6px 14px rgba(0,0,0,0.22);

  margin-bottom: 6px;
}
/* GOLD OUTLINE GLOW — Absensi Dosen */
.title {
    font-family: 'Philosopher', sans-serif !important;
    font-size: 3.2rem !important;
    font-weight: 900 !important;
    letter-spacing: 2.5px !important;
    text-transform: uppercase !important;

    color: #ffffff !important; /* teks putih jelas */

    /* Outline emas + glow */
    text-shadow:
        /* garis outline emas */
        0 0 1px #D4A34A,
        0 0 2px #302209,
        0 0 3px #000000,
        0 0 4px #000000,

        /* glow lembut sekitar outline */
        0 0 6px rgba(212,163,74,0.6),
        0 0 12px rgba(212,163,74,0.4);

    margin-bottom: 10px;
}
/* =========================================
   SUPER RAPAT — Title ↔ Form Absensi
   ========================================= */

/* HAPUS hampir semua jarak bawah judul */
.title {
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
    line-height: 1 !important;
}

/* Bagian berikutnya (form) rapatkan total */
.form-title {
    margin-top: 0px !important;
    padding-top: 0px !important;
}

/* Hapus JARAK ANTAR BLOK DI DALAM CARD */
.center-card > * {
    padding-top: 6px !important;     /* dari 22px → 6px */
    padding-bottom: 6px !important;
}

/* Block PERTAMA card (judul + logo) dibuat super rapat */
.center-card > *:first-child {
    padding-bottom: 0px !important;
    margin-bottom: 0px !important;
}

/* Block KEDUA (Form Absensi) dipaksa nempel */
.center-card > *:nth-child(2) {
    margin-top: 0px !important;
    padding-top: 0px !important;
}
