/* Shared minimal styles (admin layout keeps its own inline styles). */

/* Toast / alerts */
.toast-container{ z-index: 1080; }

/* Soft badges (used across pages) */
.badge-soft{ background: rgba(59,130,246,.10); color: #1d4ed8; }
.badge-warn{ background: rgba(245,158,11,.12); color: #92400e; }
.badge-danger{ background: rgba(239,68,68,.12); color: #991b1b; }

/* Offcanvas form tweaks */
.offcanvas .form-control, .offcanvas .form-select{ border-radius: 12px; }
.offcanvas .btn{ border-radius: 12px; }

/* Lists / tables */
.table-scroll{
  max-height: calc(100vh - 340px);
}

.table-sticky thead th{
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bs-body-bg);
}

tr.row-link{ cursor: pointer; }
tr.row-link:hover{ background: rgba(0,0,0,.03); }

.filter-bar .form-label{ margin-bottom: 4px; }

.kpi-card{ border-radius: 16px; }

/* Modern login page styles */
.login-shell{
  min-height:100vh;
  display:flex;
  background: linear-gradient(135deg, #f6f8ff 0%, #f4f6fb 100%);
}

.login-left{
  flex: 1 1 55%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  padding:48px;
  gap:24px;
}

.login-illustration{
  width:min(640px, 90%);
  aspect-ratio: 16/9;
  display:flex;
  align-items:center;
  justify-content:center;
}

.login-illustration img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.login-left-text{
  width:min(640px, 90%);
  text-align:left;
}

.login-left-text h1{
  font-size:42px;
  font-weight:800;
  margin:0 0 6px 0;
  letter-spacing: .2px;
}

.login-left-text p{
  margin:0;
  color:#5b6472;
  font-size:16px;
}

.login-right{
  flex: 1 1 45%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:48px;
}

.login-card{
  width:min(440px, 100%);
  background:#fff;
  border-radius:18px;
  padding:28px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, .10);
  border:1px solid rgba(0,0,0,.06);
}

.login-card .form-control{
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .14);
}

.login-card .form-control:focus{
  box-shadow: 0 0 0 .25rem rgba(59,130,246,.15);
  border-color: rgba(59,130,246,.55);
}

.login-card .btn{
  border-radius: 12px;
}

@media (max-width: 992px){
  .login-left{ display:none; }
  .login-right{ flex: 1 1 100%; }
}

/* --- Technician panel / Kanban --- */
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border:1px solid rgba(15,23,42,.12);
  border-radius:999px;
  background:#fff;
  color:#111827;
  text-decoration:none;
  font-weight:600;
}
.chip .count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:28px;
  height:22px;
  padding:0 8px;
  border-radius:999px;
  background:rgba(15,23,42,.06);
  font-size:12px;
  font-weight:700;
}
.chip:hover{ background:rgba(15,23,42,.03); }
.chip.active{
  border-color:rgba(59,130,246,.35);
  box-shadow: 0 0 0 .2rem rgba(59,130,246,.08);
}

.kanban{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
}
.kanban-col{
  background:rgba(15,23,42,.03);
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  padding:12px;
  min-height: 220px;
}
.kanban-col-title{
  font-weight:800;
  margin-bottom:10px;
}
.kanban-card{
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  border-radius:14px;
  padding:12px;
  box-shadow: 0 10px 24px rgba(17,24,39,.06);
  margin-bottom:10px;
}
.empty-state{
  padding:14px;
  border:1px dashed rgba(15,23,42,.18);
  border-radius:14px;
  color:#6b7280;
  background:rgba(255,255,255,.6);
}

.sticky-head{
  position: sticky;
  top: 0;
  background:#fff;
  z-index: 2;
}

@media (max-width: 992px){
  .kanban{ grid-template-columns: 1fr; }
}


/* Ensure dropdowns appear above topbar/sidebar */
.dropdown-menu{ z-index: 2000; }

/* Modern auth pages */
.auth-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(15,23,42,.10), transparent 25%),
    linear-gradient(135deg, #f7f9fc 0%, #eef3ff 100%);
}
.auth-shell-register{
  grid-template-columns: .95fr 1.05fr;
}
.auth-showcase{
  padding:56px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:20px;
}
.auth-badge{
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding:10px 16px;
  border-radius:999px;
  background:rgba(255,255,255,.76);
  border:1px solid rgba(15,23,42,.08);
  color:#0f172a;
  font-weight:700;
  box-shadow:0 10px 25px rgba(15,23,42,.05);
}
.auth-showcase h1{
  font-size:clamp(34px, 5vw, 56px);
  line-height:1.05;
  font-weight:800;
  color:#0f172a;
  margin:0;
  max-width:700px;
}
.auth-showcase p{
  max-width:640px;
  margin:0;
  color:#475569;
  font-size:17px;
}
.auth-feature-list{
  display:grid;
  gap:12px;
  margin-top:4px;
  max-width:640px;
}
.auth-feature-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border-radius:18px;
  background:rgba(255,255,255,.70);
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 16px 35px rgba(15,23,42,.04);
}
.auth-feature-icon{
  width:32px;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#111827;
  color:#fff;
  font-weight:800;
}
.auth-panel{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:48px;
}
.auth-panel-wide .auth-card{
  width:min(760px, 100%);
}
.auth-card{
  width:min(480px, 100%);
  background:rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-radius:28px;
  padding:28px;
}
.auth-card-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:18px;
}
.auth-card-header h2{
  margin:0;
  font-size:30px;
  font-weight:800;
  color:#0f172a;
}
.auth-card-header p{
  margin:6px 0 0;
  color:#64748b;
}
.auth-card .form-control{
  border-radius:16px;
  border:1px solid rgba(15,23,42,.12);
  padding:.9rem 1rem;
}
.auth-card .form-control:focus,
.modal-content .form-control:focus{
  border-color:rgba(59,130,246,.45);
  box-shadow:0 0 0 .25rem rgba(59,130,246,.12);
}
.auth-form-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:16px;
}
.auth-grid-full{ grid-column: 1 / -1; }
.auth-note{
  text-align:center;
  color:#64748b;
  font-size:13px;
}
#registerModal .modal-content{
  background:rgba(255,255,255,.96);
}
@media (max-width: 992px){
  .auth-shell,
  .auth-shell-register{
    grid-template-columns: 1fr;
  }
  .auth-showcase{
    padding:32px 24px 12px;
  }
  .auth-panel{
    padding:24px;
    align-items:flex-start;
  }
}
@media (max-width: 640px){
  .auth-form-grid{ grid-template-columns: 1fr; }
  .auth-card{ padding:22px; border-radius:22px; }
  .auth-card-header{ flex-direction:column; }
}


.auth-shell-login{
  grid-template-columns: 1.08fr .92fr;
}
.auth-showcase-rich{
  position:relative;
  overflow:hidden;
}
.auth-showcase-rich::before{
  content:"";
  position:absolute;
  inset:32px 40px auto auto;
  width:220px;
  height:220px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(59,130,246,.18), rgba(59,130,246,0));
  pointer-events:none;
}
.auth-brand-row{
  display:flex;
  align-items:center;
  gap:14px;
}
.auth-logo{
  width:56px;
  height:56px;
  border-radius:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, #0f172a 0%, #2563eb 100%);
  color:#fff;
  font-size:22px;
  font-weight:800;
  box-shadow:0 16px 30px rgba(37,99,235,.22);
}
.auth-brand-title{
  font-size:20px;
  font-weight:800;
  color:#0f172a;
}
.auth-brand-subtitle{
  color:#64748b;
  font-size:14px;
}
.auth-hero-card{
  margin-top:10px;
  padding:18px;
  border-radius:28px;
  background:rgba(255,255,255,.76);
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 18px 40px rgba(15,23,42,.06);
  max-width:760px;
}
.auth-hero-card img{
  width:100%;
  display:block;
  border-radius:22px;
}
.auth-login-card{
  box-shadow:0 24px 80px rgba(15,23,42,.10);
}
.auth-card-header-compact{
  margin-bottom:22px;
}
.auth-section-kicker{
  display:inline-block;
  margin-bottom:8px;
  color:#2563eb;
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.auth-stack-form .form-label,
.auth-form-grid .form-label{
  font-weight:600;
  color:#334155;
}
.auth-input-group{
  position:relative;
}
.auth-input-group .form-control{
  padding-right:84px;
}
.auth-input-action{
  position:absolute;
  top:50%;
  right:12px;
  transform:translateY(-50%);
  border:0;
  background:transparent;
  color:#2563eb;
  font-weight:700;
  font-size:14px;
}
.auth-input-action:hover{
  color:#1d4ed8;
}
.auth-muted-note{
  color:#64748b;
  font-size:13px;
}
.auth-modal-content{
  background:rgba(255,255,255,.98);
}
.auth-modal-showcase{
  min-height:100%;
  background:linear-gradient(155deg, #0f172a 0%, #1d4ed8 100%);
  color:#fff;
  padding:36px 30px;
  align-items:center;
}
.auth-modal-showcase h3{
  font-size:30px;
  font-weight:800;
  line-height:1.1;
}
.auth-modal-showcase p{
  color:rgba(255,255,255,.82);
  margin:14px 0 0;
}
.auth-mini-list{
  margin-top:24px;
  display:grid;
  gap:10px;
  color:rgba(255,255,255,.92);
  font-weight:500;
}
.auth-badge-dark{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.14);
  color:#fff;
}
@media (max-width: 1200px){
  .auth-shell-login{
    grid-template-columns: 1fr;
  }
}
@media (max-width: 992px){
  .auth-brand-row{
    margin-bottom:4px;
  }
  .auth-hero-card{
    margin-top:0;
  }
}
@media (max-width: 640px){
  .auth-logo{
    width:50px;
    height:50px;
    border-radius:16px;
  }
  .auth-card .form-control{
    padding:.82rem .95rem;
  }
  .auth-input-group .form-control{
    padding-right:78px;
  }
}


/* Module UI refresh */
.module-page,
.module-detail-page,
.module-form-wrap{
  position: relative;
}

.module-page .card,
.module-detail-page .card,
.module-form-wrap .card{
  border: none;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
}

.module-page .table,
.module-detail-page .table{
  --bs-table-bg: transparent;
}

.module-page .btn,
.module-detail-page .btn,
.module-form-wrap .btn{
  border-radius: 12px;
}

.module-page .form-control,
.module-page .form-select,
.module-detail-page .form-control,
.module-detail-page .form-select,
.module-form-wrap .form-control,
.module-form-wrap .form-select{
  border-radius: 12px;
  border-color: rgba(148,163,184,.28);
  box-shadow: none;
}

.module-page .form-control:focus,
.module-page .form-select:focus,
.module-detail-page .form-control:focus,
.module-detail-page .form-select:focus,
.module-form-wrap .form-control:focus,
.module-form-wrap .form-select:focus{
  border-color: rgba(99,102,241,.55);
  box-shadow: 0 0 0 .2rem rgba(99,102,241,.10);
}

.module-page .table thead th,
.module-detail-page .table thead th{
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.module-page .alert,
.module-detail-page .alert,
.module-form-wrap .alert{
  border-radius: 14px;
}
