/*!
* m45h4run
* Devloper: Mas Harun
* Profile URL: https://sites.google.com/view/s1m45h4run/
* Version: 1.0;
!*/
/* ===== THEME COLORS (Custom Properties) ===== */
:root {
  --bg-white: #ffffff; /* Putih */
  --bg-black: #000000; /* Hijau */
  --bg-success: #10b981; /* Hijau */
  --bg-info:    #3b82f6; /* Biru */
  --bg-warning: #f59e0b; /* Oranye */
  --bg-error:   #ef4444; /* Merah */
  --bg-purple:  #8b5cf6; /* Ungu */

  /*
  --bg-gradient-1: #1e3c72;
  --bg-gradient-2: #2a5298;
  --accent: #E0CE00;
  */
}

/* ===== STYLE UNIVERSAL ===== */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, var(--bg-gradient-1), var(--bg-gradient-2));
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Container & Card */
.container {
  width: 100%;
  max-width: 1000px;
}

.card {
  /*background: rgba(16, 185, 129, 0.1);*/
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.footer {
  margin-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}
/* Background Color */
.bg-white    { background: var(--bg-white); color: #000 !important;}
.bg-black    { background: var(--bg-black); color: #fff !important;}
.bg-info    { background: var(--bg-info); }
.bg-success { background: var(--bg-success); }
.bg-warning { background: var(--bg-warning); }
.bg-error   { background: var(--bg-error); }

/* Background Color */
.text-white    { color: var(--bg-white); }
.text-black    { color: var(--bg-black); }
.text-info    { color: var(--bg-info); }
.text-success { color: var(--bg-success); }
.text-warning { color: var(--bg-warning); }
.text-error   { color: var(--bg-error); }

/* Typography */
h1, h2, h3 {
  margin-bottom: 15px;
  font-weight: 600;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }

p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.9;
}
/* Style dasar link */
a {
  color: var(--accent);              /* warna biru (seperti bootstrap) */
  text-decoration: none;       /* hilangkan garis bawah */
  font-weight: 500;            /* sedikit tebal */
  transition: all 0.3s ease;   /* animasi halus */
}

/* Saat hover (disentuh mouse) */
a:hover {
  color: #0a58ca;              /* biru lebih gelap */
  text-decoration: underline;  /* garis bawah muncul */
}

/* Saat link diklik (active) */
a:active {
  color: #084298;
}

/* Jika link sudah pernah dikunjungi */
a:visited {
  /*color: #6c757d;*/
}


/* Dashboard */
.dashboard {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
}

.dashboard h1 {
  text-align: center;
  margin-bottom: 25px;
}

/* Menu Button */
.menu-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  padding: 18px 20px;
  margin-bottom: 15px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  color: #fff;
}

.menu-btn span { font-size: 1.5rem; }

.menu-btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.item {
  background: rgba(16, 185, 129, 0.15);
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  transition: transform 0.25s ease, background 0.25s ease;
  cursor: pointer;
}

.item:hover {
  transform: translateY(-5px);
  background: rgba(16, 185, 129, 0.25);
}

.item span {
  display: block;
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Form Styles */
.form-container {
  max-width: 90%;
  margin: 40px auto;
  padding: 30px;
  backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  color: #fff;
  /*background: rgba(16, 185, 129, 0.1);*/
}

.form-container h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
  font-weight: 600;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 8px;
  background: rgba(245, 245, 245, 0.25);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  background: rgba(245, 245, 245, 0.25);
  box-shadow: 0 0 0 2px var(--bg-gradient-2);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block;
  width: auto;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  margin: 2px;
}

.btn-full { width: 100%; }

.btn:hover { transform: translateY(-2px); }

/* ===== POSITIONING & LAYOUT UTILITIES ===== */
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-v-center { display: flex; align-items: center; }
.flex-h-center { display: flex; justify-content: center; }
.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; gap: 10px; }
.full-height { min-height: 100vh; }

/* Margin/padding helper */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }

/* ===== NOTIFICATION BAR ===== */
.notif {
  position: relative;
  padding: 14px 20px;
  border-radius: 8px;
  margin: 15px auto;
  max-width: 600px;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  animation: slideDown 0.4s ease;
}

.notif button {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: inherit;
}

/* ===== INFO BAR (TOP FIXED) ===== */
.info-bar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 14px 20px;
  background: var(--bg-info);
  color: #fff;
  text-align: center;
  font-weight: 500;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  animation: slideDown 0.4s ease;
}

.info-bar-fixed .close-btn {
  position: absolute;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: inherit;
  cursor: pointer;
}

/* ===== CALLOUT BOX ===== */
.callout {
  border-radius: 8px;
  padding: 18px 20px;
  margin: 15px 0;
  color: #fff;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.callout h3 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  font-weight: 600;
}

/* ===== TOAST NOTIFICATION ===== */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.toast {
  min-width: 250px;
  padding: 14px 20px;
  border-radius: 8px;
  color: #fff;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: slideIn 0.4s ease, fadeOut 0.5s ease 4s forwards;
}

/* Toast Variants */
.toast-info    { background: var(--bg-info); }
.toast-success { background: var(--bg-success); }
.toast-warning { background: var(--bg-warning); }
.toast-error   { background: var(--bg-error); }

/* Animasi */
@keyframes slideIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateX(100%); }
}

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

/* ===== HR STYLES ===== */
.hr-simple {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

.hr-dashed{border:none;border-top:2px dashed #000;margin:6px 0;}
.hr-dotted{border:none;border-top:2px dotted #000;margin:6px 0;}
.hr-bold {
  border: none;
  border-top: 3px solid var(--bg-success);
  margin: 25px 0;
  border-radius: 2px;
}

.hr-gradient {
  border: none;
  height: 3px;
  background: linear-gradient(to right, var(--bg-info), var(--bg-success), var(--bg-warning));
  border-radius: 3px;
  margin: 30px 0;
}

.hr-text {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.15);
  text-align: center;
  margin: 25px 0;
  position: relative;
}

.hr-text::after {
  content: attr(data-content);
  position: relative;
  top: -0.2em;
  background: #fff;
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
}
