/* All existing CSS styles moved here */
:root {
  --primary-color: #2c3e50;
  --primary-color-light: #5dade2;
  --secondary-color: #34495e;
  --accent-color: #7f8c8d;
  --background-color: #f4f6f7;
  --text-color: #2c3e50;
  --card-background: #ffffff;
  --primary-color-rgb: 44, 62, 80;
  --chat-bg-color: #f9f9f9;
  --sent-message-bg: #c8e6c9;
  --received-message-bg: #e3f2fd;
  --sent-message-border-color: #66bb6a;
  --received-message-border-color: #64b5f6;
  --sent-message-text-color: var(--text-color);
  --received-message-text-color: var(--text-color);
  --font-family: 'Open Sans', Arial, sans-serif;
}

[v-cloak] {
  display: none;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-family);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 16px;
}

.dark-mode {
  --background-color: #1a1a1a;
  --text-color: #f5f5f5;
  --card-background: #2c2c2c;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background-color: var(--primary-color);
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  transition: width 0.3s ease, left 0.3s ease;
  z-index: 1000;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.sidebar.closed {
  width: 80px;
}

@media (max-width: 768px) {
  .sidebar {
    width: 250px;
    left: -250px;
  }
  .sidebar.open {
    left: 0;
  }
  .sidebar.closed {
    left: -250px;
  }
  .sidebar.hidden {
    display: none;
  }
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar {
  width: 60px;
  height: 60px;
  background-color: #ffffff;
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar.closed .avatar {
  width: 40px;
  height: 40px;
  font-size: 1.5em;
}

.user-name {
  margin-top: 10px;
  font-size: 1em;
  color: #fff;
  text-align: center;
}

.sidebar.closed .user-name {
  display: none;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  flex: 1;
}

.sidebar ul li a {
  display: flex;
  align-items: center;
  color: #fff;
  padding: 15px 20px;
  text-decoration: none;
  transition: background 0.3s ease, border-left 0.3s ease;
  border-left: 4px solid transparent;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
  background-color: var(--secondary-color);
  border-left: 4px solid #fff;
}

.sidebar ul li a i {
  margin-right: 15px;
  font-size: 1.2em;
}

.sidebar ul li a span {
  font-size: 1em;
}

.sidebar ul li a:hover {
  cursor: pointer;
}

.sidebar.closed ul li a {
  justify-content: center;
  padding: 15px 0;
}

.sidebar.closed ul li a i {
  margin-right: 0;
}

.sidebar.closed ul li a span {
  display: none;
}

.container {
  transition: margin-left 0.3s ease, padding 0.3s ease;
  margin: 0;
  padding: 70px 15px 15px 15px;
  padding-bottom: 60px;
}

@media (min-width: 769px) {
  .container.sidebar-open {
    margin-left: 250px;
  }
  .container.sidebar-closed {
    margin-left: 80px;
  }
}

.container_login_cadastro {
  max-width: 400px;
  margin: 0 auto;
  padding: 80px 20px;
}

.main-header {
  position: fixed;
  top: 0;
  left: 250px;
  right: 0;
  height: 60px;
  background-color: var(--card-background);
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 900;
  transition: left 0.3s ease;
  justify-content: flex-start;
}

.sidebar.closed ~ .main-header {
  left: 80px;
}

@media (max-width: 768px) {
  .main-header {
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0 !important;
    right: 0;
    height: 60px;
    background-color: var(--card-background);
    padding: 0 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 900;
    justify-content: flex-start;
  }
  .main-header .toggle-menu {
    display: none;
  }
  .main-header .header-title {
    text-align: center;
    font-size: 1.5em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .main-header .back-button {
    display: block;
    margin-right: 15px;
  }
  .main-header .status-change-button {
    margin-left: auto;
  }
  .main-header .notification-icon {
    position: absolute;
    right: 15px;
  }
}

.main-header.hidden {
  display: none;
}

.main-header .toggle-menu {
  font-size: 1.5em;
  cursor: pointer;
  margin-right: 20px;
}

.main-header .header-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-start;
}

.header-icon {
  display: none;
}

@media (max-width: 768px) {
  .header-icon {
    display: inline-block;
    margin-right: 8px;
  }
}

.status-change-button {
  margin-left: auto;
  position: relative;
}

.status-change-button button {
  background: none;
  border: none;
  font-size: 1.5em;
  color: var(--primary-color);
  cursor: pointer;
}

.status-options {
  position: absolute;
  top: 35px;
  right: 0;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
  z-index: 1000;
}

.status-options button {
  display: block;
  width: 100%;
  padding: 10px 15px;
  background: none;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  text-align: left;
  color: #333;
  font-size: 14px;
}

.status-options button:last-child {
  border-bottom: none;
}

.status-options button:hover {
  background-color: #f0f0f0;
}

.status-options button[disabled] {
  background-color: #e0e0e0;
  cursor: not-allowed;
  color: #999;
}

.card {
  background-color: var(--card-background);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  padding: 30px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease-out;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .card {
    padding: 20px;
    margin-bottom: 20px;
  }
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.login-form,
.register-form {
  max-width: 400px;
  margin: 40px auto;
  background-color: var(--card-background);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .login-form,
  .register-form {
    padding: 20px;
    margin: 20px auto;
  }
}

.login-form .form-group,
.register-form .form-group {
  margin-bottom: 25px;
  width: 100%;
  box-sizing: border-box;
}

.login-form label,
.register-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text-color);
}

.login-form input[type="text"],
.register-form input[type="text"],
.login-form input[type="password"],
.register-form input[type="password"],
.login-form input[type="email"],  
.register-form input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-size: 14px;
  background-color: var(--card-background);
  color: var(--text-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

.login-form input:focus,
.register-form input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.1);
}

.dark-mode .login-form input,
.dark-mode .register-form input {
  background-color: var(--card-background);
  color: var(--text-color);
  border-color: #404040;
}

.dark-mode .login-form input:focus,
.dark-mode .register-form input:focus {
  border-color: var(--primary-color-light);
  box-shadow: 0 0 0 2px rgba(93, 173, 226, 0.2);
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
  width: 100%;
  padding-right: 40px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  cursor: pointer;
  color: var(--text-color);
  opacity: 0.6;
  transition: opacity 0.3s;
}

.toggle-password:hover {
  opacity: 1;
}

.register-link,
.login-link {
  text-align: center;
  margin-top: 15px;
}

.register-link a,
.login-link a {
  color: var(--primary-color-light);
  font-weight: bold;
  text-decoration: none;
}

.register-link a:hover,
.login-link a:hover {
  text-decoration: underline;
}

.ticket-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: var(--card-background);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ticket-table th,
.ticket-table td {
  border: none;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding: 20px;
  text-align: center;
}

.ticket-table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
}

.ticket-table tr:last-child td {
  border-bottom: none;
}

.ticket-table tbody td {
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.ticket-table tr:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 8px;
  text-align: left;
}

@media screen and (max-width: 600px) {
  .ticket-table, thead, tbody, th, td, tr {
    display: block;
  }
  .ticket-table thead tr {
    display: none;
  }
  .ticket-table tr {
    margin-bottom: 1rem;
  }
  .ticket-table td {
    display: block;
    border: none;
    border-bottom: 1px solid #ddd;
    position: relative;
    padding-left: 50%;
    text-align: right;
  }
  .ticket-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 50%;
    padding-left: 10px;
    font-weight: bold;
    text-align: left;
  }
  .ticket-table td[data-label="Ações"] {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .ticket-table,
  .ticket-table thead,
  .ticket-table tbody,
  .ticket-table th,
  .ticket-table td,
  .ticket-table tr {
    display: block;
  }
  .ticket-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  .ticket-table tr {
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
  }
  .ticket-table td {
    border: none;
    position: relative;
    padding-left: calc(50% + 15px);
    padding-right: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: right;
  }
  .ticket-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    width: calc(50% - 30px);
    white-space: nowrap;
    font-weight: bold;
    color: var(--primary-color);
    text-align: left;
    pointer-events: none;
  }
  .ticket-table td[data-label="Ações"] {
    text-align: center;
  }
}

.ticket-table select {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background-color: var(--card-background);
  color: var(--text-color);
  width: 100%;
  max-width: 150px;
}

.dark-mode .ticket-table select {
  background-color: #333;
  color: #fff;
  border-color: #555;
}

.user-role {
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: bold;
  display: inline-block;
  text-align: center;
  margin: 0 auto;
}

.role-administrador { 
  background-color: #e74c3c; 
  color: white; 
}
.role-requisitante { 
  background-color: #3498db; 
  color: white; 
}
.role-técnico { 
  background-color: #2ecc71; 
  color: white; 
}

.user-status {
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: bold;
  display: inline-block;
  min-width: 80px;
  text-align: center;
}

.status-ativo { 
  background-color: #2ecc71; 
  color: white; 
}
.status-pendente { 
  background-color: #f39c12; 
  color: white; 
}
.status-inativo { 
  background-color: #95a5a6; 
  color: white; 
}

.user-edit-actions {
  display: flex;
  gap: 5px;
}

@media (max-width: 768px) {
  .user-edit-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  
  .user-edit-actions button {
    width: 100%;
    justify-content: center;
  }
}

.action-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-acao-ver, .btn-acao-editar {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-acao-ver {
  background-color: #2c3e50;
  color: #ffffff;
}

.btn-acao-ver:hover {
  background-color: #243b50;
  transform: translateY(-2px);
}

.btn-acao-editar {
  background-color: #34495e;
  color: #ffffff;
}

.btn-acao-editar:hover {
  background-color: #5C5C5C;
  transform: translateY(-2px);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background-color: var(--primary-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--primary-color);
}

.btn-secondary {
  background-color: var(--accent-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #5C5C5C;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.create-ticket-form,
.edit-ticket-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background-color: var(--card-background);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .create-ticket-form,
  .edit-ticket-form {
    padding: 1rem;
    box-shadow: none;
  }
}

.create-ticket-form .form-actions,
.edit-ticket-form .form-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

@media (min-width: 768px) {
  .create-ticket-form,
  .edit-ticket-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .create-ticket-form .full-width,
  .edit-ticket-form .full-width {
    grid-column: 1 / -1;
  }
  .create-ticket-form .form-actions,
  .edit-ticket-form .form-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
  }
}

.create-ticket-form input,
.create-ticket-form select,
.create-ticket-form textarea,
.edit-ticket-form input,
.edit-ticket-form select,
.edit-ticket-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-size: 16px;
}

.create-ticket-form .form-actions .btn,
.edit-ticket-form .form-actions .btn {
  padding: 12px 24px;
  font-size: 16px;
  margin-left: 0;
}

.dashboard-title {
  display: none;
}

.container_login_cadastro .dashboard-title {
  display: block;
  font-size: 2em;
  color: #34495e;
  margin-bottom: 1rem;
  text-align: left;
  position: relative;
  padding-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .dashboard-title {
    text-align: center;
    font-size: 1.5em;
  }
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  color: white;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  position: relative;
  animation: fadeInUp 0.5s ease-out;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.stat-card i {
  font-size: 1.8em;
  margin-bottom: 0.3rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .stat-card i {
    display: none;
  }
}

.stat-card h3 {
  font-size: 0.9em;
  margin-bottom: 0.3rem;
  font-weight: 500;
  opacity: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.stat-card p {
  font-size: 1.5em;
  font-weight: bold;
  margin: 0;
}

.stat-card.total-tickets {
  background-color: #2c3e50;
}

.stat-card.open-tickets {
  background-color: #ff006e;
}

.stat-card.in-progress-tickets {
  background-color: #2589da;
}

.stat-card.closed-tickets {
  background-color: #01b894;
}

.search-container {
  position: relative;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 100%;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color);
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

.search-input {
  width: 100%;
  padding: 0.8rem 2.8rem;
  border: 1px solid #e0e0e0;
  border-radius: 24px;
  font-size: 1rem;
  transition: box-shadow 0.3s ease;
  box-sizing: border-box;
  background-color: var(--card-background);
  color: var(--text-color);
}

.search-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-color);
}

.filter-export-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 10px;
}

@media (max-width: 768px) {
  .filter-export-container {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 10px;
  }

  .filter-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .filter-container label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
  }

  .filter-container select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: var(--card-background);
    font-size: 16px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.762-3.762L10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
  }

  .button-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    margin-top: 10px;
  }

  .button-container button:not(.btn-export-dropdown) {
    width: 100%;
    justify-content: center;
  }

  .dark-mode .filter-container select {
    border-color: rgba(255, 255, 255, 0.1);
    background-color: var(--card-background);
    color: var(--text-color);
  }

  .search-container {
    margin-bottom: 15px;
  }
}

.filter-container {
  align-items: center;
  gap: 5px;
}

.filter-container label {
  display: inline-block;
  font-weight: 600;
  color: var(--text-color);
}

.filter-container select,
.filter-container input[type="text"] {
  appearance: none;
  padding: 0.8rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 24px;
  font-size: 1rem;
  transition: box-shadow 0.3s ease;
  background-color: #fff;
  width: auto;
  color: var(--text-color);
}

.filter-container select:focus,
.filter-container input[type="text"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-color);
}

.button-container {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.btn-refresh, .btn-export, .btn-pdf {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-refresh {
  background-color: #17a2b8;
  color: #ffffff;
}

.btn-refresh:hover {
  background-color: #138496;
  transform: translateY(-2px);
}

.btn-export {
  background-color: #28a745;
  color: #ffffff;
}

.btn-export:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

.btn-pdf {
  background-color: #dc3545;
  color: #ffffff;
}

.btn-pdf:hover {
  background-color: #c82333;
  transform: translateY(-2px);
}

/* Export Dropdown Styles */
.export-dropdown {
  position: relative;
  display: inline-block;
}

.btn-export-dropdown {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  background-color: #6c757d;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  width: auto !important;
  justify-content: flex-start !important;
}

.btn-export-dropdown:hover {
  background-color: #5a6268;
  transform: translateY(-2px);
}

.btn-export-dropdown i.fa-chevron-down {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.btn-export-dropdown:hover i.fa-chevron-down {
  transform: rotate(180deg);
}

.export-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 180px;
  margin-top: 5px;
  animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.export-option {
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #333;
  transition: background-color 0.2s ease;
}

.export-option:hover {
  background-color: #f8f9fa;
}

.export-option:first-child {
  border-radius: 5px 5px 0 0;
}

.export-option:last-child {
  border-radius: 0 0 5px 5px;
}

.export-option i {
  width: 16px;
  text-align: center;
}

.export-option i.fa-file-excel {
  color: #28a745;
}

.export-option i.fa-file-pdf {
  color: #dc3545;
}

/* Dark mode styles for export dropdown */
.dark-mode .export-dropdown-menu {
  background: #2c3e50;
  border-color: #34495e;
}

.dark-mode .export-option {
  color: #ecf0f1;
}

.dark-mode .export-option:hover {
  background-color: #34495e;
}

@media (max-width: 768px) {
  .filter-export-container {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-container {
    width: 100%;
    margin-bottom: 1rem;
  }
  .button-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
}

.ticket-details-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 100px);
  background-color: var(--card-background);
  border-radius: 10px;
  margin-bottom: 20px;
}

@media (min-width: 769px) {
  .ticket-details-container {
    overflow: hidden;
    border: 1px solid #ddd;
  }
}

@media (max-width: 768px) {
  .ticket-details-container {
    overflow: hidden;
    border: none;
    margin: 0;
    padding: 0;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    position: relative;
  }

  .chat-screen.container {
    padding: 0;
    margin: 0;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
  }
  
  .chat-input-area {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px;
    background: var(--card-background);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 10;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }

  .chat-message {
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
  }

  .audio-message {
    margin-bottom: 10px;
  }
}

.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 15px;
  overflow-y: auto;
  background-color: var(--chat-bg-color);
  padding-bottom: 80px;
}

@media (max-width: 768px) {
  .chat-container {
    padding: 60px 15px 90px;
    margin: 0;
  }
}

.chat-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.chat-header h2 {
  margin: 0;
  font-size: 24px;
  color: var(--secondary-color);
  text-align: center;
}

.chat-header .status-btn {
  margin-left: auto;
}

.chat-message {
  display: flex;
  margin-bottom: 10px;
  width: 100%;
}

.chat-message.sent {
  justify-content: flex-end;
}

.chat-message.received {
  justify-content: flex-start;
}

.chat-message-content {
  max-width: 70%;
  padding: 10px 15px;
  background-color: var(--received-message-bg);
  color: var(--received-message-text-color);
  position: relative;
  word-wrap: break-word;
  box-sizing: border-box;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-left: 5px solid var(--received-message-border-color);
  border-radius: 15px;
}

.chat-message.sent .chat-message-content {
  background-color: var(--sent-message-bg);
  color: var(--sent-message-text-color);
  border-left: 5px solid var(--sent-message-border-color);
  border-bottom-right-radius: 0;
}

.chat-message.received .chat-message-content {
  background-color: var(--received-message-bg);
  color: var(--received-message-text-color);
  border-left: 5px solid var(--received-message-border-color);
  border-bottom-left-radius: 0;
}

.chat-message-content p {
  margin: 5px 0 0 0;
}

.chat-message-header {
  font-size: 12px;
  color: #888;
  margin-bottom: 5px;
}

.chat-message .chat-timestamp {
  display: none;
}

.chat-input-area {
  display: flex;
  padding: 10px;
  background-color: #fff;
  align-items: center;
  border-top: 1px solid #ddd;
  position: sticky;
  bottom: 0;
  box-sizing: border-box;
  gap: 10px;
  flex-wrap: nowrap;
}

@media (max-width: 768px) {
  .chat-input-area {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px;
    gap: 8px;
  }

  .chat-input-area.recording {
    justify-content: space-between;
  }

  .chat-input-area.recording input[type="text"] {
    display: none;
  }

  .chat-input-area input[type="text"] {
    flex: 1;
    min-width: 0;
    margin: 0;
  }
}

.chat-input-area input[type="text"] {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  margin: 0 10px;
  font-size: 16px;
  outline: none;
  background-color: #ecf0f1;
  color: #2c3e50;
}

.chat-input-area input[type="file"] {
  display: none;
}

.chat-input-area label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  cursor: pointer;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  font-size: 24px;
  transition: background-color 0.3s, transform 0.2s;
  flex-shrink: 0;
  flex-grow: 0;
  margin-right: 10px;
}

.chat-input-area label:hover {
  background-color: var(--primary-color-light);
  transform: translateY(-2px);
}

.chat-input-area button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  font-size: 24px;
  flex-shrink: 0;
  flex-grow: 0;
}

.chat-input-area button:hover {
  background-color: var(--primary-color-light);
  transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
  .chat-message-content {
    max-width: 80%;
  }
  .ticket-header h2 {
    font-size: 1em;
  }
  .chat-input-area label, .chat-input-area button {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

#notifications {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.notification {
  display: flex;
  align-items: center;
  background-color: #2c3e50;
  color: #fff;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  opacity: 1;
  transition: opacity 0.5s ease;
}

.notification.success {
  background-color: #01b894;
}

.notification.error {
  background-color: #ff006e;
}

#notifications .notification-list-enter-active,
#notifications .notification-list-leave-active {
  transition: all 0.5s ease;
}

#notifications .notification-list-enter,
#notifications .notification-list-leave-to {
  opacity: 0;
  transform: translateY(-20px);
}

.notification i {
  margin-right: 10px;
  font-size: 1.2em;
}

.overlay {
  display: none;
}

@media (max-width: 768px) {
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 900;
    display: none;
  }
  .overlay.show {
    display: block;
  }
  .overlay.hidden {
    display: none;
  }
}

.chart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chart-container h3 {
  margin-bottom: 20px;
  font-size: 1.2em;
  color: var(--text-color);
  text-align: center;
}

.chart-container canvas {
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
}

@media screen and (min-width: 769px) {
  .chart-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

.attachment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.attachment-list li {
  margin-bottom: 5px;
}

.btn-remove {
  background-color: #e74c3c;
  color: #fff;
  padding: 5px 10px;
  font-size: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 10px;
}

.btn-remove:hover {
  background-color: #c0392b;
}

@media (max-width: 768px) {
  .chat-screen.container {
    padding: 0;
  }
  .chat-screen .chat-input-area {
    width: 100%;
  }
}

.back-button {
  font-size: 1.5em;
  cursor: pointer;
  margin-right: 15px;
}

.main-header .back-button {
  display: none;
}

@media screen and (max-width: 768px) {
  .main-header .back-button {
    display: block;
  }
  .main-header .toggle-menu {
    display: none;
  }
  .main-header .header-title {
    text-align: center;
    font-size: 1.5em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  .main-header {
    height: 50px;
    padding: 0 10px;
  }
  .main-header .header-title {
    font-size: 1.2em;
  }
  .sidebar {
    width: 200px;
  }
  .sidebar.closed {
    width: 60px;
  }
  .sidebar ul li a {
    padding: 10px 15px;
  }
  .sidebar ul li a i {
    font-size: 1em;
  }
  .container {
    padding-top: 60px;
    padding-bottom: 80px;
  }
  .card {
    padding: 15px;
  }
  .search-container {
    margin-bottom: 1rem;
  }
  .ticket-table td {
    padding-left: calc(50% + 10px);
  }
  .ticket-table td:before {
    padding-left: 5px;
    width: 45%;
  }
  .filter-export-container {
    flex-direction: column;
    align-items: stretch;
  }
  .chat-input-area input[type="text"] {
    margin: 0 5px;
  }
  .chat-input-area label, .chat-input-area button {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .stat-card h3 {
    font-size: 0.8em;
  }
  .stat-card p {
    font-size: 1.2em;
  }
}

select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.7;
}

.forgot-password {
  text-align: center;
  margin-top: 15px;
}

.forgot-password a {
  color: var(--primary-color-light);
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.3s ease;
}

.forgot-password a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.notification-icon {
  position: relative;
  cursor: pointer;
  margin-left: 20px;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .notification-icon {
    margin-left: auto;
    margin-right: 10px;
  }
}

.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #e74c3c;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.7em;
  min-width: 18px;
  text-align: center;
}

.notification-panel {
  position: fixed;
  top: 60px;
  right: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 60px);
  background-color: var(--card-background);
  border-radius: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow-y: auto;
  z-index: 1000;
}

@media (min-width: 769px) {
  .notification-panel {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 300px;
    max-width: 300px;
    border-radius: 8px;
  }
}

.notification-header {
  position: sticky;
  top: 0;
  background-color: var(--card-background);
  padding: 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}

.notification-header h3 {
  margin: 0;
  font-size: 1.1em;
}

.notification-header button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.9em;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  white-space: nowrap;
  min-height: 36px;
}

.notification-header button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-1px);
}

.notification-header button:active {
  transform: translateY(1px);
}

@media (max-width: 768px) {
  .notification-panel {
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .notification-header {
    padding: 12px;
  }

  .notification-header h3 {
    font-size: 1em;
  }

  .notification-header button {
    padding: 6px 10px;
    font-size: 0.8em;
  }
}

@media (hover: none) {
  .notification-header button {
    -webkit-tap-highlight-color: transparent;
  }

  .notification-item {
    -webkit-tap-highlight-color: transparent;
  }
}

.notification-item {
  padding: 15px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.3s;
}

.notification-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.notification-content p {
  margin: 0 0 5px 0;
  font-size: 0.9em;
}

.notification-content small {
  color: #666;
  font-size: 0.8em;
}

.no-notifications {
  padding: 20px;
  text-align: center;
  color: #666;
}

/* Add styles for dark mode */
.dark-mode .notification-panel {
  background-color: var(--card-background);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .notification-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .notification-item {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .notification-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .notification-content small {
  color: #999;
}

.dark-mode .no-notifications {
  color: #999;
}

/* Hide notification icon in chat screen */
.chat-screen .notification-icon {
  display: none;
}

/* Smooth scrolling for the whole page */
html {
  scroll-behavior: smooth;
}

/* Better tap targets for mobile */
button, 
a,
select,
input[type="submit"] {
  min-height: 44px;
  min-width: 44px;
}

/* App-like transitions */
.fadeInUp-enter-active {
  animation: fadeInUp 0.3s ease-out;
}

.fadeInUp-leave-active {
  animation: fadeOutDown 0.2s ease-in;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* Enhanced mobile styles */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 999;
  padding: 0 10px;
}

@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }

  .mobile-nav.hidden {
    display: none;
  }

  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.8em;
    padding: 5px;
    min-height: unset;
    width: 20%;
  }

  .mobile-nav a i {
    font-size: 1.4em;
    margin-bottom: 4px;
  }

  .mobile-nav a span {
    font-size: 0.85em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }

  .mobile-nav a.active {
    color: var(--primary-color);
  }

  .dark-mode .mobile-nav {
    background: rgba(44, 44, 44, 0.95);
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .container {
    padding-bottom: 80px !important;
  }

  .chat-input-area {
    /* bottom: 60px; */
  }

  .toggle-theme-floating {
    bottom: 70px;
  }

  .chat-screen .toggle-theme-floating {
    bottom: 130px;
  }
}

/* Enhanced form elements */
input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
  appearance: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.dark-mode input[type="text"],
.dark-mode input[type="password"],
.dark-mode input[type="email"],
.dark-mode select,
.dark-mode textarea {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

/* Enhanced buttons */
.btn {
  border-radius: 12px;
  padding: 12px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.95);
}

/* Enhanced notification panel */
.notification-panel {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
}

/* Status badges enhancement */
.user-status,
.user-role {
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.8em;
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s infinite linear;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Chat enhancements */
.chat-message {
  opacity: 0;
  animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pull to refresh effect */
.pull-to-refresh {
  position: relative;
  overflow: hidden;
}

.pull-to-refresh::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -20px;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-color);
  border-top-color: transparent;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}

.pulling .pull-to-refresh::before {
  opacity: 1;
  animation: spin 1s infinite linear;
}

.toggle-theme-floating {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  border: none;
  color: #fff;
  font-size: 1.5em;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.toggle-theme-floating:hover {
  transform: scale(1.1);
  background-color: var(--secondary-color);
}

@media (max-width: 768px) {
  .toggle-theme-floating {
    bottom: 80px;
    width: 45px;
    height: 45px;
    font-size: 1.2em;
  }
}

.currentRoute-ticket-details .toggle-theme-floating,
body[class*="currentRoute-ticket-details"] .toggle-theme-floating,
.chat-screen .toggle-theme-floating {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.chat-screen .toggle-theme-floating,
.currentRoute-ticket-details .toggle-theme-floating {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.chat-input-area .send-text-btn,
.chat-input-area .audio-record-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  font-size: 24px;
  flex-shrink: 0;
  flex-grow: 0;
}

.chat-input-area .send-text-btn:hover,
.chat-input-area .audio-record-btn:hover {
  background-color: var(--primary-color-light);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .chat-input-area .send-text-btn,
  .chat-input-area .audio-record-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .recording-controls {
    gap: 8px;
  }
}

.audio-record-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  margin-left: 10px;
  margin-right: 0;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .audio-record-btn {
    width: 44px;
    height: 44px;
    margin: 0;
  }

  .chat-input-area label {
    margin: 0;
    width: 44px;
    height: 44px;
  }

  .send-text-btn {
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
  }
}

.recording-controls {
  display: flex;
  gap: 10px;
  margin-left: 10px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .recording-controls {
    flex: 1;
    justify-content: center;
    margin: 0;
    gap: 20px;
  }

  .recording-cancel-btn,
  .recording-send-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

.recording-cancel-btn,
.recording-send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  font-size: 24px;
  flex-shrink: 0;
  flex-grow: 0;
}

.recording-cancel-btn {
  background-color: #e74c3c;
}

.recording-cancel-btn:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
}

.recording-send-btn {
  background-color: #2ecc71;
}

.recording-send-btn:hover {
  background-color: #27ae60;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .recording-cancel-btn,
  .recording-send-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .recording-controls {
    gap: 8px;
  }
}

.audio-record-btn.recording {
  display: none;
}

.recording-time {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1;
}

@media (max-width: 768px) {
  .recording-time {
    top: -22px;
    font-size: 11px;
  }
}

.audio-message {
  display: flex;
  align-items: center;
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  padding: 5px 10px;
  width: fit-content;
}

.chat-audio-player {
  max-width: 200px;
  height: 36px;
  border-radius: 18px;
  outline: none;
}

.dark-mode .chat-audio-player {
  background-color: rgba(255, 255, 255, 0.1);
}

audio::-webkit-media-controls-panel {
  background-color: var(--card-background);
}

audio::-webkit-media-controls-play-button {
  background-color: var(--primary-color);
  border-radius: 50%;
}

.dark-mode audio::-webkit-media-controls-panel {
  background-color: var(--card-background);
  color: var(--text-color);
}

.audio-download-link {
  margin-left: 8px;
  color: var(--primary-color);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.audio-download-link:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .chat-audio-player {
    max-width: 160px;
    height: 32px;
  }
  
  .audio-message {
    padding: 4px 8px;
  }
}

.chat-message:last-child {
  margin-bottom: 15px;
}

@keyframes highlight-row {
  0% { background-color: rgba(255, 71, 87, 0.2); }
  50% { background-color: rgba(255, 71, 87, 0.4); }
  100% { background-color: transparent; }
}

.highlight-row {
  animation: highlight-row 2s ease-in-out;
}

.ticket-table tr {
  transition: background-color 0.3s ease;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

@keyframes pulse {
  0% { box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3); }
  50% { box-shadow: 0 6px 25px rgba(255, 71, 87, 0.5); }
  100% { box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3); }
}

.priority-alert {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff4757, #e84118);
  color: white;
  padding: 15px 25px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 15px;
  animation: bounceIn 0.5s ease-out forwards, pulse 2s infinite ease-in-out 0.5s;
  cursor: pointer;
  max-width: 90%;
  width: auto;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.priority-alert:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
  animation-play-state: paused;
}

.priority-alert i.fa-exclamation-triangle {
  font-size: 1.5em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.priority-alert-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.priority-alert .ticket-id {
  font-size: 1.1em;
  font-weight: 700;
}

.priority-alert .ticket-desc {
  font-size: 0.9em;
  opacity: 0.95;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.priority-alert .close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.1em;
  padding: 6px;
  cursor: pointer;
  margin-left: 10px;
  opacity: 0.8;
  transition: opacity 0.3s, background-color 0.3s, transform 0.2s;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.priority-alert .close-btn:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .priority-alert {
    bottom: 80px;
    padding: 15px 20px;
    border-radius: 20px;
    gap: 12px;
    width: calc(100% - 40px);
    max-width: 400px;
  }

  .priority-alert.chat-adjust {
    bottom: 140px;
  }

  .priority-alert .ticket-id {
    font-size: 1em;
    line-height: 1.3;
  }

  .priority-alert .ticket-desc {
    font-size: 0.85em;
    line-height: 1.3;
  }

  .priority-alert i.fa-exclamation-triangle {
    font-size: 1.3em;
    flex-shrink: 0;
  }

  .priority-alert .close-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1em;
    padding: 8px;
    margin-left: 12px;
    flex-shrink: 0;
  }

  .priority-alert-content {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .priority-alert {
    padding: 12px 16px;
    gap: 10px;
    bottom: 75px;
  }

  .priority-alert .ticket-id {
    font-size: 0.95em;
  }

  .priority-alert .ticket-desc {
    font-size: 0.8em;
  }

  .priority-alert .close-btn {
    width: 32px;
    height: 32px;
    margin-left: 8px;
  }
}

/* Fade transition for the alert */
.fade-enter-active, .fade-leave-active {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.fade-enter, .fade-leave-to {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
}

.reset-password-form {
  max-width: 400px;
  margin: 40px auto;
  padding: 40px 30px;
  background-color: var(--card-background);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.reset-password-form h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.8em;
}

.reset-password-form .form-group {
  margin-bottom: 25px;
  width: 100%;
  box-sizing: border-box;
}

.reset-password-form input[type="email"] {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  background-color: var(--card-background);
  color: var(--text-color);
  box-sizing: border-box;
}

.install-app-button {
  text-align: center;
  margin-top: 20px;
}

.btn-pwa {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-pwa:hover {
  background-color: #45a049;
  transform: translateY(-2px);
}

.btn-pwa i {
  font-size: 18px;
}

@media (max-width: 768px) {
  .install-app-button {
    margin-top: 15px;
  }
  
  .btn-pwa {
    width: 100%;
    justify-content: center;
  }
}

.chat-screen .toggle-theme-floating,
.currentRoute-ticket-details .toggle-theme-floating {
  display: none !important;
}

/* Recording indicator styles */
.recording-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.recording-dot {
  width: 12px;
  height: 12px;
  background-color: #e74c3c;
  border-radius: 50%;
  animation: recording-pulse 1s infinite ease-in-out;
}

.recording-status-time {
  font-size: 14px;
  color: var(--text-color);
}

@keyframes recording-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.7;
  }
}

/* Image attachments in chat & ticket details */
.attachment-image {
  max-width: 150px;
  max-height: 150px;
  object-fit: cover;
  margin: 5px;
  cursor: pointer;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Full‐screen overlay for image preview */
.image-preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.image-preview {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.attachment-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-input-area input[type="file"] {
  display: none;
}