/* ========================================
   1. NAVIGATION (Menu Atas & Utama)
   ======================================== */

/* Navigasi Utama (Navbar) */
#nav-main {
  background: #400000;
  background: linear-gradient(0deg, rgba(64, 0, 0, 1) 0%, rgba(201, 0, 0, 1) 35%, rgba(97, 2, 2, 1) 100%);
  border: none;
  padding-bottom: 2px !important;
}

#nav-main a {
  font-size: 14px !important;
  text-shadow: 0px 1px 2px #000;
  font-weight: 600;
}

/* Hover Link di Nav Main */
#nav-main .nav-main a:hover {
  background: none;
  color: yellow;
}

/* Dropdown Menu */
#nav-main .sub-menu,
#nav-main .children {
  background: #a11f02;
  position: absolute;
  float: left;
  font-weight: normal;
  box-shadow: none;
  z-index: 990;
  display: none;
  border: none;
}

/* Item Menu Aktif (Kosong, siap diisi) */
#nav-main li.current-menu-item > a,
#nav-main li.current_page_item > a {
  
}

/* Top Bar */
#top-bar, #bottom-bar {
  background-color: #610202;
  border: none;
}

#nav-top a {
  font-size: 13px !important;
  text-shadow: 0px 1px 1px #000;
}

#nav-top, #top-bar-info {
  padding-top: 4px;
}

#top-bar-info {
  color: #fffceb;
  padding: 2px 8px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-shadow: 0px 1px 5px #000;
  font-family: "Roboto Condensed", Sans-serif;
  margin-top: 5px;
}

/* Menu Top Spesifik */
#menu-tops.nav-top a {
  padding: 2px 10px;
  font-weight: 500;
  color: #fff;
}

#menu-tops.nav-top a:hover {
  color: #59d600;
}

/* ========================================
   2. HEADER & WIDGET AREA
   ======================================== */

#nav-main,
#top-bar,
#header {
  border: 0px solid #ad0303;
}

#site-title a {
  color: #fff;
}

#widgets-wrap-below-menu {
  background-color: #f5f5f5;
  width: 100%;
  text-align: center;
}

#widgets-wrap-footer {
  background-color: #fff;
}

/* ========================================
   3. KONTEN POST & HALAMAN
   ======================================== */

.entry-title {
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.blog-view,
.single-view,
.author-info,
.archive-info,
.form-404 {
  word-wrap: anywhere;
  text-align: center;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-shadow: 0 0 4px #e6ebed;
}

#container {
  border: 0px solid #990000;
  box-shadow: none !important;
}

/* ========================================
   4. SIDEBAR & VERTICAL MENU
   ======================================== */

.frontier-widget {
  border: none;
}

.widget-header.frontier-widget.widget_text {
  margin: 0 auto;
  padding: 0;
}

.widget-title {
  border: 3px outset #fff;
  padding: 5px;
  padding-top: 7px;
  background-color: #ce0000 !important;
  color: #fff;
  margin: 0;
  font-size: 15px;
  text-shadow: none;
  font-weight: 500;
}

.costumme {
  border: 3px outset #fff;
  padding: 4px;
  background-color: #eee !important;
  color: #000;
  margin: 0;
  text-shadow: none;
  font-weight: 600;
}

.vertical-menu a {
  font-family: "Roboto Condensed", Sans-serif;
  color: #000;
  display: block;
  padding-left: 5px;
  margin: 0;
  text-decoration: none;
  font-size: 14px;
  border: 0px solid;
  text-align: left;
  font-weight: 500;
  background-color: #fff;
}

.vertical-menu a:hover {
  background: -webkit-linear-gradient(top, #fcf2f2 0%, #fad9d9 100%);
}

.main-vertical-menu a {
  font-family: "Roboto Condensed", Sans-serif;
  color: #000;
  display: block;
  padding-left: 5px;
  margin: 0;
  text-decoration: none;
  font-size: 14px;
  border: 0px solid;
  text-align: left;
  font-weight: 500;
  background-color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.main-vertical-menu li, .vertical-menu li {
  padding: 2px;
}

.main-vertical-menu a:hover {
  background: -webkit-linear-gradient(top, #c4c4c4 0%, #8f8f8f 100%);
  color: #fff;
}

/* ========================================
   5. GLOBAL LINKS
   ======================================== */

a:link {
  text-decoration: none;
}

a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

a:active {
  text-decoration: none;
}

/* ========================================
   6. FORM & INPUT STYLE
   ======================================== */

/* Input Fields */
#myInput, #myInputs {
  border: 1px solid #e3f4fc !important;
  border-radius: 5px;
}

#meInput {
  border: 1px solid #c9c9c9 !important;
  border-radius: 5px;
}

.data-inputs {
  width: 100% !important;
  padding: 2px;
}

.tabinput {
  height: 30px !important;
  font-family: "Roboto Condensed", Sans-serif;
  font-size: 12px;
  width: 100% !important;
  padding: 4px;
}

.form-control {
  font-size: 12px;
}

/* Layout Form */
.overflow-auto {
  overflow-y: scroll;
  height: 320px;
}

.overflow-autos {
  overflow-y: scroll;
  height: 340px;
}

.input-group.search {
  width: 100%;
  margin-bottom: 10px;
}

.form-group-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  align-items: center;
}

.form-inline {
  display: flex;
  gap: 4px;
  align-items: center;
}

.form-inline input[type="text"],
.form-inline input[type="password"] {
  padding: 4px 6px;
  border: 1px solid #dedede;
  border-radius: 4px;
  max-width: 100px;
}

.form-inline input[type="search"] {
  padding: 4px 6px;
  border: 1px solid #dedede;
  border-radius: 4px;
  max-width: 100%;
}

.form-inline input[type="submit"],
.form-inline button {
  padding: 4px 6px;
  border: 1px solid #dedede;
  border-radius: 4px;
  background-color: gold;
  cursor: pointer;
  font-weight: normal;
}

/* Tombol Umum */
.btn.btn-danger.dropdown-toggle.custom {
  font-size: 12px;
  letter-spacing: -1px;
}

.btn-daftar {
  padding: 4px 6px;
  display: block;
  border: none;
  border-radius: 4px;
  background-color: #ce0000;
  cursor: pointer;
  font-weight: normal;
  color: white;
}

.btn-daftar:hover {
  background-color: #218838;
  text-decoration: none;
  color: white;
}

/* Paito Search Widget */
.paito-search-widget {
  background-color: #f0f0f0;
  padding: 8px;
  border-radius: 4px;
}

form.linkx-menu-paito {
  border-radius: 5px;
  margin-bottom: 10px;
  margin-top: 10px;
}

form.linkx-menu-paito select {
  padding: 4.2px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
}

.linkx-menu-paitos {
  border-radius: 5px;
  margin-bottom: 5px;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ========================================
   7. TAB FORM (Login/Register)
   ======================================== */

.tab-form {
  max-width: 400px;
  margin: 30px auto;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 5px;
  padding: 20px;
  font-family: sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-form h3 {
  margin-bottom: 15px;
  text-align: center;
}

.tab-form .tab-buttons {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
}

.tab-form .tab-buttons .tab-link {
  flex: 1;
  padding: 10px;
  background: #eee;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px 5px 0 0;
  transition: background 0.3s;
}

.tab-form .tab-buttons .tab-link.active {
  background: #a80000;
  color: #fff;
}

.tab-form .tab-content {
  display: none;
}

.tab-form .tab-content.active {
  display: block;
}

.tab-form input[type="text"],
.tab-form input[type="email"],
.tab-form input[type="password"] {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 12px;
  border: 1px solid #dedede;
  border-radius: 4px;
  box-sizing: border-box;
}

.tab-form input[type="submit"] {
  width: 100%;
  padding: 10px;
  background-color: #28a745;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.tab-form input[type="submit"]:hover {
  background-color: #218838;
}

.tab-form label {
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
}

.login-benefits-box {
  background-color: #f7f7f7;
  border: 1px solid #dedede;
  padding: 16px;
  margin-top: 20px;
  border-radius: 4px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-size: 15px;
  text-align: left;
  margin-bottom: 20px;
}

.login-benefits-box h4 {
  margin-top: 0;
  color: #a80000;
  font-size: 18px;
  text-align: center;
}

.login-benefits-box ul {
  padding-left: 18px;
  margin-bottom: 12px;
}

.login-benefits-box ul li {
  margin-bottom: 6px;
}

.login-benefits-box p {
  text-align: left;
  margin: 0;
  font-weight: bold;
}

/* ========================================
   8. KOMENTAR AREA
   ======================================== */

#comment-header,
#respond,
#no-comments,
.comment-body {
  border-radius: 4px;
  border: 1px solid #ccc;
  box-shadow: 0 0 4px #e6ebed;
}

.navbar-toggler {
  text-align: right !important;
  border: none;
}

.comment-nav {
  margin-top: 10px;
}

a.comment-reply-link,
.link-next a,
.link-prev a {
  color: black;
  box-shadow: none;
  border: 1px solid #dedede;
  border-radius: 2px;
  background: #ededed;
}

a.comment-reply-link:hover,
.link-next a:hover,
.link-prev a:hover {
  background: #f52727;
  color: white !important;
}

.cld-like-dislike-wrap .cld-common-wrap {
  margin-right: 10px;
  border: 1px solid #dedede;
  border-radius: 5px;
  text-align: center;
  background: #dedede;
}

a.cld-like-dislike-trigger {
  color: #6b6b6b;
}

a.cld-like-dislike-trigger:hover {
  color: #ff0000;
}

.cld-like-count-wrap.cld-count-wrap {
  color: #ff0000;
}

textarea#comment {
  border-radius: 4px;
  border: 1px solid #ccc;
  box-shadow: 0 0 4px #e6ebed;
}

/* ========================================
   9. PAGINATION
   ======================================== */

.custom-pagination {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.custom-pagination li {
  display: inline;
}

.custom-pagination a.page-link {
  padding: 6px 12px;
  border: 1px solid #e3f4fc;
  border-radius: 50%;
  text-decoration: none;
  color: #943300;
  background-color: #fff;
  transition: all 0.3s ease;
  margin: -8px;
  font-weight: 600;
}

.custom-pagination a.page-link:hover {
  background-color: #943300;
  color: white;
  border-color: #943300;
}

.custom-pagination a.page-link.active {
  background-color: #943300;
  color: white;
  border-color: #943300;
  pointer-events: none;
}

.custom-pagination .page-dots {
  padding: 6px 12px;
  color: #999;
}

/* ========================================
   10. RUNNING TEXT & RESULT BOX
   ======================================== */

.running-container {
  width: 100%;
  overflow: hidden;
  padding: 0;
}

.running-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee 800s linear infinite, fadeIn 1s ease-out;
}

.running-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.result-box {
  display: inline-flex;
  align-items: center;
  background: #f0f0f0;
  padding: 4px 16px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  color: #616161;
  font-weight: bold;
  margin-right: 10px;
}

.status-label.status-new {
  background: red;
  color: #fff;
  padding: 4px 8px;
  border-radius: 5px;
  margin-right: 10px;
  font-weight: bold;
}

.status-label.status-old {
  background: gray;
  color: #fff;
  padding: 4px 8px;
  border-radius: 5px;
  margin-right: 10px;
  font-weight: bold;
}

.result-date {
  margin-right: 10px;
  font-size: 14px;
}

.result-set {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 25px;
}

.result-label {
  background: red;
  color: white;
  padding: 4px 10px;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.result-numbers-wrap {
  background: linear-gradient(to right, #e8cf7d, #fcf0c5);
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.number-balll {
  width: 28px;
  height: 28px;
  background: radial-gradient(circle at 30% 30%, #fff4c4, #d4af37);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: #8c000d;
  box-shadow: inset -1px -2px 5px rgba(0, 0, 0, 0.4);
}

/* ========================================
   12. MISC (Elemen Lain-lain)
   ======================================== */

.textwidget .fas,
.textwidget .far,
.textwidget .fab {
  color: #e42727;
  font-size: 16px;
}

.flag-below-title img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #ccc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

img.default-flag {
  width: 80px;
  height: 80px;
}

div.col.alert.alert-success.text-center {
  background: none;
  padding: 0px;
  border: none;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========================================
   13. RESPONSIVE (Mobile View)
   ======================================== */

@media (min-width: 200px) and (max-width: 767px) {
  form.linkx-menu-paito select,
  form.menus-paitos, div.menus-paitos {
    font-size: smaller;
    max-width: 100px;
    gap: 10px;
  }

  select.menus-paitos {
    font-size: smaller;
    max-width: 100px;
  }

  .blog-view, .single-view, .author-info, .archive-info, .form-404 {
    border-style: hidden;
  }

  #main {
    margin: 0;
    padding: 0;
    border-style: hidden;
  }
}

/* Override khusus untuk overflow auto di mobile (di akhir agar prioritas tinggi) */
@media (min-width: 200px) and (max-width: 767px) {
  .overflow-auto {
    height: 262px;
  }
}