/* ===== Custom Theme for EPrints Repository ===== */

/* Font & dasar */
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f9fa;
  color: #212529;
  line-height: 1.6;
}

/* Navbar */
.navbar { box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.navbar-brand img { max-height: 40px; }
.navbar-dark .navbar-nav .nav-link { color: #fff; font-weight: 500; }
.navbar-dark .navbar-nav .nav-link:hover { color: #d4edda; }

/* Banner Wrapper */
.banner-wrapper {
  background: url("/images/bannernya.jpg") no-repeat center center;
  background-size: cover;
  padding: 100px 0;
  position: relative;
}
.banner-wrapper::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}
.banner { position: relative; z-index: 2; }
.banner h1 { font-weight: 700; color: #fff; }
.banner-content p { color: #f8f9fa; font-size: 1.2rem; }

/* Search Form di Banner */
.search-form { margin-top: 20px; }
.search-form input[type="text"] {
  padding: 10px 15px; border-radius: 25px; border: 1px solid #ccc;
  width: 60%; max-width: 400px;
}
.search-form button {
  border-radius: 25px; margin-left: 10px; padding: 10px 20px;
  background-color: #198754; color: #fff; border: none;
}
.search-form button:hover { background-color: #157347; }

/* Advanced Search Button */
.btn-advanced-search { border-radius: 25px; font-weight: 500; }

/* Judul halaman */
h1, h2, h3 { font-weight: 600; color: #155724; }

/* Footer */
footer { background-color: #f1f1f1; color: #555; font-size: 0.9rem; }
footer img { max-height: 40px; }
footer .row { align-items: center; }

/* Link umum */
a { color: #198754; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Table styling */
table { border-collapse: collapse; }
table th, table td { padding: 0.5rem; border: 1px solid #dee2e6; }

/* Responsif Banner */
@media (max-width: 768px) {
  .banner-wrapper { padding: 60px 20px; background-position: center top; }
  .banner h1 { font-size: 1.8rem; line-height: 1.3; }
  .banner-content p { font-size: 1rem; margin: 0 10px; }
  .search-form input[type="text"] { width: 100%; margin-bottom: 10px; }
  .search-form button { width: 100%; margin-left: 0; }
  h1 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .banner-wrapper { padding: 40px 15px; }
  .banner h1 { font-size: 1.5rem; }
  .banner-content p { font-size: 0.9rem; }
}

/* Navbar & Login box */
.custom-navbar { background-color: rgb(0 131 191) !important; }
.box-login-lang {
  background-color: rgb(180 241 39);
  padding: 10px 15px; border-radius: 8px;
  display: inline-flex; gap: 10px; align-items: center;
  color: #000;
}

/* ===== Form Input ala Sempati ===== */

/* Wrapper field EPrints */
.ep_form_field { margin-bottom: 20px; }
.ep_form_label { font-weight: 600; margin-bottom: 6px; display: block; color: #646464; }

/* Input metadata */
.ep_form_input input[type="text"],
.ep_form_input input[type="password"],
.ep_form_input input[type="email"],
.ep_form_input select,
.ep_form_input textarea {
  width: 100% !important;
  background-color: #f8f8f8 !important;
  border-radius: 6px !important;
  border: 1px solid #e5e5e5 !important;
  padding: 10px 14px !important;
  color: #212529 !important;
}
.ep_form_input input:focus,
.ep_form_input select:focus,
.ep_form_input textarea:focus {
  border-color: #e89980 !important;
  box-shadow: 0 0 0 2px #e89980 !important;
}

/* Select dropdown */
.ep_form_input select {
  background-image: url("data:image/svg+xml;charset=utf8,...");
  background-size: 1.25em; background-repeat: no-repeat;
  background-position: calc(100% - 1em) center;
  height: 3em; padding-right: 3em;
}
.ep_form_input select option { color: #777; background-color: #f5f5f5; }

/* Textarea umum */
.ep_form_input textarea {
  padding: 0.75em 1em;
  min-height: 120px;
  min-width: 300px;
  max-width: 100%;
  overflow: auto;
}

/* Title & Abstract konsisten */
textarea.ep_eprint_title,
textarea.ep_eprint_abstract {
  resize: both !important;      /* bisa resize horizontal & vertical */
  min-height: 200px !important;
  min-width: 300px !important;
  max-width: 100% !important;
  overflow: auto;
  padding: 10px 14px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background-color: #f8f8f8;
  color: #212529;
}

/* Checkbox & Radio */
.ep_form_input input[type="checkbox"],
.ep_form_input input[type="radio"] {
  appearance: none; display: block; float: left;
  margin-right: -2em; opacity: 0; width: 1em; z-index: -1;
}
.ep_form_input input[type="checkbox"] + label,
.ep_form_input input[type="radio"] + label {
  color: #777; cursor: pointer; display: inline-block;
  font-size: 1em; font-weight: 300;
  padding-left: 2.55em; padding-right: 0.75em; position: relative;
}
.ep_form_input input[type="checkbox"] + label:before,
.ep_form_input input[type="radio"] + label:before {
  background: #f8f8f8; border-radius: 6px; border: solid 1px #e5e5e5;
  content: ''; display: inline-block; font-size: 0.8em;
  height: 2.25em; left: 0; line-height: 2.25em;
  position: absolute; text-align: center; top: 0; width: 2.25em;
}
.ep_form_input input[type="checkbox"]:checked + label:before,
.ep_form_input input[type="radio"]:checked + label:before {
  background: #666; border-color: #666; color: #fff;
  content: '\f00c'; /* Font Awesome check */
}
.ep_form_input input[type="radio"] + label:before { border-radius: 100%; }

/* Tombol bar */
.ep_form_button_bar input[type="submit"],
.ep_form_button_bar button {
  padding: 10px 20px; border-radius: 6px;
  background-color: #198754; color: #fff; border: none;
}
.ep_form_button_bar input[type="submit"]:hover,
.ep_form_button_bar button:hover { background-color: #157347; }

/* Placeholder */
::-webkit-input-placeholder { color: #999 !important; opacity: 1.0; }
:-moz-placeholder { color: #999 !important; opacity: 1.0; }
::-moz-placeholder { color: #999 !important; opacity: 1.0; }
:-ms-input-placeholder { color: #999 !important; opacity: 1.0; }

/* ===== Wide screen adjustments ala Sempati ===== */
@media screen and (max-width: 1680px) {
  body, input, select, textarea { font-size: 13pt; }
  .banner-wrapper { padding: 11em 0 15em 0; }
}
