/* =========================================
   1. STYLE UTAMA (NAVBAR, FOOTER, MODAL)
   Versi: Anti-Konflik dengan CSS 1
   Prefix: .daop- (Daerah Operasi/Dashboard)
   ========================================= */

/* --- SPA UTILITY --- */
.view-section {
  display: none;
  animation: fadeIn 0.5s;
}


#dashboard-view {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Tombol Kembali */
.back-button-container {
  padding: 10px 0;
  margin-bottom: 20px;
  text-align: left;
}

.btn-back {
  background-color: #eee;
  color: #333;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: bold;
  border: 1px solid #ccc;
  cursor: pointer;
}
.btn-back:hover { background-color: #ddd; }



/* --- MAIN CONTENT (Renamed .container to .daop-container) --- */
.daop-container {
  max-width: 1800px;
  margin: 0px auto;
  padding: 0 5px;
  text-align: center;
}

.daop-page-title {
    color: #051545;
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-transform: uppercase;
    border-bottom: 3px solid #ff5722;
    display: inline-block;
    padding-bottom: 10px;
}

/* Grid Tombol Dashboard */
.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  margin-bottom: 50px;
}

/* --- MODAL (Renamed to .daop-modal-*) --- */
.daop-modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
}

.daop-modal-content-box {
  background-color: #fefefe;
  width: 90%;
  max-width: 1000px;
  height: 80%;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  overflow: hidden;
  animation: fadeIn 0.3s;
}

.daop-close-btn {
  color: #aaa;
  position: absolute;
  right: 15px;
  top: 5px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
}
.daop-close-btn:hover { color: #000; text-decoration: none; }

iframe.modal-frame {
  width: 100%;
  height: 100%;
  border: none;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}

.daop-modal-header {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}
.daop-modal-header h2 { color: #051545; font-size: 20px; margin: 0; }
.daop-modal-header h3 { color: #051545; font-size: 16px; margin: 5px 0 0; font-weight: normal; }

/* Layout Flow Container */
.flow-container {
  display: grid;
  grid-template-columns: 2fr 3fr 0.5fr 0.5fr;
  gap: 15px;
  align-items: center;
}

.col-header {
  text-align: center;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e9ecef;
  color: #051545;
  font-size: 15px;
  font-weight: bold;
  padding: 8px 5px;
  border-radius: 5px;
  height: 100%;
  border-bottom: 2px solid #051545;
}

.flow-row {
  display: contents;
}
/* Style tambahan flow-row hanya jika support */
.middle-wrapper { border-left: 1px dashed #ccc; padding-left: 10px; }
.media-col { border-left: 1px dashed #ccc; border-right: 1px dashed #ccc; }

/* --- BUTTON STYLES (Renamed .btn to .daop-btn) --- */
.daop-btn {
  display: block;
  width: 100%;
  padding: 10px 5px;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  border-radius: 20px; /* Bentuk bulat lonjong */
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  cursor: pointer;
  margin-bottom: 10px;
  text-decoration: none;
  transition: transform 0.2s;
  color: #fff;
  white-space: nowrap !important;
  min-width: fit-content;
}
.daop-btn:hover { transform: scale(1.02); filter: brightness(1.1); }

.btn-yellow { background: linear-gradient(to bottom, #ffcc00, #ff9900); color: #000; border: 1px solid #e6b800; }
.btn-cyan { background: linear-gradient(to bottom, #33ccff, #0099cc); color: #fff; }
.btn-blue { background: linear-gradient(to bottom, #0055aa, #003366); color: #fff; }

/* Grouping Wrappers */
.left-group, .middle-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 5px;
}
.middle-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

/* Icons */
.action-icons { display: flex; gap: 5px; }
.icon-box {
  width: 30px; 
  height: 30px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 25px; 
  color: #051545; 
  cursor: pointer; 
  margin-bottom: 7px;
}
.icon-box:hover { color: #ff5722; }

.media-col, .upt-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.big-icon {
  font-size: 27px;
  color: #051545;
  text-align: center;
  cursor: pointer;
}
.big-icon span {
  display: block;
  font-size: 12px;
  font-weight: bold;
  margin-top: 2px;
  font-family: Arial, sans-serif;
}
.big-icon:hover { color: #007bff; }

/* Video Overlay */
.video-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 99999 !important;
  align-items: center;
  justify-content: center;
}

.video-box {
  position: relative;
  width: 90%;
  max-width: 800px;
  background: #000;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  text-align: center;
}

.video-title { color: #fff; margin-bottom: 10px; font-size: 16px; font-weight: bold; }

.close-video-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #ff0000;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.close-video-btn:hover { background: #cc0000; }

/* Dropdown Menu */
.dropdown-parent { position: relative; display: inline-block; }
.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1000;
  border-radius: 5px;
  top: 40px;
  left: 0;
  padding: 10px 0;
  text-align: left;
}
.dropdown-menu::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 20px;
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent #ffffff transparent;
}
.dropdown-menu a {
  color: #333 !important;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #eee;
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background-color: #f5f5f5; color: #000 !important; }
.dropdown-parent:hover .dropdown-menu { display: block; }
.dropdown-parent:hover .arrow-down { transform: rotate(180deg); transition: 0.3s; }

/* RESPONSIVE (Header & Layout) */
@media screen and (max-width: 768px) {
  /* .daop-top-bar { flex-direction: column; height: auto; padding: 15px; gap: 15px; }
  .left-section { flex-direction: column; width: 100%; gap: 15px; text-align: center; }
  .daop-logo { margin-right: 0; justify-content: center; font-size: 20px; }
  .vertical-divider { display: none; }
  .daop-nav-links { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .right-section { width: 100%; justify-content: space-evenly; }
  .breadcrumbs-bar { text-align: center; } */

  .daop-container { padding: 0 10px; margin-top: 20px; }
  .button-grid, .about-grid { grid-template-columns: 1fr; }
  .daop-modal-content-box { width: 95%; height: 90%; }
  .video-box { width: 95%; }

  .flow-container {
      display: grid;
      grid-template-columns: 160px 280px 70px 50px; 
      gap: 10px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 20px;
      align-items: start;
      justify-content: start;
  }
  .col-header { display: flex; font-size: 14px; }
  .flow-row { display: contents; }
  .left-group, .middle-wrapper, .media-col, .upt-col {
      width: 100% !important;
      margin: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding-bottom: 15px;
      margin-bottom: 5px;
      min-height: 60px;
  }
  .media-col i { padding-top: 15px; }
  .daop-btn { font-size: 11px; padding: 6px 8px; white-space: normal !important; }
  .action-icons { display: inline-flex; gap: 3px; }
  .icon-box { font-size: 20px; padding: 2px; }
  .big-icon { font-size: 20px; }
  .big-icon span { font-size: 10px; }
}

/* =========================================
   2. STYLE HALAMAN PENILAIAN & UJI PETIK (SHARED STYLES)
   Renamed Cards to .daop-card-*
   ========================================= */

.daop-body-bg {
    background-color: #f4f6f9; 
    padding: 12px;
    font-family: Arial, sans-serif;
}

.title-wrapper {
    text-align: center;
    font-weight: bold;
    color: #051545;
    display: table; 
    margin: 0 auto 30px auto; 
    font-size: 1.8rem;
    text-transform: uppercase;
    border-bottom: 4px solid #ff5722;
    padding-bottom: 10px;
    margin-top: 20px;
}

.role-pill {
  background: white;
  border: 2px solid #dfe6e9;
  color: #636e72;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
}
.role-pill:hover { border-color: #b2bec3; color: #2d3436; transform: translateY(-2px); }
.role-pill.active {
  background-color: #051545;
  border-color: #051545;
  color: white;
  box-shadow: 0 4px 10px rgba(5, 21, 69, 0.3);
}

.filter-wrapper {
  padding-top: 10px;
  padding-bottom: 10px;
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  border-top: #636e72 2px solid;
  border-bottom: #636e72 2px solid;
}
.filter-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 5px;
  scrollbar-width: thin;
  -ms-overflow-style: none;
}
.filter-scroll::-webkit-scrollbar { height: 6px; display: none; }

.region-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-bottom: 4px solid #051545; 
    color: #051545;
    padding: 18px 28px;
    font-weight: bold;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    white-space: nowrap; 
    flex-shrink: 0;
}
.region-btn:hover, .region-btn.active {
  background-color: #051545;
  color: white;
  border-bottom-color: #ff5722; 
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.region-btn.sumatera { border-bottom-color: #d9534f; color: #a94442; }
.region-btn.sumatera:hover, .region-btn.sumatera.active { background-color: #d9534f; color: white; border-bottom-color: #051545; }

.region-btn.lrt { border-bottom-color: #5bc0de; color: #31708f; }
.region-btn.lrt:hover, .region-btn.lrt.active { background-color: #5bc0de; color: white; border-bottom-color: #051545; }

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
}

/* --- Renamed .card to .daop-card --- */
.daop-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-bottom: 4px solid; 
  padding: 5px 5px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80px;
  text-decoration: none; 
  cursor: pointer;
}

.card-daop { border-bottom-color: #051545; color: #051545; }
.card-daop:hover { background-color: #051545; color: white; border-bottom-color: #ff5722; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

.card-divre { border-bottom-color: #d9534f; color: #a94442; }
.card-divre:hover { background-color: #d9534f; color: white; border-bottom-color: #051545; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

.card-lrt { border-bottom-color: #5bc0de; color: #31708f; }
.card-lrt:hover { background-color: #5bc0de; color: white; border-bottom-color: #051545; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

.card-code { font-size: 1rem; font-weight: 550; margin-bottom: 8px; display: block; color: inherit; }
.card-name { font-size: 0.95rem; line-height: 1.2; font-weight: 600; color: inherit; }

/* =========================================
   3. STYLE BERANDA (LANDING PAGE)
   Renamed classes like .hero to .daop-hero
   ========================================= */

.body-beranda {
  background-color: #f4f6f9;
  color: #333;
  margin : 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.daop-hero {
  height: 65vh;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 58, 143, 0.75), rgba(0, 0, 0, 0.55));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0px;
}
.hero-overlay h1 { color: #ffffff; font-size: 2.2rem; line-height: 1.3; margin-bottom: 12px; }
.hero-overlay p { color: #eaeaea; font-size: 1rem; max-width: 600px; }

/* Override .daop-container specifically for landing page */
.body-beranda .daop-container {
  padding: 50px 20px;
}

.portal-grid {
  max-width: 1150px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.portal-card {
  background-color: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 400px;
}
.portal-card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.portal-card:hover { transform: translateY(-8px); box-shadow: 0 18px 30px rgba(0,0,0,0.2); }

.portal-info {
  background-color: #003a8f;
  color: #ffffff;
  padding: 16px;
  border-top: 4px solid #ff7a00;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.portal-info h3 {
    font-size: 1rem;
    color: white;
}
.portal-info span { font-size: 0.85rem; opacity: 0.9; }

@media (max-width: 768px) {
  .daop-hero { height: 85vh; }
  .hero-overlay h1 { font-size: 1.5rem; }
  .hero-overlay p { font-size: 0.9rem; }
  .portal-card { height: 100%; margin-left: 50px; margin-right: 50px; }
}

a { text-decoration: none; color: inherit; }

.text-portal{
    margin-bottom: 100px;
}