/* ===============================
   FORTIHOST THEME STYLESHEET
   =============================== */


/* ===============================
   LOGIN PAGE
   =============================== */

.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #f9f9f9;
  padding: 1rem;
}

.login-container {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
}

.login-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: #333;
}

/* ===============================
   LOGIN / PORTAL FORM INPUTS
   — scoped to login and portal pages only
   =============================== */

.login-wrapper .form-group,
.page-card .form-group {
  margin-bottom: 20px;
  text-align: left;
}

.login-wrapper .form-group label,
.page-card .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 5px;
}

.login-wrapper .form-group input,
.page-card .form-group input {
  width: 100%;
  padding: 18px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  color: #2d3436;
}

.login-wrapper .form-group input:focus,
.page-card .form-group input:focus {
  border-color: #14b8a6;
  outline: none;
  box-shadow: 0px 0px 5px rgba(20, 184, 166, 0.4);
}

/* ===============================
   SIGNUP LINK
   =============================== */

.signup-link {
  text-align: center;
  margin-top: 20px;
}

.signup-link a {
  color: #14b8a6;
  font-weight: 500;
  text-decoration: none;
}

.signup-link a:hover {
  text-decoration: underline;
}

/* ===============================
   LOGIN / PORTAL BUTTON OVERRIDES
   — targets Frappe system buttons only
   =============================== */

.page-card .btn.btn-primary,
.page-card .btn.btn-secondary {
  background-color: #14b8a6 !important;
  border-color: #14b8a6 !important;
  color: white !important;
  font-weight: 600;
  font-size: 14px;
  padding: 10px;
  border-radius: 6px;
  width: 100%;
  text-transform: uppercase;
  text-align: center;
}

.page-card .btn.btn-primary:hover,
.page-card .btn.btn-secondary:hover {
  background-color: white !important;
  color: #14b8a6 !important;
  border: 1px solid #14b8a6 !important;
}

/* ===============================
   PORTAL PAGES — LAYOUT OVERRIDES
   (issues, me, addresses, list)
   =============================== */

body #page-issues,
body #page-me,
body #page-addresses,
body #page-list {
  display: block !important;
  margin: 0 !important;
}

/* ===============================
   PORTAL — SIDEBAR
   =============================== */

.sidebar-column {
  max-width: 100vw;
  width: auto;
  flex: unset;
  display: block !important;
  margin: 0 1rem;
  padding: 0 !important;
}

.sidebar-column .web-sidebar {
  padding: 0;
  min-width: 100%;
}

.sidebar-column .web-sidebar .sidebar-items .list-unstyled {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding-left: 0;
  list-style: none;
  overflow: visible;
  margin: 0;
  gap: 0.5rem;
  padding: 1rem 0;
}

.sidebar-column .web-sidebar .sidebar-items .list-unstyled .sidebar-item {
  flex: 0 0 auto;
}

.sidebar-column .web-sidebar .sidebar-items .list-unstyled .sidebar-item a {
  margin: 0 !important;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
  color: #333;
  transition: all 0.2s ease;
}

.sidebar-column .web-sidebar .sidebar-items .list-unstyled .sidebar-item a:hover {
  background: #f1f1f1;
  color: #14b8a6;
}

.sidebar-column .web-sidebar .sidebar-items .list-unstyled .sidebar-item.active a,
.sidebar-column .web-sidebar .sidebar-items .list-unstyled .sidebar-item a.active {
  background: #14b8a6;
  color: #fff !important;
  font-weight: 600;
}

/* ===============================
   PORTAL — MAIN CONTENT COLUMN
   =============================== */

.main-column {
  margin: 0 1rem;
  max-width: unset;
  width: auto;
  flex: unset;
}

.main-column .page-content-wrapper main.container {
  display: block;
  padding: 0;
}

.main-column .page-content-wrapper main.container .page_content {
  max-width: 100%;
  width: 100%;
}

.main-column .page-content-wrapper main.container .page_content div {
  max-width: 100%;
  width: 100%;
}

.main-column .page-content-wrapper main.container .page_content .timeline-dot {
  width: auto;
}

/* ===============================
   FRAPPE SYSTEM BUTTON OVERRIDES
   — targets portal, issue, and Frappe UI buttons
   — does NOT affect homepage custom sections (fh- prefixed)
   =============================== */

.frappe-card .btn.btn-primary,
.frappe-card .btn.btn-primary:active,
.frappe-card .btn.btn-primary:focus {
  background-color: #14b8a6 !important;
  border-color: #14b8a6 !important;
  color: white !important;
}

.frappe-card .btn.btn-primary:hover {
  background-color: #0f9d94 !important;
  border-color: #0f9d94 !important;
  color: white !important;
}

/* Portal and system pages — buttons */
.page-container .btn.btn-primary,
.web-form-container .btn.btn-primary,
.login-wrapper .btn.btn-primary,
.modal .btn.btn-primary {
  background-color: #14b8a6 !important;
  border-color: #14b8a6 !important;
  color: #ffffff !important;
}

.page-container .btn.btn-primary:hover,
.web-form-container .btn.btn-primary:hover,
.login-wrapper .btn.btn-primary:hover,
.modal .btn.btn-primary:hover {
  background-color: #0f9d94 !important;
  border-color: #0f9d94 !important;
  color: #ffffff !important;
}

/* ===============================
   FORTIHOST WEBSITE — FULL-WIDTH BREAKOUT
   Frappe's templates/web.html wraps page_content in a Bootstrap
   .container (max-width + side padding). Our marketing pages are
   designed full-bleed (sections handle their own inner max-width),
   so we break the main wrapper out of that container to span the
   full viewport width.
   =============================== */
.fh-website-main {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Remove default top/bottom spacing the theme container may add */
.fh-website-main {
  padding-top: 0;
  padding-bottom: 0;
}

/* Prevent horizontal scroll from the 100vw breakout */
body {
  overflow-x: hidden;
}

/* ===============================
   FORTIHOST TOAST STYLES
   Used by showToast(message, className)
   =============================== */
.toastify.fh-toast-success {
  background: linear-gradient(135deg, #14b8a6, #0f9d94);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(20,184,166,.35);
  font-weight: 500;
}
.toastify.fh-toast-error {
  background: linear-gradient(135deg, #f97316, #ea580c);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(249,115,22,.35);
  font-weight: 500;
}
.toastify.fh-toast-info {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(14,165,233,.35);
  font-weight: 500;
}


