/* Jogajog – Global Shared Styles */

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

body {
  font-family: 'Poppins', sans-serif;
  background: #f5f7fa;
  color: #1e2230;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: #f0faff; }
::-webkit-scrollbar-thumb { background: #29aee6; border-radius: 4px; }

/* Focus visible ring */
*:focus-visible {
  outline: 2px solid #29aee6;
  outline-offset: 2px;
}

/* Smooth page load */
body { animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Buttons reset */
button { font-family: 'Poppins', sans-serif; }

/* Toast */
#toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(30, 34, 48, 0.92);
  color: #fff;
  border-radius: 12px;
  padding: 10px 22px;
  font-size: 0.83rem;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Modal overlay */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 3000;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 500px;
  padding: 20px 20px 34px;
  animation: slideUp 0.3s cubic-bezier(0.22,1,0.36,1);
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-handle {
  width: 40px; height: 4px;
  background: #c4ccd8;
  border-radius: 4px;
  margin: 0 auto 16px;
}

/* Utility classes */
.text-sky { color: #29aee6; }
.text-sky-dark { color: #1789c0; }
.text-yellow { color: #f5c518; }
.bg-sky { background: #29aee6; }
.bg-yellow { background: #f5c518; }

.rounded { border-radius: 14px; }
.rounded-full { border-radius: 999px; }

.shadow-sm { box-shadow: 0 4px 14px rgba(41,174,230,0.1); }
.shadow-md { box-shadow: 0 8px 24px rgba(41,174,230,0.15); }

/* Loader */
.loader {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid rgba(41,174,230,0.3);
  border-top-color: #29aee6;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive image */
img { max-width: 100%; height: auto; }

/* Link */
a { color: inherit; }

/* Form helpers */
.form-error {
  font-size: 0.74rem;
  color: #ef4444;
  margin-top: 4px;
}

/* Print hide */
@media print {
  .bnav, .wa-float, header { display: none !important; }
}
