
/* Ticket chat layout */
.ticket-msg {
  display: flex;
  flex-direction: column;
  margin-bottom: .6rem;
}
.ticket-msg--left {
  align-items: flex-start;
}
.ticket-msg--right {
  align-items: flex-end;
}
.ticket-meta {
  max-width: 75%;
  margin-bottom: 2px;
}
.ticket-meta--right {
  text-align: right;
}
.ticket-bubble {
  position: relative;
  max-width: 75%;
  padding: .625rem .875rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  line-height: 1.5;
  display: inline-block;
}
.ticket-bubble--staff {
  background: #f8fafc !important; /* very light gray */
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
}
.ticket-bubble--user {
  background: #e8f0fe !important; /* light blue */
  color: #0a1f44 !important;
  border: 1px solid #d2e3fc !important;
}

/* Force per-side alignment */
.ticket-msg--left .ticket-bubble { align-self: flex-start; }
.ticket-msg--right .ticket-bubble { align-self: flex-end; }
/* Bubble tails */
.ticket-msg--left .ticket-bubble:after {
  content: '';
  position: absolute;
  left: -6px;
  top: 14px;
  border-width: 8px 8px 8px 0;
  border-style: solid;
  border-color: transparent #f8fafc transparent transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.04));
}
.ticket-msg--right .ticket-bubble:after {
  content: '';
  position: absolute;
  right: -6px;
  top: 14px;
  border-width: 8px 0 8px 8px;
  border-style: solid;
  border-color: transparent transparent transparent #e8f0fe;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.04));
}

/* Tail borders (outline) to match bubble border colors */
.ticket-msg--left .ticket-bubble:before {
  content: '';
  position: absolute;
  left: -7px; /* 1px further for border */
  top: 14px;
  border-width: 9px 9px 9px 0;
  border-style: solid;
  border-color: transparent #e2e8f0 transparent transparent; /* staff border */
}
.ticket-msg--right .ticket-bubble:before {
  content: '';
  position: absolute;
  right: -7px; /* 1px further for border */
  top: 14px;
  border-width: 9px 0 9px 9px;
  border-style: solid;
  border-color: transparent transparent transparent #d2e3fc; /* user border */
}

/* Attachments inside bubble */
.ticket-attachments ul {
  padding-left: 16px;
}
.ticket-attachments a {
  color: inherit;
  text-decoration: underline;
}

/* Responsive max width */
@media (max-width: 576px) {
  .ticket-bubble, .ticket-meta { max-width: 100%; }
}

/* Slight spacing improvements */
.ticket-msg + .ticket-msg { margin-top: .35rem; }
.ticket-meta { opacity: .8; }

/* Footer alignments to mirror header spacing */
.footer-section .navbar-brand {
  margin-bottom: 8px;
}
.footer-section .footer-right-wrap .btn {
  padding: .5rem .9rem;
  font-size: .95rem;
}
.footer-section .footer-nav-wrap .nav-link {
  padding-left: 0;
  color: rgba(255,255,255,.9);
}
.footer-section .footer-nav-wrap .nav-link:hover {
  color: #fff;
}

/* Modal z-index fixes */
#whoisModal {
  z-index: 10000 !important;
}

#whoisModal .modal-dialog {
  z-index: 10001 !important;
}

.modal-backdrop {
  z-index: 9999 !important;
}

/* Sticky Footer - Footer'ı ekranın en altına yapıştır */
html, body {
  height: 100%;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
}

/* Header sabit kalır */
#header {
  flex-shrink: 0;
}

/* Main content alanı kalan boşluğu doldurur */
.main {
  flex: 1 0 auto;
  min-height: 0;
}

/* Footer her zaman en altta */
.footer-section {
  flex-shrink: 0;
  margin-top: auto;
}