/* ==========================================================================
   LOKMAN HEKİM ÜNİVERSİTESİ - YARDIM MASASI / DESTEK PORTALI
   Modern, Responsive, Corporate UI Theme
   ========================================================================== */

:root {
  --lhu-navy: #072b61;
  --lhu-navy-dark: #041a3d;
  --lhu-navy-light: #0d3d82;
  --lhu-blue: #0072bc;
  --lhu-cyan: #0089cf;
  --lhu-blue-soft: #f0f7ff;
  --lhu-blue-border: #cbe2f9;
  --lhu-teal: #0f766e;
  --lhu-teal-soft: #f0fdfa;
  --lhu-green: #10b981;
  --lhu-red: #ef4444;
  --lhu-red-soft: #fef2f2;
  --lhu-amber: #f59e0b;
  --lhu-amber-soft: #fffbeb;
  --lhu-bg: #f4f7fb;
  --lhu-card: #ffffff;
  --lhu-text: #0f172a;
  --lhu-text-secondary: #334155;
  --lhu-muted: #64748b;
  --lhu-border: #e2e8f0;
  --lhu-border-focus: #0089cf;
  --lhu-radius-sm: 4px;
  --lhu-radius-md: 6px;
  --lhu-radius-lg: 8px;
  --lhu-radius-xl: 10px;
  --lhu-radius-pill: 5px;
  --lhu-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --lhu-shadow-md: 0 4px 14px 0 rgba(15, 23, 42, 0.06);
  --lhu-shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.08);
  --lhu-shadow-hover: 0 18px 36px -4px rgba(7, 43, 97, 0.12);
  --lhu-font: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.lhu {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--lhu-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--lhu-text);
  background-color: var(--lhu-bg);
  background-image: 
    radial-gradient(1000px 400px at 15% 0%, rgba(0, 114, 188, 0.06), transparent 60%),
    radial-gradient(800px 350px at 85% 0%, rgba(15, 118, 110, 0.04), transparent 50%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Overrides */
body.lhu h1, body.lhu h2, body.lhu h3, body.lhu h4, body.lhu h5, body.lhu h6 {
  font-family: var(--lhu-font);
  color: var(--lhu-navy);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

body.lhu h1 { font-size: 1.85rem; margin: 0 0 0.5rem; }
body.lhu h2 { font-size: 1.45rem; margin: 0 0 0.5rem; }
body.lhu h3 { font-size: 1.2rem; margin: 0 0 0.4rem; }

body.lhu a {
  color: var(--lhu-blue);
  text-decoration: none;
  transition: all 0.2s ease;
}

body.lhu a:hover {
  color: var(--lhu-navy);
  border-bottom: none;
}

/* ==========================================================================
   Main Container & Layout
   ========================================================================== */

#container {
  width: min(1160px, calc(100% - 32px));
  margin: 24px auto 36px;
  background: var(--lhu-card);
  border-radius: var(--lhu-radius-xl);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: var(--lhu-shadow-lg);
  overflow: hidden;
}

/* Header & Top Bar */
#header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px;
  height: auto !important;
  min-height: 84px;
  padding: 16px 28px;
  background: #ffffff;
  border-bottom: 1px solid var(--lhu-border);
  position: relative;
}

#logo {
  display: flex;
  align-items: center;
  float: none !important;
  width: auto !important;
  height: auto !important;
  text-decoration: none;
}

#header #logo img {
  max-height: 58px;
  max-width: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

.valign-helper { display: none !important; }

.lhu-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.lhu-user {
  display: flex;
  align-items: center;
  gap: 10px;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  text-align: right;
}

.lhu-user-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lhu-user-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--lhu-navy);
  padding: 6px 12px;
  background: #f8fafc;
  border: 1px solid var(--lhu-border);
  border-radius: var(--lhu-radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lhu-guest-label {
  font-size: 0.88rem;
  color: var(--lhu-muted);
  font-weight: 600;
  padding-right: 4px;
}

.lhu-user-btn,
.lhu-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  background: #ffffff;
  border: 1.5px solid var(--lhu-border);
  border-radius: var(--lhu-radius-pill);
  color: var(--lhu-navy) !important;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none !important;
  box-shadow: var(--lhu-shadow-sm);
  transition: all 0.2s ease;
}

.lhu-user-btn:hover,
.lhu-user-badge:hover {
  background: var(--lhu-blue-soft);
  border-color: var(--lhu-blue-border);
  color: var(--lhu-blue) !important;
  transform: translateY(-1px);
}

.lhu-logout-badge {
  background: var(--lhu-red-soft);
  border-color: #fecaca;
  color: #b91c1c !important;
}

.lhu-logout-badge:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b !important;
}

.lhu-header-divider {
  color: #cbd5e1;
  font-weight: 400;
  font-size: 0.9rem;
  padding: 0 2px;
  user-select: none;
}

.lhu-agent-btn {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: var(--lhu-text-secondary) !important;
}

.lhu-agent-btn:hover {
  background: var(--lhu-blue-soft);
  border-color: var(--lhu-blue-border);
  color: var(--lhu-navy) !important;
}

.lhu-signin-btn {
  background: var(--lhu-navy);
  border-color: var(--lhu-navy);
  color: #ffffff !important;
}

.lhu-signin-btn:hover {
  background: var(--lhu-navy-light);
  border-color: var(--lhu-navy-light);
  color: #ffffff !important;
}

.lhu-lang-picker {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lhu-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--lhu-border);
  border-radius: var(--lhu-radius-sm);
  background: #ffffff;
  cursor: pointer;
  padding: 9px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.lhu-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--lhu-navy);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.lhu-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lhu-nav-toggle.open span:nth-child(2) { opacity: 0; }
.lhu-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Navigation Bar & Active Button States (CRITICAL FIX: High Contrast)
   ========================================================================== */

#nav {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 12px 28px !important;
  height: auto !important;
  background: #f8fafc !important;
  border: 0 !important;
  border-bottom: 1px solid var(--lhu-border) !important;
  box-shadow: none !important;
  white-space: normal !important;
  list-style: none !important;
}

#nav li {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Inactive Nav Links */
#nav li a,
#nav li a.home,
#nav li a.new,
#nav li a.status,
#nav li a.tickets,
#nav li a.kb {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: auto !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  padding: 9px 18px !important;
  border-radius: var(--lhu-radius-pill) !important;
  color: #1e293b !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  font-weight: 700 !important;
  font-size: 0.94rem !important;
  background-image: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

#nav li a:hover {
  background-color: #e0f2fe !important;
  border-color: #7dd3fc !important;
  color: #0369a1 !important;
  transform: translateY(-1px) !important;
}

/* Active Nav Link (Definitive High Contrast: Deep Navy background with crisp Pure White text) */
#nav li a.active,
#nav li a.active:hover,
#nav li a.active:focus {
  background: #072b61 !important;
  background-image: linear-gradient(135deg, #072b61 0%, #0d3d82 100%) !important;
  color: #ffffff !important;
  border-color: #072b61 !important;
  box-shadow: 0 4px 12px rgba(7, 43, 97, 0.3) !important;
  font-weight: 800 !important;
}

#nav li a.active:hover {
  background: #041a3d !important;
  background-image: linear-gradient(135deg, #041a3d 0%, #072b61 100%) !important;
  color: #ffffff !important;
}

#content {
  margin: 0 !important;
  padding: 32px 36px 44px !important;
  min-height: 460px;
  background: #ffffff;
}

/* ==========================================================================
   Buttons (All Forms & Actions)
   ========================================================================== */

.lhu-btn-primary,
body.lhu input[type="submit"],
.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  background: #072b61 !important;
  background-image: linear-gradient(135deg, #072b61 0%, #0d3d82 100%) !important;
  color: #ffffff !important;
  font-family: var(--lhu-font);
  font-size: 0.98rem;
  font-weight: 700;
  border: none !important;
  border-radius: var(--lhu-radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(7, 43, 97, 0.25);
  transition: all 0.2s ease;
  text-decoration: none !important;
  text-shadow: none !important;
}

.lhu-btn-primary:hover,
body.lhu input[type="submit"]:hover,
.button:hover,
.btn:hover {
  background: #041a3d !important;
  background-image: linear-gradient(135deg, #041a3d 0%, #072b61 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(7, 43, 97, 0.32);
}

.lhu-btn-primary:active,
.lhu-btn-primary.active,
body.lhu input[type="submit"]:active,
.button:active,
.button.active,
.btn:active {
  background: #021027 !important;
  color: #ffffff !important;
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(7, 43, 97, 0.4) !important;
}

.lhu-btn-secondary,
body.lhu input[type="reset"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  background: #f1f5f9;
  color: var(--lhu-text-secondary);
  font-family: var(--lhu-font);
  font-size: 0.94rem;
  font-weight: 600;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--lhu-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lhu-btn-secondary:hover,
body.lhu input[type="reset"]:hover {
  background: #e2e8f0;
  color: var(--lhu-text);
}

.lhu-btn-light,
body.lhu input[type="button"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  background: transparent;
  color: var(--lhu-muted);
  font-family: var(--lhu-font);
  font-size: 0.94rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  border-radius: var(--lhu-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lhu-btn-light:hover,
body.lhu input[type="button"]:hover {
  background: #f8fafc;
  color: var(--lhu-text);
  border-color: var(--lhu-border);
}

/* ==========================================================================
   Alerts & Notifications
   ========================================================================== */

#msg_notice,
#msg_warning,
#msg_error,
#msg_info,
.notice_bar,
.warning_bar,
.error_bar {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.5 !important;
  margin: 0 0 24px 0 !important;
  padding: 14px 18px !important;
  border-radius: var(--lhu-radius-md) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
}

#msg_notice, .notice_bar {
  background: var(--lhu-teal-soft) !important;
  border: 1px solid #99f6e4 !important;
  color: #115e59 !important;
}

#msg_warning, .warning_bar {
  background: var(--lhu-amber-soft) !important;
  border: 1px solid #fde68a !important;
  color: #92400e !important;
}

#msg_error, .error_bar {
  background: var(--lhu-red-soft) !important;
  border: 1px solid #fecaca !important;
  color: #991b1b !important;
}

#msg_info {
  background: var(--lhu-blue-soft) !important;
  border: 1px solid var(--lhu-blue-border) !important;
  color: #0369a1 !important;
}

/* ==========================================================================
   Homepage Components (index.php)
   ========================================================================== */

.lhu-home-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.lhu-hero-card {
  background: #ffffff;
  border: 1px solid var(--lhu-border);
  border-left: 6px solid var(--lhu-navy);
  border-radius: var(--lhu-radius-lg);
  padding: 32px 36px;
  box-shadow: var(--lhu-shadow-sm);
  position: relative;
  overflow: hidden;
}

.lhu-hero-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 240px;
  height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(0, 137, 207, 0.04) 100%);
  pointer-events: none;
}

.lhu-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--lhu-blue-soft);
  border: 1px solid var(--lhu-blue-border);
  border-radius: var(--lhu-radius-pill);
  color: var(--lhu-navy);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.lhu-hero-title {
  font-size: 1.95rem;
  color: var(--lhu-navy);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.025em;
}

.lhu-hero-lead {
  font-size: 1.05rem;
  color: var(--lhu-text-secondary);
  line-height: 1.65;
  margin: 0;
  max-width: 900px;
}

/* 2 Action Cards Grid */
.lhu-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.lhu-action-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 26px 28px;
  background: #ffffff;
  border: 1.5px solid var(--lhu-border);
  border-radius: var(--lhu-radius-lg);
  box-shadow: var(--lhu-shadow-sm);
  text-decoration: none !important;
  color: var(--lhu-text) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.lhu-action-card:hover {
  border-color: var(--lhu-cyan);
  transform: translateY(-3px);
  box-shadow: var(--lhu-shadow-hover);
}

.lhu-action-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: var(--lhu-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ffffff;
  transition: transform 0.25s ease;
}

.lhu-card-new .lhu-action-icon {
  background: linear-gradient(135deg, var(--lhu-navy) 0%, var(--lhu-blue) 100%);
  box-shadow: 0 8px 18px rgba(7, 43, 97, 0.22);
}

.lhu-card-check .lhu-action-icon {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.22);
}

.lhu-action-card:hover .lhu-action-icon {
  transform: scale(1.06);
}

.lhu-action-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.lhu-action-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--lhu-navy);
  letter-spacing: -0.01em;
}

.lhu-action-desc {
  font-size: 0.93rem;
  color: var(--lhu-muted);
  line-height: 1.5;
}

.lhu-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--lhu-blue);
  transition: gap 0.2s ease;
}

.lhu-action-card:hover .lhu-action-btn {
  color: var(--lhu-navy);
  gap: 10px;
}

/* 3 Features / Institutional Principles */
.lhu-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 6px;
}

.lhu-feature-box {
  background: #f8fafc;
  border: 1px solid var(--lhu-border);
  border-radius: var(--lhu-radius-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lhu-feature-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: var(--lhu-radius-sm);
  background: #ffffff;
  border: 1px solid var(--lhu-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--lhu-navy);
  margin-bottom: 4px;
}

.lhu-feature-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--lhu-navy);
}

.lhu-feature-desc {
  font-size: 0.88rem;
  color: var(--lhu-muted);
  line-height: 1.45;
}

/* ==========================================================================
   Help Topic Selector (Two-Step Department & SubTopic Grid)
   ========================================================================== */

.lhu-topic-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  background: #f8fafc;
  border: 1.5px solid var(--lhu-border);
  border-radius: var(--lhu-radius-md);
  padding: 20px 22px;
  margin-bottom: 12px;
}

.lhu-topic-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lhu-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lhu-navy);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  margin-right: 4px;
}

/* ==========================================================================
   Form Styling (open.php & Ticket Creation)
   ========================================================================== */

.lhu-ticket-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lhu-page-header {
  margin-bottom: 6px;
}

.lhu-page-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--lhu-blue-soft);
  border: 1px solid var(--lhu-blue-border);
  border-radius: var(--lhu-radius-pill);
  color: var(--lhu-navy);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.lhu-page-title {
  font-size: 1.85rem;
  color: var(--lhu-navy);
  font-weight: 800;
  margin: 0 0 6px;
}

.lhu-page-subtitle {
  font-size: 0.98rem;
  color: var(--lhu-muted);
  margin: 0;
}

.lhu-form-card {
  background: #ffffff;
  border: 1px solid var(--lhu-border);
  border-radius: var(--lhu-radius-lg);
  padding: 32px 36px;
  box-shadow: var(--lhu-shadow-sm);
}

/* Reset table styling inside ticketForm */
#ticketForm table,
.lhu-form-table {
  display: block;
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
}

#ticketForm tbody,
.lhu-form-table tbody {
  display: block;
  width: 100%;
}

#ticketForm tr,
.lhu-form-table tr {
  display: block;
  width: 100%;
  margin-bottom: 16px;
}

#ticketForm td,
.lhu-form-table td {
  display: block;
  width: 100% !important;
  padding: 0;
  border: none;
}

#ticketForm hr,
.lhu-form-table hr {
  display: none !important;
}

.form-header {
  margin: 24px 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--lhu-border);
}

.form-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  color: var(--lhu-navy);
  font-weight: 700;
  margin: 0;
}

.lhu-field-hint {
  font-size: 0.88rem;
  color: var(--lhu-muted);
  margin: 4px 0 0;
}

/* Labels & Inputs */
body.lhu label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--lhu-text-secondary);
  margin-bottom: 6px;
  cursor: default;
}

body.lhu label span.required,
body.lhu span.required {
  font-weight: 600;
  color: var(--lhu-text);
}

body.lhu span.error,
body.lhu font.error,
body.lhu .error {
  color: var(--lhu-red);
  font-size: 0.86rem;
  font-weight: 600;
  margin-top: 4px;
}

body.lhu input[type="text"],
body.lhu input[type="password"],
body.lhu input[type="email"],
body.lhu input[type="tel"],
body.lhu select,
body.lhu textarea,
.lhu-input,
.lhu-select {
  width: 100% !important;
  max-width: 100%;
  font-family: var(--lhu-font);
  font-size: 0.96rem;
  color: var(--lhu-text);
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--lhu-radius-sm);
  padding: 11px 15px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  outline: none;
}

body.lhu input:focus,
body.lhu select:focus,
body.lhu textarea:focus,
.lhu-input:focus,
.lhu-select:focus {
  border-color: var(--lhu-border-focus);
  box-shadow: 0 0 0 3.5px rgba(0, 137, 207, 0.15);
  background-color: #ffffff;
}

body.lhu textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

/* User Info Box (for logged-in clients) */
.lhu-user-info-box {
  display: flex;
  gap: 24px;
  background: var(--lhu-bg);
  border: 1px solid var(--lhu-border);
  border-radius: var(--lhu-radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
}

.lhu-user-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lhu-info-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lhu-muted);
  text-transform: uppercase;
}

.lhu-info-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--lhu-navy);
}

/* Captcha Styling */
.lhu-captcha-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid var(--lhu-border);
  border-radius: var(--lhu-radius-md);
  padding: 16px 20px;
  flex-wrap: wrap;
}

.lhu-captcha-img img {
  border-radius: var(--lhu-radius-sm);
  border: 1px solid #cbd5e1;
  box-shadow: var(--lhu-shadow-sm);
}

.lhu-captcha-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lhu-captcha-input-wrap input {
  width: 140px !important;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.lhu-captcha-hint {
  font-size: 0.82rem;
  color: var(--lhu-muted);
}

/* Form Action Buttons */
.lhu-form-actions,
#ticketForm .buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--lhu-border);
  flex-wrap: wrap;
}

/* ==========================================================================
   File Drop Upload Widget Customization
   ========================================================================== */

.filedrop {
  margin-top: 10px;
}

.filedrop .dropzone {
  border: 2px dashed #94a3b8 !important;
  background: #f8fafc !important;
  border-radius: var(--lhu-radius-md) !important;
  padding: 24px 20px !important;
  text-align: center;
  color: var(--lhu-muted) !important;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.filedrop .dropzone:hover {
  border-color: var(--lhu-cyan) !important;
  background: var(--lhu-blue-soft) !important;
}

.filedrop .dropzone i.icon-upload {
  display: block;
  font-size: 2rem;
  color: var(--lhu-blue);
  margin-bottom: 6px;
}

.filedrop .dropzone a.manual {
  color: var(--lhu-blue);
  font-weight: 700;
  text-decoration: underline;
}

.filedrop .files:not(:empty) {
  border: 1px solid var(--lhu-border);
  border-radius: var(--lhu-radius-sm);
  padding: 10px;
  margin-bottom: 8px;
  background: #ffffff;
}

/* ==========================================================================
   Login Split Layout (/login.php Two-Column Screen)
   ========================================================================== */

.lhu-login-split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, 460px);
  gap: 32px;
  align-items: start;
}

.lhu-login-info-panel {
  background: #ffffff;
  border: 1px solid var(--lhu-border);
  border-radius: var(--lhu-radius-lg);
  padding: 36px 40px;
  box-shadow: var(--lhu-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lhu-login-hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--lhu-navy);
  margin: 0;
}

.lhu-login-text-content {
  color: var(--lhu-text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
}

.lhu-login-text-content p {
  margin: 0 0 14px;
}

.lhu-login-text-content ul {
  margin: 8px 0 16px;
  padding-left: 20px;
}

.lhu-login-text-content li {
  margin: 6px 0;
}

.lhu-login-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--lhu-border);
}

.lhu-login-highlight-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.lhu-highlight-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--lhu-radius-sm);
  background: var(--lhu-blue-soft);
  color: var(--lhu-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.lhu-login-highlight-item strong {
  display: block;
  font-size: 0.94rem;
  color: var(--lhu-navy);
  margin-bottom: 2px;
}

.lhu-login-highlight-item p {
  font-size: 0.84rem;
  color: var(--lhu-muted);
  margin: 0;
  line-height: 1.4;
}

/* ==========================================================================
   Auth Cards (view.php, login.php, accesslink.inc.php)
   ========================================================================== */

.lhu-auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.lhu-auth-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border: 1px solid var(--lhu-border);
  border-radius: var(--lhu-radius-lg);
  padding: 36px 40px;
  box-shadow: var(--lhu-shadow-md);
}

.lhu-login-card {
  max-width: none;
  box-shadow: var(--lhu-shadow-md);
}

.lhu-auth-header {
  text-align: center;
  margin-bottom: 26px;
}

.lhu-auth-icon-badge {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: var(--lhu-radius-md);
  background: linear-gradient(135deg, var(--lhu-navy) 0%, var(--lhu-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(7, 43, 97, 0.2);
}

.lhu-auth-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--lhu-navy);
  margin: 0 0 6px;
}

.lhu-auth-subtitle {
  font-size: 0.92rem;
  color: var(--lhu-muted);
  line-height: 1.5;
  margin: 0;
}

.lhu-auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lhu-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lhu-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lhu-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--lhu-text-secondary);
  margin-bottom: 0;
}

.lhu-forgot-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--lhu-blue);
}

.lhu-auth-btn-group {
  margin-top: 6px;
}

.lhu-auth-btn-group .lhu-btn-primary {
  width: 100%;
  padding: 13px 20px;
  font-size: 1.02rem;
}

.lhu-auth-footer-links {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--lhu-border);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lhu-auth-meta {
  font-size: 0.9rem;
  color: var(--lhu-muted);
  margin: 0;
}

.lhu-auth-meta-sub {
  font-size: 0.86rem;
  color: var(--lhu-muted);
  margin: 4px 0 0;
}

.lhu-agent-login-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f8fafc;
  border: 1px solid var(--lhu-border);
  border-radius: var(--lhu-radius-pill);
  font-size: 0.88rem;
  color: var(--lhu-text-secondary);
  margin: 6px auto 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

#footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto 36px;
  padding: 10px 16px 24px;
  text-align: center;
  color: var(--lhu-muted);
  font-size: 0.88rem;
}

#footer p {
  margin: 0 0 6px;
  font-weight: 500;
}

#footer a {
  color: var(--lhu-navy);
  font-weight: 600;
}

#footer #poweredBy {
  display: inline;
  width: auto;
  height: auto;
  text-indent: 0;
  background: none;
  color: var(--lhu-muted);
  font-size: 0.84rem;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 960px) {
  #container,
  #footer {
    width: calc(100% - 20px);
  }

  .lhu-login-split-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lhu-topic-selector-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 860px) {
  #header {
    flex-wrap: wrap;
    padding: 14px 18px;
  }

  .lhu-nav-toggle {
    display: flex;
  }

  .lhu-header-right {
    width: 100%;
    order: 3;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--lhu-border);
  }

  #nav {
    display: none !important;
    padding: 10px 18px 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  #nav.open {
    display: flex !important;
  }

  #nav li a {
    width: 100% !important;
    border-radius: var(--lhu-radius-sm) !important;
  }

  #content {
    padding: 22px 18px 30px !important;
  }

  .lhu-action-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .lhu-features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .lhu-hero-card {
    padding: 24px 20px;
  }

  .lhu-form-card {
    padding: 22px 18px;
  }

  .lhu-auth-card,
  .lhu-login-info-panel {
    padding: 26px 20px;
  }

  .lhu-login-highlights {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 14px;
  }

  #header #logo img {
    max-height: 44px;
    max-width: 220px;
  }

  .lhu-hero-title,
  .lhu-login-hero-title {
    font-size: 1.4rem;
  }

  .lhu-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lhu-form-actions button,
  .lhu-form-actions input {
    width: 100%;
  }

  .lhu-user-info-box {
    flex-direction: column;
    gap: 12px;
  }

  .lhu-captcha-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   TICKETS LIST PAGE (tickets.php)
   ========================================================================== */

.lhu-tickets-list-wrapper {
  width: 100%;
}

.lhu-tickets-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.lhu-tickets-title-box {
  flex: 1;
}

.lhu-tickets-status-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lhu-status-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--lhu-radius-md);
  background: #ffffff;
  color: var(--lhu-text-secondary);
  border: 1px solid var(--lhu-border);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--lhu-shadow-sm);
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.lhu-status-tab:hover {
  border-color: var(--lhu-cyan);
  color: var(--lhu-blue);
  background: var(--lhu-blue-soft);
}

.lhu-status-tab.active {
  background: linear-gradient(135deg, var(--lhu-navy) 0%, var(--lhu-navy-light) 100%);
  color: #ffffff !important;
  border-color: var(--lhu-navy);
  box-shadow: 0 4px 14px rgba(7, 43, 97, 0.25);
}

.lhu-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--lhu-radius-sm);
  background: var(--lhu-blue-soft);
  color: var(--lhu-blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.lhu-status-tab.active .lhu-tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.lhu-tab-count.lhu-count-closed {
  background: #f1f5f9;
  color: var(--lhu-muted);
}

.lhu-status-tab.active .lhu-tab-count.lhu-count-closed {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.lhu-btn-new-ticket {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--lhu-radius-md);
  text-decoration: none !important;
}

/* Filter Card & Search Bar */
.lhu-filter-card {
  padding: 18px 22px;
  margin-bottom: 20px;
  background: #ffffff;
  border-radius: var(--lhu-radius-lg);
  border: 1px solid var(--lhu-border);
  box-shadow: var(--lhu-shadow-sm);
}

.lhu-tickets-filter-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lhu-search-input-group {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.lhu-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lhu-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.lhu-search-field {
  width: 100%;
  padding-left: 38px !important;
  height: 42px;
  border-radius: var(--lhu-radius-md);
}

.lhu-topic-filter-group {
  min-width: 220px;
}

.lhu-filter-select {
  height: 42px;
  border-radius: var(--lhu-radius-md);
}

.lhu-clear-filter {
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  font-size: 0.88rem;
  border-radius: var(--lhu-radius-md);
  text-decoration: none !important;
}

/* Caption & Table Header Info */
.lhu-table-caption-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 4px;
}

.lhu-caption-text {
  font-size: 0.88rem;
  color: var(--lhu-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lhu-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--lhu-blue);
  padding: 4px 10px;
  border-radius: var(--lhu-radius-sm);
  background: var(--lhu-blue-soft);
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.lhu-refresh-btn:hover {
  background: var(--lhu-blue-border);
  color: var(--lhu-navy);
}

/* Table Card & Modern Table */
.lhu-table-card {
  border-radius: var(--lhu-radius-lg);
  border: 1px solid var(--lhu-border);
  background: #ffffff;
  box-shadow: var(--lhu-shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
}

.lhu-responsive-table-container {
  width: 100%;
  overflow-x: auto;
}

.lhu-modern-table {
  width: 100% !important;
  border-collapse: collapse !important;
  text-align: left;
  border: none !important;
}

.lhu-modern-table thead {
  background: #f8fafc;
  border-bottom: 2px solid #edf2f7;
}

.lhu-modern-table th {
  padding: 14px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lhu-navy);
  border: none !important;
  white-space: nowrap;
}

.lhu-modern-table th a {
  color: var(--lhu-navy) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
}

.lhu-modern-table th a:hover {
  color: var(--lhu-blue) !important;
}

.lhu-modern-table th a i {
  font-size: 0.8rem;
  opacity: 0.6;
}

.lhu-modern-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}

.lhu-modern-table tbody tr:last-child {
  border-bottom: none;
}

.lhu-modern-table tbody tr:hover {
  background-color: #f8fbfe;
}

.lhu-modern-table tbody tr.lhu-row-answered {
  background-color: rgba(240, 247, 255, 0.4);
}

.lhu-modern-table td {
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--lhu-text);
  vertical-align: middle;
  border: none !important;
}

.lhu-th-num { width: 110px; }
.lhu-th-date { width: 140px; }
.lhu-th-status { width: 130px; }
.lhu-th-subject { width: auto; }
.lhu-th-dept { width: 160px; }

/* Table Components & Badges */
.lhu-ticket-num-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: monospace, var(--lhu-font);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--lhu-navy);
  background: var(--lhu-blue-soft);
  padding: 4px 10px;
  border-radius: var(--lhu-radius-sm);
  border: 1px solid var(--lhu-blue-border);
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.lhu-ticket-num-badge:hover {
  background: var(--lhu-blue);
  color: #ffffff;
  border-color: var(--lhu-blue);
}

.lhu-date-text {
  color: var(--lhu-muted);
  font-size: 0.88rem;
}

.lhu-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--lhu-radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.lhu-status-badge.lhu-status-open {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.lhu-status-badge.lhu-status-open i {
  color: #10b981;
  font-size: 0.65rem;
}

.lhu-status-badge.lhu-status-closed {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.lhu-status-badge.lhu-status-closed i {
  color: #64748b;
  font-size: 0.75rem;
}

.lhu-subject-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lhu-text) !important;
  font-weight: 600;
  text-decoration: none !important;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.lhu-subject-link:hover {
  color: var(--lhu-blue) !important;
}

.lhu-collab-icon {
  color: var(--lhu-blue);
  font-size: 0.95rem;
}

.lhu-answered-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--lhu-radius-md);
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--lhu-blue-soft);
  color: var(--lhu-blue);
  border: 1px solid var(--lhu-blue-border);
  margin-left: 6px;
}

.lhu-dept-badge {
  display: inline-block;
  font-size: 0.86rem;
  color: var(--lhu-text-secondary);
  background: #f8fafc;
  padding: 3px 10px;
  border-radius: var(--lhu-radius-sm);
  border: 1px solid #e2e8f0;
}

.lhu-empty-table-cell {
  padding: 48px 24px !important;
  text-align: center;
}

.lhu-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 440px;
  margin: 0 auto;
}

.lhu-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--lhu-blue-soft);
  color: var(--lhu-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.lhu-empty-state h3 {
  font-size: 1.25rem;
  color: var(--lhu-navy);
  margin: 0 0 8px;
}

.lhu-empty-state p {
  color: var(--lhu-muted);
  font-size: 0.92rem;
  margin: 0 0 16px;
}

/* Pagination */
.lhu-pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 24px 0 12px;
}

.lhu-pagination-pages {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lhu-pagination-pages a,
.lhu-pagination-pages span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--lhu-radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
  border: 1px solid var(--lhu-border);
  background: #ffffff;
  color: var(--lhu-text-secondary);
}

.lhu-pagination-pages a:hover {
  background: var(--lhu-blue-soft);
  color: var(--lhu-blue);
  border-color: var(--lhu-cyan);
}

.lhu-pagination-pages .active,
.lhu-pagination-pages span.current {
  background: var(--lhu-navy) !important;
  color: #ffffff !important;
  border-color: var(--lhu-navy) !important;
  box-shadow: 0 2px 8px rgba(7, 43, 97, 0.25);
}


/* ==========================================================================
   TICKET DETAIL VIEW PAGE (tickets.php?id=...)
   ========================================================================== */

.lhu-ticket-detail-wrapper {
  width: 100%;
}

.lhu-detail-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.lhu-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--lhu-radius-md);
  background: #ffffff;
  color: var(--lhu-navy);
  border: 1px solid var(--lhu-border);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--lhu-shadow-sm);
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.lhu-btn-back:hover {
  background: var(--lhu-blue-soft);
  border-color: var(--lhu-cyan);
  color: var(--lhu-blue);
}

.lhu-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lhu-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--lhu-radius-md);
  background: #ffffff;
  color: var(--lhu-text-secondary);
  border: 1px solid var(--lhu-border);
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: var(--lhu-shadow-sm);
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.lhu-btn-action:hover {
  background: var(--lhu-blue-soft);
  color: var(--lhu-blue);
  border-color: var(--lhu-cyan);
}

.lhu-btn-action-primary {
  background: var(--lhu-navy);
  color: #ffffff;
  border-color: var(--lhu-navy);
}

.lhu-btn-action-primary:hover {
  background: var(--lhu-navy-light);
  color: #ffffff;
}

/* Ticket Hero Card */
.lhu-ticket-hero-card {
  padding: 24px 28px;
  background: #ffffff;
  border-radius: var(--lhu-radius-lg);
  border: 1px solid var(--lhu-border);
  box-shadow: var(--lhu-shadow-sm);
  margin-bottom: 22px;
}

.lhu-hero-top-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.lhu-ticket-id-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: monospace, var(--lhu-font);
  font-size: 0.95rem;
  font-weight: 800;
  background: var(--lhu-navy);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: var(--lhu-radius-sm);
}

.lhu-topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--lhu-radius-sm);
  background: var(--lhu-blue-soft);
  color: var(--lhu-navy);
  border: 1px solid var(--lhu-blue-border);
  font-size: 0.82rem;
  font-weight: 700;
}

.lhu-ticket-subject-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--lhu-navy);
  margin: 0 0 12px;
  line-height: 1.35;
}

.lhu-hero-sub-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--lhu-muted);
}

.lhu-hero-sub-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Guest Banner */
.lhu-guest-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--lhu-blue-soft);
  border: 1px solid var(--lhu-blue-border);
  border-radius: var(--lhu-radius-md);
  margin-bottom: 22px;
}

.lhu-guest-icon {
  font-size: 1.6rem;
  color: var(--lhu-blue);
}

.lhu-guest-content strong {
  color: var(--lhu-navy);
}

.lhu-guest-content p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--lhu-text-secondary);
}

/* Info Grid (2 Column Cards) */
.lhu-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}

.lhu-info-card {
  padding: 20px 24px;
  background: #ffffff;
  border-radius: var(--lhu-radius-lg);
  border: 1px solid var(--lhu-border);
  box-shadow: var(--lhu-shadow-sm);
}

.lhu-info-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--lhu-border);
}

.lhu-card-header-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--lhu-radius-sm);
  background: var(--lhu-blue-soft);
  color: var(--lhu-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.lhu-info-card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lhu-navy);
  margin: 0;
}

.lhu-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed #f1f5f9;
  font-size: 0.92rem;
}

.lhu-meta-row:last-child {
  border-bottom: none;
}

.lhu-meta-label {
  color: var(--lhu-muted);
  font-weight: 500;
}

.lhu-meta-value {
  color: var(--lhu-text);
  text-align: right;
}

/* Custom Data Card */
.lhu-custom-data-card {
  padding: 20px 24px;
  background: #ffffff;
  border-radius: var(--lhu-radius-lg);
  border: 1px solid var(--lhu-border);
  box-shadow: var(--lhu-shadow-sm);
  margin-bottom: 22px;
}

.lhu-custom-data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.lhu-custom-field-item {
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: var(--lhu-radius-md);
  border: 1px solid #e2e8f0;
}

.lhu-custom-field-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--lhu-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
  display: block;
}

.lhu-custom-field-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--lhu-text);
}


/* ==========================================================================
   THREAD & TIMELINE SECTION (view.inc.php)
   ========================================================================== */

.lhu-thread-section {
  margin-top: 36px;
  margin-bottom: 30px;
}

.lhu-section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.lhu-section-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--lhu-radius-md);
  background: linear-gradient(135deg, var(--lhu-navy) 0%, var(--lhu-navy-light) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(7, 43, 97, 0.2);
}

.lhu-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--lhu-navy);
  margin: 0;
}

.lhu-section-subtitle {
  font-size: 0.88rem;
  color: var(--lhu-muted);
  margin: 2px 0 0;
}

.lhu-thread-timeline-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Thread Cards */
.thread-entry.lhu-thread-card {
  border-radius: var(--lhu-radius-lg) !important;
  border: 1px solid var(--lhu-border) !important;
  background: #ffffff !important;
  box-shadow: var(--lhu-shadow-sm) !important;
  overflow: hidden !important;
  margin-bottom: 0 !important;
  position: relative !important;
}

/* User Message vs Staff Response */
.thread-entry.lhu-thread-message {
  border-left: 5px solid var(--lhu-cyan) !important;
}

.thread-entry.lhu-thread-response {
  border-left: 5px solid var(--lhu-navy) !important;
  background: #fafcfe !important;
}

.lhu-thread-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 14px 20px !important;
  border-bottom: 1px solid var(--lhu-border) !important;
  background: #f8fafc !important;
  min-height: auto !important;
  height: auto !important;
}

.thread-entry.lhu-thread-response .lhu-thread-header {
  background: linear-gradient(135deg, rgba(7, 43, 97, 0.05) 0%, rgba(0, 114, 188, 0.04) 100%) !important;
}

.lhu-thread-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lhu-thread-author {
  font-size: 0.98rem;
  color: var(--lhu-navy);
}

.lhu-role-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--lhu-radius-sm);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.lhu-role-client {
  background: var(--lhu-blue-soft);
  color: var(--lhu-blue);
  border: 1px solid var(--lhu-blue-border);
}

.lhu-role-staff {
  background: var(--lhu-navy);
  color: #ffffff;
}

.lhu-thread-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lhu-thread-time {
  font-size: 0.84rem;
  color: var(--lhu-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lhu-edited-badge {
  font-size: 0.78rem;
  background: #fef3c7;
  color: #92400e;
  padding: 2px 8px;
  border-radius: var(--lhu-radius-sm);
  border: 1px solid #fde68a;
}

.lhu-thread-title {
  padding: 10px 20px;
  background: #f1f5f9;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--lhu-navy);
  border-bottom: 1px solid var(--lhu-border);
  display: flex;
  align-items: center;
  gap: 6px;
}

.lhu-thread-body-content {
  padding: 20px 24px !important;
  font-size: 0.96rem !important;
  line-height: 1.7 !important;
  color: var(--lhu-text) !important;
  background: transparent !important;
}

.lhu-body-inner {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.lhu-body-inner p {
  margin: 0 0 1em;
}

.lhu-body-inner p:last-child {
  margin-bottom: 0;
}

/* Attachments in Thread */
.lhu-attachments-container {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--lhu-border);
}

.lhu-attachments-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--lhu-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lhu-attachment-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lhu-attachment-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f8fafc;
  border: 1px solid var(--lhu-border);
  border-radius: var(--lhu-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lhu-text);
  transition: all 0.2s ease;
}

.lhu-attachment-pill a {
  color: var(--lhu-blue) !important;
  text-decoration: none !important;
}

.lhu-attachment-pill:hover {
  background: var(--lhu-blue-soft);
  border-color: var(--lhu-cyan);
}

/* System Thread Events — Activity Log (bottom panel) */
.lhu-activity-log-section {
  margin-top: 28px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  overflow: hidden;
}

.lhu-activity-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.lhu-activity-log-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--lhu-navy);
  letter-spacing: 0.01em;
}

.lhu-activity-log-title i {
  color: var(--lhu-muted);
  font-size: 0.9rem;
}

.lhu-activity-log-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lhu-muted);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 2px 10px;
}

.lhu-activity-log-list {
  display: flex;
  flex-direction: column;
}

.lhu-messages-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lhu-thread-empty {
  text-align: center;
  color: var(--lhu-muted);
  padding: 24px 16px;
  margin: 0;
}

.lhu-thread-timeline-wrapper .thread-event,
.lhu-activity-log-list .thread-event,
.lhu-thread-event {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 9px 16px !important;
  background: #ffffff !important;
  border-radius: 0 !important;
  border: none !important;
  border-bottom: 1px solid #eef2f6 !important;
  font-size: 0.84rem !important;
  color: var(--lhu-muted) !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

.lhu-activity-log-list .thread-event:last-child,
.lhu-activity-log-list .lhu-thread-event:last-child {
  border-bottom: none !important;
}

.lhu-thread-timeline-wrapper .thread-event + .thread-event,
.lhu-thread-event + .lhu-thread-event {
  border-top: none !important;
}

.lhu-thread-timeline-wrapper .thread-event .type-icon,
.lhu-thread-event .type-icon,
.lhu-event-icon {
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  width: 18px !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.lhu-thread-timeline-wrapper .thread-event .type-icon::after,
.lhu-thread-event .type-icon::after {
  display: none !important;
  content: none !important;
}

.lhu-thread-timeline-wrapper .thread-event .type-icon i,
.lhu-thread-event .type-icon i,
.lhu-event-icon i {
  color: #94a3b8 !important;
  font-size: 0.85rem !important;
  opacity: 1 !important;
}

.lhu-thread-timeline-wrapper .thread-event .description,
.lhu-thread-event .description,
.lhu-event-text {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  flex: 1 !important;
  line-height: 1.5 !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  color: #64748b !important;
  display: block !important;
}

.lhu-thread-timeline-wrapper .thread-event .description b,
.lhu-thread-timeline-wrapper .thread-event .description strong,
.lhu-event-text b,
.lhu-event-text strong {
  color: #475569 !important;
  font-weight: 600 !important;
}

.lhu-thread-timeline-wrapper .thread-event.action,
.lhu-thread-event.action {
  background: #f8fafc !important;
}


/* ==========================================================================
   REPLY FORM (view.inc.php)
   ========================================================================== */

.lhu-reply-form-card {
  padding: 26px 30px;
  background: #ffffff;
  border-radius: var(--lhu-radius-lg);
  border: 2px solid var(--lhu-blue-border);
  box-shadow: var(--lhu-shadow-md);
  margin-top: 32px;
}

.lhu-reply-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--lhu-border);
}

.lhu-reply-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--lhu-navy);
  margin: 0;
}

.lhu-reply-subtitle {
  font-size: 0.88rem;
  color: var(--lhu-muted);
  margin: 2px 0 0;
}

.lhu-reply-attachments-box {
  margin-top: 18px;
  padding: 16px 20px;
  background: #f8fafc;
  border-radius: var(--lhu-radius-md);
  border: 1px dashed var(--lhu-border);
}

.lhu-reply-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.lhu-alert-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: var(--lhu-radius-md);
  margin-bottom: 20px;
  font-weight: 600;
}

.lhu-alert-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: var(--lhu-radius-md);
  margin-bottom: 20px;
  font-weight: 600;
}

/* RichText / Redactor Polish */
.redactor-box {
  border: 1.5px solid var(--lhu-border) !important;
  border-radius: var(--lhu-radius-md) !important;
  box-shadow: var(--lhu-shadow-sm) !important;
  overflow: hidden !important;
}

.redactor-box:focus-within {
  border-color: var(--lhu-border-focus) !important;
  box-shadow: 0 0 0 4px rgba(0, 137, 207, 0.15) !important;
}

.redactor-toolbar {
  background: #f8fafc !important;
  border-bottom: 1px solid var(--lhu-border) !important;
}

.redactor-editor {
  padding: 16px 18px !important;
  font-family: var(--lhu-font) !important;
  font-size: 0.95rem !important;
  min-height: 140px !important;
}


/* ==========================================================================
   RESPONSIVE OVERRIDES FOR TICKETS & DETAIL
   ========================================================================== */

@media (max-width: 960px) {
  .lhu-info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .lhu-tickets-header {
    flex-direction: column;
    align-items: stretch;
  }

  .lhu-tickets-status-tabs {
    width: 100%;
  }

  .lhu-status-tab {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .lhu-ticket-subject-title {
    font-size: 1.35rem;
  }

  .lhu-detail-top-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .lhu-detail-actions {
    justify-content: flex-end;
  }

  .lhu-reply-form-card {
    padding: 20px 18px;
  }

  .lhu-reply-actions-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .lhu-reply-actions-bar button {
    width: 100%;
    justify-content: center;
  }

  .lhu-thread-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px;
  }

  .lhu-thread-meta {
    width: 100%;
    justify-content: space-between;
  }

  .lhu-modern-table th,
  .lhu-modern-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

