:root {
  --body-bg-light: #f8f9fa;
  --navbar-bg-light: rgba(255, 255, 255, 0.75);
  --navbar-blur: 8px;
  --navbar-shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
  --text-light: #212529;
}

html, body {
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--body-bg-light);
  transition: background-color 0.3s ease;
}
.custom-navbar {
  background-color: var(--navbar-bg-light);
  backdrop-filter: saturate(180%) blur(var(--navbar-blur));
  -webkit-backdrop-filter: saturate(180%) blur(var(--navbar-blur));
  box-shadow: var(--navbar-shadow-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.custom-navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-light) !important;
}
.custom-navbar .nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
}
.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
  color: #0d6efd !important;
}
.custom-navbar .navbar-toggler {
  border: none;
}
.custom-navbar .navbar-toggler:focus {
  box-shadow: none;
}
.navbar-text {
  color: var(--text-light);
}

@media (max-width: 575.98px) {
  .container, .container-fluid { padding-left: 12px; padding-right: 12px; }
  h3, h2 { font-size: 1.2rem !important; }
  .btn { font-size: 0.95rem !important; }
  .card:not(.ticket-card) { padding: 1rem !important; }
  table { font-size: 0.9rem; }
}

.ticket-bubble {
  min-width: 120px;
  max-width: 75%;
  padding: 0.5em 0.9em;
  border-radius: 1.2em;
  position: relative;
  margin-bottom: 0.2em;
  word-break: break-word;
  background: #fff;
  border: 1px solid #e9ecef;
  font-size: 0.97em;
  line-height: 1.35;
}
.ticket-bubble-own {
  background: #d1e7dd;
  border-color: #bcd0c7;
  text-align: right;
}
.ticket-bubble-system {
  background: #e9ecef;
  border-style: dashed;
  color: #6c757d;
  font-style: italic;
  font-size: 0.93em;
  padding: 0.4em 0.8em;
}
.ticket-bubble .ticket-attachments {
  margin-top: 0.3em;
}
.ticket-attachments img {
  max-width: 90px;
  max-height: 70px;
  border-radius: 5px;
  border: 1px solid #dee2e6;
  margin-right: 0.3em;
}
.ticket-card {
  background: rgba(255,255,255,0.25) !important;
  box-shadow: 0 2px 16px 0 rgba(31, 38, 135, 0.15);
  border-radius: 1em;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.ticket-bubble .mb-1 { margin-bottom: 0.2em !important; }
.ticket-chat-area {
  max-height: 60vh;
  min-height: 300px;
  overflow-y: auto;
  background: #f8f9fa;
  padding: 0.7em 0.5em 0.5em 0.5em;
  border-radius: 8px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#ticket-messages-list {
  overflow-y: auto;
}

.glass-card {
  background: rgba(255,255,255,0.25) !important;
  box-shadow: 0 2px 16px 0 rgba(31, 38, 135, 0.15);
  border-radius: 1em;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  transition: background-color 0.3s, box-shadow 0.3s;
  padding: 1.5rem 1.5rem;
  margin-bottom: 2rem;
}

.glass-navbar {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.10);
  border-radius: 1.2rem;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.5rem 1rem;
  margin-bottom: 1.2rem;
}
.navbar-title {
  font-size: 1.15rem;
  color: #2563eb;
  letter-spacing: 0.5px;
}
.icon-btn {
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  padding: 0.5rem;
  font-size: 1.25rem;
  color: #2563eb;
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
}
.icon-btn:hover {
  background: #e0e7ef;
  color: #1a237e;
}
@media (max-width: 767.98px) {
  .navbar-title {
    font-size: 1rem;
  }
  .glass-navbar {
    border-radius: 0.7rem;
    padding: 0.4rem 0.5rem;
  }
  .navbar-brand span {
    display: none;
  }
  .icon-btn {
    padding: 0.38rem;
    font-size: 1.1rem;
  }
  .d-md-flex { display: none !important; }
  .dropdown-menu.glass-dropdown {
    min-width: 160px;
    right: 0;
    left: auto;
    position: fixed !important;
    top: 60px !important;
    right: 10px !important;
    left: auto !important;
    width: 90vw;
    max-width: 320px;
    z-index: 1100 !important;
    box-shadow: 0 12px 32px 0 rgba(31, 38, 135, 0.22), 0 4px 24px 0 rgba(31, 38, 135, 0.10);
    animation: fadeInUp 0.4s;
  }
  .glass-card-main,
  .glass-card,
  .glass-section {
    position: static !important;
    z-index: auto !important;
  }
}

.glass-dropdown {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-radius: 1.2rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18), 0 4px 24px 0 rgba(31, 38, 135, 0.10);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.5rem 0.2rem;
  min-width: 170px;
  animation: fadeInUp 0.4s;
  z-index: 1055 !important;
}
.glass-dropdown .dropdown-item {
  border-radius: 0.7rem;
  padding: 0.6rem 1.2rem;
  font-size: 1.05rem;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.glass-dropdown .dropdown-item:hover {
  background: rgba(79,140,255,0.08);
}
.glass-dropdown .dropdown-divider {
  margin: 0.3rem 0;
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px);}
  100% { opacity: 1; transform: translateY(0);}
}

.glass-offcanvas {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-top-left-radius: 1.2rem;
  border-bottom-left-radius: 1.2rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18), 0 4px 24px 0 rgba(31, 38, 135, 0.10);
  border: 1px solid rgba(255,255,255,0.25);
  animation: fadeInUp 0.4s;
}
.glass-offcanvas .offcanvas-header {
  border-bottom: none;
}
.glass-offcanvas .glass-btn {
  background: rgba(255,255,255,0.7);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #2563eb;
  font-weight: 500;
  font-size: 1.08rem;
  border-radius: 0.9rem;
  margin-bottom: 0.2rem;
  box-shadow: 0 2px 8px 0 rgba(79,140,255,0.08);
  transition: background 0.18s, color 0.18s;
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.glass-offcanvas .glass-btn:hover {
  background: #e0e7ef;
  color: #1a237e;
}
.glass-offcanvas hr {
  margin: 0.7rem 0 0.7rem 0;
  border-top: 1.5px solid rgba(79,140,255,0.10);
}
@media (max-width: 767.98px) {
  .glass-offcanvas {
    width: 90vw !important;
    max-width: 340px;
    border-radius: 1.2rem 0 0 1.2rem;
    padding-top: 0.7rem;
  }
}

.glass-collapse-menu {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-radius: 0 0 1.2rem 1.2rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18), 0 4px 24px 0 rgba(31, 38, 135, 0.10);
  border: 1px solid rgba(255,255,255,0.25);
  margin-top: -0.5rem;
  z-index: 1055;
}
.glass-collapse-menu .glass-btn {
  background: rgba(255,255,255,0.7);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #2563eb;
  font-weight: 500;
  font-size: 1.08rem;
  border-radius: 0.9rem;
  margin-bottom: 0.2rem;
  box-shadow: 0 2px 8px 0 rgba(79,140,255,0.08);
  transition: background 0.18s, color 0.18s;
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.glass-collapse-menu .glass-btn:hover {
  background: #e0e7ef;
  color: #1a237e;
}
.glass-collapse-menu hr {
  margin: 0.7rem 0 0.7rem 0;
  border-top: 1.5px solid rgba(79,140,255,0.10);
}
@media (min-width: 768px) {
  .glass-collapse-menu { display: none !important; }
}

.table.glass-card {
  background: rgba(255,255,255,0.35) !important;
  box-shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.13);
  border-radius: 1em;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  transition: background-color 0.3s, box-shadow 0.3s;
  padding: 0 !important;
  margin-bottom: 2rem;
} 