/* circle.css - Ultimate Cyber Government Style (Standard Edition) */

:root {
  --navy-dark: #060b1a;
  --navy-panel: #0a1631;
  --gold-main: #D4AF37;
  --gold-soft: #f1d279;
  --cyan-accent: #00d4ff;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
}

body {
  background: radial-gradient(circle at center, #0a1631 0%, var(--navy-dark) 100%);
  color: white;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Upload Loader Overlay */
.upload-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 11, 26, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  animation: fadeIn 0.3s ease;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(212, 175, 55, 0.1);
  border-top: 5px solid var(--gold-main);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.loader-text {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  font-family: 'Poppins', sans-serif;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px;
  min-height: 100vh;
  box-sizing: border-box;
  background-color: #050b1a; /* Navy yang lebih deep */
}

/* --- JUDUL ATAS --- */
.main-header {
  text-align: center;
  margin-bottom: 5px;
  animation: fadeInDown 0.8s ease;
}

.main-header h1 {
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-main);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  margin: 0 0 5px 0;
}

.main-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 2px 0;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 1px;
  
  /* Efek Gradasi Emas Metallic */
  background: linear-gradient(
      to bottom, 
      #ffffff 0%, 
      #f1d279 40%, 
      #D4AF37 60%, 
      #a67c00 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  
  /* Bayangan agar teks lebih 'pop out' */
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.5));
  animation: glowText 3s ease-in-out infinite alternate;
}

.title-underline {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-main), transparent);
    margin: 8px auto;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

@keyframes glowText {
  from { text-shadow: 0 0 10px rgba(212, 175, 55, 0.2); }
  to { text-shadow: 0 0 20px rgba(212, 175, 55, 0.6); }
}

/* --- LINGKARAN TENGAH (4 MENU) --- */
.menu-container {
  width: min(90vw, 420px);
  margin: -15px 0;
  transform: scale(0.85);
  filter: drop-shadow(0 0 30px rgba(0,0,0,0.5));
}

.menu-svg { 
  overflow: visible; 
}

.segment { 
  fill: #152238; 
  stroke: var(--navy-dark); 
  stroke-width: 4; 
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
  cursor: pointer; 
}

.menu-icon, .fa-icon {
  fill: var(--gold-main) !important;
  color: var(--gold-main) !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  transition: all 0.3s ease;
  font-size: 24px;
  text-anchor: middle;
  pointer-events: none;
}

.menu-text { 
  fill: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  text-anchor: middle;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

.menu-group {
  cursor: pointer;
  outline: none;
}

.menu-group:hover .segment { 
  fill: #1e3152;
  stroke: var(--cyan-accent);
  filter: url(#neon-glow);
}

.menu-group:hover .menu-icon, 
.menu-group:hover .fa-icon {
  fill: #ffffff !important;
  filter: drop-shadow(0 0 8px var(--gold-main));
}

/* --- LOGO TENGAH --- */
.logo-fit { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; border-radius: 50%; }
.logo-fit img { width: 85%; height: auto; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3)); }
@keyframes orbit-pulse { 0% { r: 58; opacity: 0.8; } 100% { r: 65; opacity: 0; } }
.orbit { animation: orbit-pulse 2s infinite ease-out; }

/* --- MENU BAWAH (3 KOLOM) --- */
.bottom-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 500px;
  margin-top: 5px;
}

.nav-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 15px 5px;
  text-align: center;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-card i {
  color: var(--gold-main) !important;
  font-size: 1.3rem;
  margin-bottom: 8px;
  display: block;
}

.nav-card span {
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-card:hover {
  border-color: var(--gold-main);
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-3px);
}

/* --- NOTIFICATION SYSTEM --- */
.notif-badge {
  position: absolute;
  top: 5px;
  right: 25%;
  background: #ff3b3b;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  border: 2px solid var(--navy-dark);
  box-shadow: 0 0 10px rgba(255, 59, 59, 0.5);
  z-index: 10;
}

.notif-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: rgba(10, 22, 49, 0.95);
    border: 1px solid #D4AF37;
    border-radius: 12px;
    z-index: 9999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.notif-header {
  padding: 12px;
  font-weight: bold;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--gold-main);
}

.notif-item {
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: 0.3s;
  text-align: left;
}

.notif-item:hover { background: rgba(255,255,255,0.05); }
.notif-item.unread { border-left: 3px solid var(--cyan-accent); }
.notif-item i { font-size: 1rem !important; margin: 0 !important; }
.notif-item p { margin: 0; font-size: 0.8rem; line-height: 1.3; color: #ddd; }
.notif-item small { font-size: 0.7rem; color: #888; }

.notif-footer {
  padding: 10px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gold-main);
  cursor: pointer;
}

/* --- GOOGLE AUTH & USER PROFILE --- */
.auth-box {
  margin-bottom: 15px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), transparent);
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--gold-main);
  margin-top: 5px;
  animation: fadeInUp 0.5s ease;
}

.user-profile img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid var(--gold-main);
}

.user-profile span { font-weight: 600; font-size: 0.9rem; }
.user-profile small { opacity: 0.7; font-size: 0.75rem; }

/* --- FORM COMPONENTS --- */
.form-card {
  background: #0a1631;
  backdrop-filter: blur(25px);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 20px;
  padding: 30px;
  width: 100%;
  max-width: 800px;
  margin-top: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Row Status Utama (Statistik) */
.status-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.status-box {
    padding: 25px 10px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
}

.status-box::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
}
.status-pending::before { background: #ffc107; }
.status-return::before { background: #17a2b8; }
.status-accept::before { background: #28a745; }
.status-reject::before { background: #dc3545; }

.status-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}
.status-value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

/* Grid Layanan */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.service-item {
    background: rgba(212, 175, 55, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 15px;
    padding: 25px 10px;
    text-align: center;
}
.service-val {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 5px;
}
.service-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: #D4AF37;
    letter-spacing: 1px;
}

/* --- FORM ELEMENTS --- */
.input-group select option {
  background-color: #0a1631 !important;
  color: white !important;
}

.input-group input:focus, .input-group select:focus {
  border-color: var(--cyan-accent);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(72%) sepia(15%) saturate(1454%) hue-rotate(1deg) brightness(95%) contrast(89%);
  cursor: pointer;
}

/* Custom Select2 Dark Theme */
.select2-container--default .select2-selection--multiple {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    padding: 5px !important;
    min-height: 45px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--gold-main) !important;
    border: none !important;
    color: var(--navy-dark) !important;
    font-weight: 600;
    border-radius: 4px;
    padding: 2px 8px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: var(--navy-dark) !important;
    margin-right: 5px;
}

.select2-dropdown {
    background-color: #0a1631 !important;
    border: 1px solid var(--gold-main) !important;
    color: white !important;
    z-index: 9999;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--gold-main) !important;
    color: var(--navy-dark) !important;
}

.select2-results__option {
    background-color: #0a1631;
    color: white;
}

.select2-search__field {
    color: white !important;
}

.select2-container--default .select2-results__group {
    color: var(--cyan-accent);
    background-color: rgba(255,255,255,0.05);
}

/* --- MODAL BASE --- */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: rgba(10, 22, 49, 0.9);
    margin: 5% auto;
    padding: 20px;
    border: 1px solid var(--gold-main);
    width: 80%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
    animation: zoomIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.modal-header h3 { color: var(--gold-main); margin: 0; font-size: 1.2rem; }

.close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-btn:hover { color: white; }

.modal-footer p {
    font-size: 0.8rem;
    color: #888;
    margin-top: 15px;
    font-style: italic;
}

/* --- CAPTCHA SECTION --- */
.captcha-section {
  display: flex;
  justify-content: center;
  margin: 20px 0 10px;
  grid-column: 1 / -1;
}

/* --- UTILS --- */
.hidden { display: none !important; }

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

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

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .status-grid-container, .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .site-wrapper { 
    padding: 30px 15px 25px; 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
  }
  .site-wrapper:has(.requests-container:not(.hidden)) {
    justify-content: flex-start;
    gap: 15px;
  }
  .main-header {
    margin-bottom: 0;
  }
  .main-header h2 { 
    font-size: 1.5rem; 
  }
  .menu-container { 
    width: 100%;
    transform: scale(1); 
    margin: 0 auto; 
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
  }
  .menu-svg {
    width: 100% !important;
    height: auto !important;
    max-width: min(90vw, 440px);
  }
  .menu-text { 
    font-size: 11px; 
  }
  .bottom-nav {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    gap: 8px;
  }
  .nav-card {
    padding: 10px 5px;
  }
  .nav-card span { 
    font-size: 0.65rem; 
    letter-spacing: 0.5px;
  }
  .status-grid-container, .services-grid {
    grid-template-columns: 1fr;
  }
  .status-value { font-size: 2.2rem; }
  .requests-container {
    width: 95%;
    margin-top: 15px;
    padding: 15px;
  }
  .request-title {
    max-width: 180px;
  }
}

/* NOTIFICATION ACTION BUTTONS */
.notif-action-btn {
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 5px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 10;
}

.notif-action-btn i {
    margin-right: 6px;
}

.btn-approved {
    background: #D4AF37;
    color: #000 !important;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.btn-approved:hover {
    background: #f1d279;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.5);
}

.btn-revisi {
    background: #007bff;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.btn-revisi:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.5);
}

.notif-item {
    position: relative;
}

.notif-item a {
    position: relative;
    z-index: 100; /* Ensure links are above other elements */
    pointer-events: auto !important; /* Force pointer events */
}

/* USER REQUESTS SECTION */
.requests-container {
    width: 100%;
    max-width: 500px;
    margin-top: 20px;
    background: rgba(10, 22, 49, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 20px;
    animation: fadeInUp 0.8s ease;
}

.requests-container.hidden {
    display: none;
}

.section-header {
    font-size: 0.9rem;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.requests-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.request-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.request-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
}

.request-tipe {
    font-size: 0.65rem;
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.request-title {
    font-size: 0.85rem;
    margin: 4px 0;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.request-date {
    font-size: 0.7rem;
    color: #888;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 80px;
}

.status-pending { background: rgba(136, 136, 136, 0.2); color: #888; }
.status-revisi { background: #007bff; color: #fff; box-shadow: 0 0 10px rgba(0, 123, 255, 0.3); }
.status-approved { background: rgba(40, 167, 69, 0.2); color: #28a745; border: 1px solid #28a745; }
.status-rejected { background: rgba(220, 53, 69, 0.2); color: #dc3545; }
.status-expired { background: rgba(255, 193, 7, 0.2); color: #ffc107; }

.download-link-small {
    font-size: 0.65rem;
    color: #D4AF37;
    text-decoration: underline;
    display: block;
    text-align: center;
}

/* Responsive adjustment for shorter screens to prevent vertical scrollbar (desktop only) */
@media (min-width: 769px) and (max-height: 850px) {
  .site-wrapper {
    padding: 5px 15px;
  }
  .main-header h1 {
    font-size: 0.75rem;
    margin: 0;
  }
  .main-header h2 {
    font-size: 1.6rem;
  }
  .title-underline {
    margin: 5px auto;
  }
  .menu-container {
    transform: scale(0.78);
    margin: -10px 0;
  }
  .bottom-nav {
    margin-top: 5px;
  }
  .nav-card {
    padding: 8px 5px;
  }
}