@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&family=SUSE:wght@100..800&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Protest+Guerrilla&display=swap");

:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Poppins", sans-serif;
}

:root {
  --background-color: #ffffff;
  --default-color: #272829;
  --heading-color: #ffffff;
  --accent-color: #0563bb;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
}

:root {
  --nav-color: #45505b;
  --nav-hover-color: #e66d27;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #212529;
  --nav-dropdown-hover-color: #e66d27;
}

.light-background {
  --background-color: #f9f9f9;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
/* --------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/*--------------------------------------------------------------
# Background Image
/* --------------------------------------------------------------*/
#imgbackground {
  background-image: url("../img/hero-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-blend-mode: overlay;
  background-color: rgba(22, 22, 22, 0.4);
  background-attachment: fixed;
  background-position: center -40px;
}

@media (max-width: 1314px) {
  #imgbackground {
    background-position: center;
  }
}

/*--------------------------------------------------------------
# BKPSDM Logo
--------------------------------------------------------------*/
#bkpsdm {
  position: absolute;
  padding: 10px 0px 0px 10px;
  font-family: var(--heading-font);
  font-weight: bold;
  color: #d6d6d6;
  left: 0;
}

@media (max-width: 490px) {
  #bkpsdm {
    font-size: 12px;
  }
  .fs-5 {
    font-size: 0.75rem !important;
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 0 15px;
  transition: all ease-in-out 0.3s;
  overflow-y: auto;
  z-index: 997;
  min-width: 200px;
}

@media (max-width: 1199px) {
  .header {
    background-color: rgba(85, 85, 85, 75%);
    border-right: 1px solid
      color-mix(in srgb, var(--default-color), transparent 90%);
    width: 210px;
    left: -100%;
  }
  #bkpsdm {
    left: 60px;
  }
}

@media (min-width: 1200px) and (max-width: 1600px) {
  .header ~ main {
    margin-left: 160px;
  }

  .header ~ main .hero {
    margin-left: -160px;
    width: 100vw;
  }
}

.header.header-show {
  left: 0;
  backdrop-filter: blur(4px);
}

.header .header-toggle {
  color: var(--contrast-color);
  background-color: #070066;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  position: fixed;
  top: 10px;
  left: 18px;
  z-index: 9999;
  transition: background-color 0.3s;
}

.header .header-toggle:hover {
  color: var(--contrast-color);
  background-color: color-mix(in srgb, #dd4814 90%, white 15%);
}
*/


/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.navmenu {
  padding: 0;
  z-index: 9997;
}

.navmenu ul {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
  width: 175px;
}

.navmenu a,
.navmenu a:focus {
  color: var(--nav-color);
  font-family: var(--nav-font);
  display: flex;
  align-items: center;
  padding: 0px 15px;
  margin-bottom: 40px;
  font-size: 20px;
  font-weight: bolder;
  border-radius: 50px;
  background: color-mix(in srgb, rgb(225, 229, 236), transparent 25%);
  height: 70px;
  width: 100%;
  overflow: hidden;
  transition: 0.3s;
}

.navmenu a i,
.navmenu a:focus i {
  font-size: 40px;
}

.navmenu a span,
.navmenu a:focus span {
  padding: 0 5px 0 7px;
}

@media (min-width: 992px) {
  .navmenu a,
  .navmenu a:focus {
    max-width: 70px;
  }

  .navmenu a span,
  .navmenu a:focus span {
    display: none;
  }
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus,
.navmenu li:hover > a {
  color: var(--contrast-color);
  background: var(--nav-hover-color);
}

.navmenu a:hover,
.navmenu li:hover > a {
  max-width: 100%;
  color: var(--contrast-color);
}

.navmenu a:hover span,
.navmenu li:hover > a span {
  display: block;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Login/Logout Button
--------------------------------------------------------------*/

.topnav {
  position: fixed;
  top: 0;
  right: 15px;
  display: flex;
  align-items: center;
  padding: 10px;
  z-index: 9999;
}

.user-controls {
  display: flex;
  gap: 10px;
}

.login-btn {
  background-color: #070066;
  color: rgb(255, 255, 255);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  border-radius: 25px;
}

.login-btn:hover {
  background-color: rgba(0, 102, 17, 0.7);
}

.logout-btn {
  background-color: #08007e;
  color: rgb(255, 255, 255);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  border-radius: 25px;
}

.logout-btn:hover {
  background-color: rgba(194, 6, 6, 0.7);
}

/*--------------------------------------------------------------
# Marquee Text
--------------------------------------------------------------*/
.marquee-vertical {
  overflow: hidden;
  position: relative;
  height: 415px;
}

.marquee-vertical-text {
  position: absolute;
  width: 100%;
  display: flex;
  flex-direction: column;
  animation: marquee-vertical 3s linear infinite;
}

@keyframes marquee-vertical {
  0% {
    transform: translateY(100%);
  }

  100% {
    transform: translateY(-100%);
  }
}

.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  /* Ubah durasi untuk mempercepat */
}

/*--------------------------------------------------------------
# Card and Font
--------------------------------------------------------------*/
.card {
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  white-space: wrap;
}

.card-header {
  text-wrap: nowrap;
}

.card-header-suse {
  font-family: "SUSE", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: xx-large;
}

.bg-1 {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  color: #161515;
}

.josefin-sans {
  font-family: "Source Code Pro", monospace;
  font-optical-sizing: auto;
  font-weight: bolder;
  font-style: normal;
  font-size: x-large;
  text-wrap: wrap;
}

.inner-card {
  width: 100%;
}

.app-name {
  margin-top: 70px;
  font-family: "Orbitron", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 85px;
  color: #d3d3d3;
  font-weight: 750;
  text-shadow: -2px -2px 0 #000, /* Atas kiri */ 2px -2px 0 #000,
    /* Atas kanan */ -2px 2px 0 #000, /* Bawah kiri */ 2px 2px 0 #000;
  /* Bawah kanan */
}

.app-desc {
  font-size: 30px;
}

@media (max-width: 400px) {
  .app-name {
    font-size: 25px;
  }
  .app-desc {
    font-size: 10px;
  }
}

@media (max-width: 860px) {
  .card-header-suse {
    font-weight: 200;
    font-size: medium;
  }
  .app-name {
    font-size: 40px;
  }
  .fs-5 {
    font-size: 1rem !important;
  }
  .app-desc {
    font-size: 15px;
  }
  .josefin-sans {
    font-size: medium;
  }
}

@media (min-width: 400px) {
  .card {
    white-space: nowrap;
  }
}

.margin-vertical {
  margin-bottom: -15px;
  /* Jarak vertikal bawah */
}

.margin-vertical-next {
  margin-top: -15px;
  /* Jarak vertikal atas */
}

/*--------------------------------------------------------------
# Date & Time
--------------------------------------------------------------*/

#clock {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Orbitron", sans-serif;
  font-size: 80px;
  font-weight: 700;
  color: #d3d3d3;
  letter-spacing: 2px;
  background-size: 400px;
  margin-top: -20px;
  margin-bottom: -20px;
}

#date {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Orbitron", sans-serif;
  font-size: 40px;
  font-weight: 300;
  letter-spacing: 1px;
  color: #d3d3d3;
  /* Warna teks */
  text-shadow: -2px -2px 0 #000, /* Atas kiri */ 2px -2px 0 #000,
    /* Atas kanan */ -2px 2px 0 #000, /* Bawah kiri */ 2px 2px 0 #000;
  /* Bawah kanan */
}

@media (max-width: 400px) {
  #clock {
    font-size: 20px;
    background-size: 150px;
    margin-bottom: 10px;
  }
  #date {
    font-size: 10px;
    background-size: 75px;
  }
}

@media (max-width: 850px) {
  #clock {
    font-size: 35px;
    background-size: 150px;
    margin-bottom: 10px;
  }
  #date {
    font-size: 20px;
    background-size: 75px;
  }
}

/*--------------------------------------------------------------
# Modal
--------------------------------------------------------------*/

.custom-modal {
  max-width: 1800px;
  width: 100%;
  margin: 0 auto;
  height: 100%;
}

/* CSS untuk efek blur */
.blurred-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  z-index: 1040;
}

.modal-backdrop.show {
  backdrop-filter: none;
}

#typedText {
  display: inline;
  /* Atur menjadi inline agar tidak memengaruhi layout sekitarnya */
  overflow: hidden;
  /* Untuk menghindari pengaruh overflow */
}

/* Footer tetap di bagian bawah */
.footer {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 10px;
}

#btnSimpanRuang,
#btnBatalRuang,
#btnSimpanAgenda,
#btnBatalAgenda,
#btnUbahRuang,
#btnHapusRuang,
#btnUbahAgenda,
#btnHapusAgenda {
  width: 150px;
  height: 40px;
}

#btnSimpanRuang .spinner-border,
#btnSimpanAgenda .spinner-border,
#btnUbahRuang .spinner-border,
#btnHapusRuang .spinner-border,
#btnUbahAgenda .spinner-border,
#btnHapusAgenda .spinner-border {
  margin-right: 5px;
  vertical-align: middle;
}

/* #btnSimpanRuang .button-text,
#btnSimpanAgenda .button-text,
#btnUbahRuang .button-text,
#btnHapusRuang .button-text,
#btnUbahAgenda .button-text,
#btnHapusAgenda .button-text,
#btnBatalRuang,
#btnBatalAgenda {
  vertical-align: middle;
} */

/* Animasi untuk tombol */
button.btn:hover {
  transform: scale(1.05);
  transition: all 0.2s ease-in-out;
}

/* Gaya error message */
.error-message {
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Card styling (Opsional jika diperlukan) */
.card-title {
  font-weight: bold;
  text-transform: uppercase;
}

/* Modal content */
.modal-content {
  border: 2px solid #ddd;
}
