/* =========================================================
   Helpdesk App Layout Layer
   ========================================================= */

:root {
  --bs-body-font-family: 'Lato', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--bs-body-font-family);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0.2px;
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: 700;
}

main {
  flex: 1 0 auto;
}

.container,
.container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
}


/* =========================================================
   Navbar
   ========================================================= */

.navbar {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.navbar-text {
  font-size: 0.92rem;
  margin-right: 0.75rem;
}

.navbar .btn {
  min-width: 88px;
  min-height: 38px;
  font-size: 0.85rem;
}

/* =========================================================
   Cards
   ========================================================= */

.card {
  border-radius: 1rem;
  overflow: hidden;
}

.card-header {
  padding: 1rem 1.25rem;
}

.card-body {
  padding: 1.25rem;
}

/* =========================================================
   Home dashboard shell
   ========================================================= */

.home-dashboard {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.dashboard-main,
.dashboard-sidebar {
  min-width: 0;
}

.dashboard-sidebar {
  display: grid;
  gap: 1.5rem;
}

/* =========================================================
   Hero
   ========================================================= */

.hero-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2rem;
}

.hero-title {
  margin: 0 0 0.45rem;
  font-size: 2rem;
  line-height: 1.12;
  font-weight: 700;
}

.hero-text {
  margin: 0;
  font-size: 1rem;
}

.hero-actions .btn {
  min-width: 150px;
  min-height: 46px;
  border-radius: 0.75rem;
  font-weight: 700;
}

/* =========================================================
   Tickets panel
   ========================================================= */

.tickets-card {
  height: 100%;
}

.tickets-header {
  min-height: 72px;
}

.table {
  font-size: 0.94rem;
}

.table > :not(caption) > * > * {
  padding: 1rem 1rem;
}

.table thead th {
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  text-transform: uppercase;
}

.table tbody td {
  vertical-align: middle;
}

.table a {
  text-decoration: none;
}

.table a:hover {
  text-decoration: underline;
}

.table .badge {
  min-width: 52px;
  text-align: center;
}

.table tbody td:nth-child(2) a {
  font-weight: 600;
}

/* =========================================================
   Clickable table rows + zebra + hover
   ========================================================= */

/* Clickable behavior */
.table-row-link {
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease;
}

/* Zebra striping (keep this) */
.table tbody tr:nth-child(odd) > * {
  background-color: #ffffff !important;
}

.table tbody tr:nth-child(even) > * {
  background-color: #f8fbff !important;
}

/* Hover (stronger than zebra) */
.table-row-link:hover > * {
  background-color: #eaf2fb !important;
}

/* Optional press effect */
.table-row-link:active {
  transform: scale(0.998);
}

/* =========================================================
   Sidebar cards
   ========================================================= */

.sidebar-card .card-body {
  padding: 1.6rem 1.4rem;
}

.sidebar-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.sidebar-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.sidebar-card .btn {
  min-height: 46px;
  border-radius: 0.75rem;
  font-weight: 700;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.btn-sm {
  min-height: 36px;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

/* =========================================================
   Footer
   ========================================================= */

   .app-footer {
    margin-top: auto;
    padding: 1rem 0;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(100, 116, 139, 0.16);
    backdrop-filter: blur(4px);
  }

  .app-footer .container {
    text-align: center;
  }
  
  .app-footer-text {
    display: inline-block;
    font-size: 0.82rem;
    color: #64748b;
    letter-spacing: 0.01em;
  }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 991.98px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hero-body {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.25rem;
  }

  .hero-actions .btn {
    margin-top: 0.5rem;
  }
}

@media (max-width: 767.98px) {
  .navbar-text {
    display: none;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .table {
    font-size: 0.88rem;
  }
}

/* =========================================================
   App Navbar
   ========================================================= */

.app-header {
  position: relative;
  z-index: 1030;
}

.app-navbar {
  padding-top: 0;
  padding-bottom: 0;
  min-height: 76px;
}

.app-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.app-navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff !important;
  font-weight: 700;
  margin-right: 1rem;
}

.app-brand-title {
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.01em;
}

.app-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.app-navbar-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.app-user-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.95);
}

.app-user-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.72;
  }
  
.app-user-name {
    font-size: 0.95rem;
    font-weight: 700;
  }

.app-navbar-btn {
  min-width: 96px;
  min-height: 40px;
  border-radius: 0.7rem;
  font-weight: 700;
  padding-left: 1rem;
  padding-right: 1rem;
}

.app-navbar .btn-outline-light {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

.app-navbar .btn-outline-light:hover,
.app-navbar .btn-outline-light:focus {
  background-color: #fff;
  border-color: #fff;
  color: var(--bs-primary);
}

/* Responsive */
@media (max-width: 767.98px) {
  .app-navbar-inner {
    min-height: auto;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    align-items: flex-start;
  }

  .app-navbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .app-user-chip {
    align-items: flex-start;
  }

  .app-brand-title {
    font-size: 0.98rem;
  }

  .app-navbar-btn {
    min-width: 88px;
  }
}

/* =========================================================
   Single column dashboard (no sidebar)
   ========================================================= */

.dashboard-single {
  margin-top: 0.25rem;
}

.dashboard-main-full {
  max-width: 100%;
}

/* Slightly widen content on large screens for better use */
@media (min-width: 1200px) {
  .dashboard-main-full {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* My Tickets page */
.my-tickets-page .tickets-card {
  height: auto;
}

/* =========================================================
   Ticket create page
   ========================================================= */

.ticket-create-page .ticket-form-card {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}