/* CSS Reset and Base Styles */
:root {
  /* Nova paleta de cores profissional */
  --primary-color: #2563EB;
  --primary-color-light: #3B82F6;
  --primary-color-dark: #1D4ED8;
  --secondary-color: #F1F5F9;
  --accent-color: #0EA5E9;
  --background-color: #F8FAFC;
  --text-color: #1E293B;
  --text-color-light: #64748B;
  --card-background: #FFFFFF;
  --primary-color-rgb: 37, 99, 235;
  --chat-bg-color: #F8FAFC;
  --sent-message-bg: #EFF6FF;
  --received-message-bg: #F1F5F9;
  --sent-message-border-color: #3B82F6;
  --received-message-border-color: #94A3B8;
  --sent-message-text-color: var(--text-color);
  --received-message-text-color: var(--text-color);
  --success-color: #10B981;
  --warning-color: #F59E0B;
  --error-color: #EF4444;
  --info-color: #0EA5E9;
  --font-family: 'Segoe UI', 'Roboto', 'Inter', 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;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.dark-mode {
  --background-color: #0F172A;
  --text-color: #F1F5F9;
  --text-color-light: #CBD5E1;
  --card-background: #1E293B;
  --secondary-color: #334155;
  --chat-bg-color: #1E293B;
  --sent-message-bg: #1E40AF;
  --received-message-bg: #334155;
  --sent-message-border-color: #3B82F6;
  --received-message-border-color: #64748B;
}

/* Sidebar Styling */
.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: 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
}

.sidebar.closed {
  width: 70px;
}

@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: 24px 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: 24px;
  font-weight: 600;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

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

.user-name {
  margin-top: 12px;
  font-size: 16px;
  color: #fff;
  text-align: center;
  font-weight: 500;
}

.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: 14px 20px;
  text-decoration: none;
  transition: background 0.3s ease, border-left 0.3s ease;
  border-left: 4px solid transparent;
  font-weight: 500;
}

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

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

.sidebar ul li a span {
  font-size: 16px;
}

.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 Styling */
.container {
  transition: margin-left 0.3s ease, padding 0.3s ease;
  margin: 0;
  padding: 70px 24px 24px 24px;
  padding-bottom: 70px;
}

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

.container_login_cadastro {
  max-width: 450px;
  margin: 0 auto;
  padding: 80px 24px;
  box-sizing: border-box;
}

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

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

@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 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 900;
    justify-content: flex-start;
  }
  .main-header .toggle-menu {
    display: none;
  }
  .main-header .header-title {
    text-align: center;
    font-size: 18px;
    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: 20px;
  cursor: pointer;
  margin-right: 20px;
  color: var(--primary-color);
}

.main-header .header-title {
  font-size: 18px;
  font-weight: 600;
  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;
    color: var(--primary-color);
  }
}

/* Status Change Button */
.status-change-button {
  margin-left: auto;
  position: relative;
}

.status-change-button button {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--primary-color);
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.status-change-button button:hover {
  background-color: rgba(0, 120, 212, 0.1);
}

.status-options {
  position: absolute;
  top: 40px;
  right: 0;
  background-color: var(--card-background);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 1000;
  min-width: 180px;
  border: 1px solid rgba(0,0,0,0.08);
}

.status-options button {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--secondary-color);
  cursor: pointer;
  text-align: left;
  color: var(--text-color);
  font-size: 14px;
  transition: background-color 0.2s;
}

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

.status-options button:hover {
  background-color: var(--secondary-color);
}

.status-options button[disabled] {
  background-color: rgba(0,0,0,0.05);
  cursor: not-allowed;
  color: var(--text-color-light);
}

/* Dashboard Redesign - Summary Cards */
.dashboard-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 24px;
  display: block;
}

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 64px;
}

.summary-card {
  background-color: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border-top: 4px solid var(--primary-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.summary-card.total {
  border-top-color: var(--primary-color);
}

.summary-card.pending {
  border-top-color: var(--warning-color);
}

.summary-card.delayed {
  border-top-color: var(--error-color);
}

.summary-card.completed {
  border-top-color: var(--success-color);
}

.card-value {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--text-color);
}

.summary-card.total .card-value {
  color: var(--primary-color);
}

.summary-card.pending .card-value {
  color: var(--warning-color);
}

.summary-card.delayed .card-value {
  color: var(--error-color);
}

.summary-card.completed .card-value {
  color: var(--success-color);
}

.card-label {
  font-size: 14px;
  color: var(--text-color-light);
  font-weight: 500;
}

/* Dashboard Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}

.dashboard-header .dashboard-title {
  margin-bottom: 0;
  flex: 1;
}

.dashboard-action-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-light) 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.dashboard-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, var(--primary-color-dark) 0%, var(--primary-color) 100%);
}

.dashboard-action-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.dashboard-action-btn i {
  font-size: 16px;
}

/* Dashboard Charts Redesign */
.dashboard-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.chart-box {
  background-color: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 24px;
  height: 100%;
}

.chart-box h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 24px;
  text-align: center;
}

.chart-container {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Recent Activity Section */
.recent-activity {
  background-color: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 24px;
  margin-bottom: 64px;
}

.recent-activity h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 20px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.activity-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
  background-color: var(--secondary-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}

.activity-icon.Solicitado {
  background-color: var(--warning-color);
}

.activity-icon.Concluído {
  background-color: var(--success-color);
}

.activity-icon.EmAnálise {
  background-color: var(--info-color);
}

.activity-icon.EmProcessamento {
  background-color: var(--primary-color);
}

.activity-details {
  flex: 1;
}

.activity-title {
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text-color);
}

.activity-meta {
  display: flex;
  font-size: 13px;
  color: var(--text-color-light);
  gap: 16px;
}

.activity-status {
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  color: white;
  background-color: var(--primary-color);
  margin-left: 16px;
}

.activity-status.Solicitado {
  background-color: var(--warning-color);
}

.activity-status.Concluído {
  background-color: var(--success-color);
}

.activity-status.EmAnálise {
  background-color: var(--info-color);
}

.activity-status.EmProcessamento {
  background-color: var(--primary-color);
}

.no-activity {
  text-align: center;
  padding: 32px;
  color: var(--text-color-light);
  font-style: italic;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .dashboard-summary {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .dashboard-header .dashboard-title {
    font-size: 20px;
  }
  
  .dashboard-action-btn {
    padding: 8px 16px;
    font-size: 13px;
    width: 100%;
    justify-content: center;
  }
  
  .dashboard-charts {
    grid-template-columns: 1fr;
  }
  
  .card-value {
    font-size: 28px;
  }
  
  .card-label {
    font-size: 13px;
  }
  
  .activity-meta {
    flex-direction: column;
    gap: 4px;
  }
}

/* Dark Mode Adjustments */
.dark-mode .summary-card {
  background-color: var(--card-background);
}

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

/* Card Styling */
.card {
  background-color: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 32px;
  padding: 24px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease-out;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
}

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

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Login & Register Forms */
.login-form,
.register-form {
  max-width: 400px;
  margin: 40px auto;
  background-color: var(--card-background);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

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

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

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

.password-wrapper input {
  width: 100%;
  padding: 14px 40px 14px 16px;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  font-size: 15px;
  background-color: var(--card-background);
  color: var(--text-color);
  transition: all 0.3s ease;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-color-light);
  opacity: 0.7;
  transition: opacity 0.3s ease;
  z-index: 1;
  padding: 4px;
  background: none;
  border: none;
}

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

.login-form input:focus,
.register-form input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

.login-form .btn-primary,
.register-form .btn-primary {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  border: none;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-form .btn-primary:hover,
.register-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .login-form,
  .register-form {
    padding: 24px;
    margin: 20px;
    width: auto;
    max-width: 100%;
  }

  .login-form input[type="text"],
  .login-form input[type="password"],
  .login-form input[type="email"],
  .register-form input[type="text"],
  .register-form input[type="password"],
  .register-form input[type="email"] {
    padding: 12px 14px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .password-wrapper input {
    padding: 12px 36px 12px 14px;
    font-size: 14px;
  }
  
  .toggle-password {
    right: 10px;
    font-size: 14px;
  }
}

/* Dark mode adjustments */
.dark-mode .login-form,
.dark-mode .register-form {
  background-color: var(--card-background);
  border-color: rgba(255,255,255,0.1);
}

.dark-mode .login-form input,
.dark-mode .register-form input {
  background-color: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: var(--text-color);
}

.dark-mode .password-wrapper input {
  background-color: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}

.dark-mode .toggle-password {
  color: var(--text-color-light);
}

.dark-mode .login-form input:focus,
.dark-mode .register-form input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Register Form */
.register-form {
  max-width: 400px;
  margin: 40px auto;
  background-color: var(--card-background);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

.register-form .dashboard-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  color: var(--primary-color);
  font-size: 28px;
  font-weight: 600;
}

.register-form .dashboard-title i {
  font-size: 32px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.register-form .form-group {
  margin-bottom: 24px;
  position: relative;
}

.register-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
  font-size: 14px;
}

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

.register-form input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.register-form .password-wrapper {
  position: relative;
}

.register-form .toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-color-light);
  opacity: 0.7;
  transition: opacity 0.3s ease;
  padding: 4px;
}

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

.register-form .btn-primary {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  border: none;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.register-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

.register-form .login-link {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.1);
  font-size: 14px;
  color: var(--text-color);
}

.register-form .login-link a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.register-form .login-link a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Dark mode adjustments */
.dark-mode .register-form {
  background-color: var(--card-background);
  border-color: rgba(255,255,255,0.1);
}

.dark-mode .register-form input {
  background-color: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: var(--text-color);
}

.dark-mode .register-form input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.dark-mode .register-form .login-link {
  border-top-color: rgba(255,255,255,0.1);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .register-form {
    padding: 24px;
    margin: 20px;
    border-radius: 12px;
  }

  .register-form .dashboard-title {
    font-size: 24px;
  }

  .register-form .dashboard-title i {
    font-size: 28px;
  }

  .register-form input[type="text"],
  .register-form input[type="password"],
  .register-form input[type="email"] {
    padding: 12px 14px;
    font-size: 14px;
  }

  .register-form .btn-primary {
    padding: 12px;
    font-size: 15px;
  }
}

/* Table Styling */
.ticket-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background-color: var(--card-background);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.08);
}

.ticket-table th,
.ticket-table td {
  border: none;
  border-top: 1px solid var(--secondary-color);
  border-bottom: 1px solid var(--secondary-color);
  padding: 16px;
  text-align: center;
}

.ticket-table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.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;
  font-size: 14px;
}

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

@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: 16px;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
  }
  .ticket-table td {
    display: block;
    border: none;
    border-bottom: 1px solid var(--secondary-color);
    position: relative;
    padding-left: 50%;
    padding-right: 16px;
    text-align: right;
    box-sizing: border-box;
  }
  .ticket-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 50%;
    padding-left: 16px;
    font-weight: 600;
    text-align: left;
    box-sizing: border-box;
  }
  .ticket-table td:last-child {
    border-bottom: none;
  }
  .ticket-table td[data-label="Ações"] {
    text-align: right;
  }
  
  /* Add specific styling for action buttons in mobile view */
  .ticket-table td[data-label="Ações"] .action-buttons {
    justify-content: flex-end;
  }
}

.dark-mode .ticket-table select {
  background-color: #3B3A39;
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

/* User Roles & Status Styling */
.user-role {
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  margin: 0 auto;
  font-size: 13px;
}

.role-administrador { 
  background-color: #2563EB; 
  color: white; 
}
.role-tecnico { 
  background-color: #059669; 
  color: white; 
}
.role-solicitante { 
  background-color: #6264A7; 
  color: white; 
}
.role-requisitante { 
  background-color: #6264A7; 
  color: white; 
}

.user-status {
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  min-width: 80px;
  text-align: center;
  font-size: 13px;
}

.status-ativo { 
  background-color: #10B981; 
  color: white; 
}
.status-aprovado { 
  background-color: #10B981; 
  color: white; 
}
.status-pendente { 
  background-color: #F59E0B; 
  color: white; 
}
.status-inativo { 
  background-color: #A19F9D; 
  color: white; 
}

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

@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 */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.btn-acao-ver, .btn-acao-editar {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 36px;
}

.btn-acao-ver {
  background-color: #2563EB;
  color: #ffffff;
}

.btn-acao-ver:hover {
  background-color: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-acao-editar {
  background-color: #0EA5E9;
  color: #ffffff;
}

.btn-acao-editar:hover {
  background-color: #0284C7;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-acao-editar:disabled {
  background-color: #9CA3AF;
  color: #6B7280;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}

.btn-acao-editar:disabled:hover {
  background-color: #9CA3AF;
  transform: none;
  box-shadow: none;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background-color: var(--primary-color);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  font-family: var(--font-family);
}

.btn:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.btn-secondary {
  background-color: #0EA5E9;
}

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

.btn-secondary:hover {
  background-color: #0284C7;
}

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

/* Create & Edit Ticket Form */
.create-ticket-form,
.edit-ticket-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

@media (max-width: 768px) {
  .create-ticket-form,
  .edit-ticket-form {
    padding: 0;
  }
}

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

@media (min-width: 768px) {
  .create-ticket-form,
  .edit-ticket-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .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: 12px;
  }
}

.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 rgba(0,0,0,0.2);
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--card-background);
}

.create-ticket-form input:focus,
.create-ticket-form select:focus,
.create-ticket-form textarea:focus,
.edit-ticket-form input:focus,
.edit-ticket-form select:focus,
.edit-ticket-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.25);
  outline: none;
}

.create-ticket-form .form-actions .btn,
.edit-ticket-form .form-actions .btn {
  padding: 10px 20px;
  font-size: 14px;
  margin-left: 0;
  min-width: 120px;
}

/* Dashboard Stats */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  color: white;
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  overflow: hidden;
  position: relative;
  animation: fadeInUp 0.5s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.stat-card.total-tickets {
  background-color: #2563EB;
  background-image: linear-gradient(135deg, #2563EB, #1D4ED8);
}

.stat-card.open-tickets {
  background-color: #F59E0B;
  background-image: linear-gradient(135deg, #F59E0B, #D97706);
}

.stat-card.in-progress-tickets {
  background-color: #0EA5E9;
  background-image: linear-gradient(135deg, #0EA5E9, #0284C7);
}

.stat-card.closed-tickets {
  background-color: #10B981;
  background-image: linear-gradient(135deg, #10B981, #059669);
}

.stat-card i {
  font-size: 24px;
  margin-bottom: 8px;
  opacity: 0.9;
}

.stat-card h3 {
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 600;
  opacity: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.stat-card p {
  font-size: 24px;
  font-weight: bold;
  margin: 8px 0 0;
}

/* Chart Styling */
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.chart-container {
  background-color: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 380px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.08);
}

.chart-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.12);
}

.chart-container h3 {
  margin-bottom: 24px;
  font-size: 18px;
  color: var(--text-color);
  text-align: center;
  font-weight: 600;
  width: 100%;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.dark-mode .chart-container h3 {
  border-bottom-color: rgba(255,255,255,0.1);
}

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

.status-chart-container canvas {
  max-width: 350px !important;
  max-height: 300px !important;
  margin: 0 auto;
}

/* Search & Filter Styling */
.search-container {
  position: relative;
  margin-bottom: 24px;
  width: 100%;
  max-width: 100%;
}

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

.search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 4px;
  font-size: 14px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  background-color: var(--card-background);
  color: var(--text-color);
  font-family: var(--font-family);
}

.search-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.25);
  border-color: var(--primary-color);
}

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

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

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

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

  .filter-container select {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.2);
    background-color: var(--card-background);
    font-size: 14px;
    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;
    font-family: var(--font-family);
  }

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

  .button-container button {
    width: 100%;
    justify-content: center;
  }

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

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

.filter-container {
    /* display: flex
; */
    align-items: center;
    gap: 16px;
}

.filter-container label {
  display: inline-block;
  font-weight: 600;
  color: var(--text-color);
  margin-right: 8px;
  font-size: 14px;
}

.filter-container select,
.filter-container input[type="text"] {
  appearance: none;
  padding: 10px 16px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 4px;
  font-size: 14px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  background-color: var(--card-background);
  width: auto;
  color: var(--text-color);
  font-family: var(--font-family);
  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;
}

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

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

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

.btn-refresh {
  background-color: #2563EB;
  color: #ffffff;
}

.btn-refresh:hover {
  background-color: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-export {
  background-color: #10B981;
  color: #ffffff;
}

.btn-export:hover {
  background-color: #0B6A0B;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.btn-pdf:hover {
  background-color: #CC1F1F;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Chat/Ticket Details Styling */
.ticket-details-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 100px);
  background-color: var(--card-background);
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid rgba(0,0,0,0.08);
}

@media (min-width: 769px) {
  .ticket-details-container {
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
}

@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: 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-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
  background-color: var(--chat-bg-color);
  padding-bottom: 80px;
}

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

@media (max-width: 480px) {
  .chat-container {
    padding: 76px 16px 90px;
    margin: 0;
  }
}

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

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

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

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

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

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

.chat-message-content {
  max-width: 70%;
  padding: 12px 16px;
  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.08);
  border-left: 3px solid var(--received-message-border-color);
  border-radius: 8px;
}

.chat-message.sent .chat-message-content {
  background-color: var(--sent-message-bg);
  color: var(--sent-message-text-color);
  border-left: 3px 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: 3px solid var(--received-message-border-color);
  border-bottom-left-radius: 0;
}

.chat-message-content p {
  margin: 6px 0 0 0;
  font-size: 14px;
}

.chat-message-header {
  font-size: 12px;
  color: var(--text-color-light);
  margin-bottom: 6px;
}

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

.chat-input-area {
  display: flex;
  padding: 12px;
  background-color: #fff;
  align-items: center;
  border-top: 1px solid rgba(0,0,0,0.1);
  position: sticky;
  bottom: 0;
  box-sizing: border-box;
  gap: 12px;
  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: 12px 16px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 20px;
  margin: 0 8px;
  font-size: 14px;
  outline: none;
  background-color: var(--secondary-color);
  color: var(--text-color);
  font-family: var(--font-family);
}

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

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

.chat-input-area label:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.chat-input-area button:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

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

.notification {
  display: flex;
  align-items: center;
  background-color: #2563EB;
  color: #fff;
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  opacity: 1;
  transition: opacity 0.5s ease;
}

.notification.success {
  background-color: #10B981;
}

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

#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: 12px;
  font-size: 18px;
}

/* Mobile Overlay */
.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;
  }
}

/* Attachment Handling */
.attachment-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}

.attachment-list li {
  margin-bottom: 8px;
  padding: 8px 12px;
  background-color: rgba(0,0,0,0.05);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.btn-remove {
  background-color: #EF4444;
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-remove:hover {
  background-color: #CC1F1F;
  transform: translateY(-1px);
}

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

/* Back Button */
.back-button {
  font-size: 20px;
  cursor: pointer;
  margin-right: 16px;
  color: var(--primary-color);
}

.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: 18px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  .main-header {
    height: 56px;
    padding: 0 12px;
  }
  .main-header .header-title {
    font-size: 16px;
  }
  .sidebar {
    width: 240px;
  }
  .sidebar.closed {
    width: 60px;
  }
  .sidebar ul li a {
    padding: 12px 16px;
  }
  .sidebar ul li a i {
    font-size: 16px;
  }
  .container {
    padding-top: 60px;
    padding-bottom: 70px;
  }
  .card {
    padding: 16px;
  }
  .search-container {
    margin-bottom: 16px;
  }
  .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 4px;
  }
  .chat-input-area label, .chat-input-area button {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .stat-card h3 {
    font-size: 13px;
  }
  .stat-card p {
    font-size: 20px;
  }
}

/* Disabled States */
select:disabled {
  background-color: rgba(0,0,0,0.05);
  cursor: not-allowed;
  opacity: 0.7;
}

/* Password Reset Links */
.forgot-password {
  text-align: center;
  margin-top: 16px;
}

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

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

/* Notification System */
.notification-icon {
  position: relative;
  cursor: pointer;
  margin-left: 20px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

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

.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #EF4444;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.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 4px 12px rgba(0,0,0,0.15);
  overflow-y: auto;
  z-index: 1000;
  border-left: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

@media (min-width: 769px) {
  .notification-panel {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 320px;
    max-width: 320px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.08);
  }
}

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

.notification-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
}

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

.notification-header button:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

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

@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: 16px;
  }

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

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

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

.notification-item {
  padding: 16px;
  border-bottom: 1px solid var(--secondary-color);
  cursor: pointer;
  transition: background-color 0.3s;
}

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

.notification-content p {
  margin: 0 0 4px 0;
  font-size: 14px;
}

.notification-content small {
  color: var(--text-color-light);
  font-size: 12px;
}

.no-notifications {
  padding: 20px;
  text-align: center;
  color: var(--text-color-light);
  font-size: 14px;
}

/* Dark Mode Adjustments */
.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: var(--text-color-light);
}

.dark-mode .no-notifications {
  color: var(--text-color-light);
}

/* 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);
  }
}

/* Mobile Navigation */
.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;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}

@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;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 12px;
    padding: 5px;
    min-height: unset;
    width: 20%;
  }
  
  .mobile-nav a i {
    font-size: 22px;
    margin-bottom: 0;
    color: var(--text-color-light);
  }
  
  .mobile-nav a span {
    display: none;
  }
  
  .mobile-nav a.active {
    color: var(--primary-color);
  }
  
  .mobile-nav a.active i {
    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;
  }

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

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

/* Form elements enhancement */
input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
  appearance: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.2);
  font-family: var(--font-family);
}

.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.2);
  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(0, 120, 212, 0.25);
}

/* Enhanced buttons */
.btn {
  border-radius: 4px;
  padding: 10px 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: var(--font-family);
}

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

/* Theme Toggle */
.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: 20px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.toggle-theme-floating:hover {
  transform: scale(1.05);
  background-color: var(--primary-color-dark);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

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

/* Audio Chat Buttons */
.chat-input-area .send-text-btn,
.chat-input-area .audio-record-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
  font-size: 20px;
  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-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

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

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

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

  .send-text-btn {
    width: 40px !important;
    height: 40px !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: 40px;
    height: 40px;
    font-size: 18px;
  }
}

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

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

.recording-cancel-btn:hover {
  background-color: #CC1F1F;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.recording-send-btn {
  background-color: #10B981;
}

.recording-send-btn:hover {
  background-color: #0B6A0B;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

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

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

.recording-dot {
  width: 12px;
  height: 12px;
  background-color: #EF4444;
  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;
  }
}

.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 Messages */
.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;
}

/* Row Highlighting */
@keyframes highlight-row {
  0% { background-color: rgba(0, 120, 212, 0.15); }
  50% { background-color: rgba(0, 120, 212, 0.25); }
  100% { background-color: transparent; }
}

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

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

/* Image Handling */
.attachment-image {
  max-width: 150px;
  max-height: 150px;
  object-fit: cover;
  margin: 5px;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}

.attachment-image:hover {
  transform: scale(1.05);
}

/* 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: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.attachment-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #EF4444;
  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;
}

/* Product Preview */
.attachment-preview {
  margin-top: 12px;
  padding: 12px;
  background-color: rgba(0,0,0,0.03);
  border-radius: 4px;
  display: flex;
  justify-content: center;
}

.preview-image {
  max-width: 200px;
  max-height: 200px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.1);
  object-fit: cover;
}

/* Status Tags */
.status-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-right: 8px;
}

.status-tag.solicitado {
  background-color: #EF4444;
  color: white;
}

.status-tag.em-analise {
  background-color: #2563EB;
  color: white;
}

.status-tag.em-processamento {
  background-color: #F59E0B;
  color: white;
}

.status-tag.concluido {
  background-color: #10B981;
  color: white;
}

/* Form Refinements */
.create-ticket-form .form-group, .edit-ticket-form .form-group {
  margin-bottom: 20px;
}

.create-ticket-form label, .edit-ticket-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
  font-size: 14px;
}

.create-ticket-form textarea, .edit-ticket-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Media Queries for Charts and Stats */
@media (max-width: 768px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .stat-card {
    padding: 16px;
    min-height: 100px;
  }
  
  .stat-card i {
    font-size: 20px;
    margin-bottom: 6px;
  }
  
  .stat-card h3 {
    font-size: 13px;
    margin-bottom: 6px;
  }
  
  .stat-card p {
    font-size: 20px;
  }
  
  .chart-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .chart-container {
    min-height: 320px;
    padding: 16px;
  }
  
  .chart-container h3 {
    font-size: 16px;
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
}

/* Status Edit Help */
.status-help {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
  font-style: italic;
}

/* Install App Section */
.install-app-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--secondary-color);
}

.divider {
  text-align: center;
  margin: 16px 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--secondary-color);
}

.divider span {
  background-color: var(--card-background);
  padding: 0 16px;
  color: var(--text-color-light);
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.install-app-btn {
  width: 100%;
  background: linear-gradient(135deg, #6B7280 0%, #9CA3AF 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.install-app-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(107, 114, 128, 0.4);
  background: linear-gradient(135deg, #4B5563 0%, #6B7280 100%);
}

.install-app-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.install-app-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

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

.install-description {
  text-align: center;
  color: var(--text-color-light);
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
}

/* Mobile adjustments for install app */
@media (max-width: 768px) {
  .install-app-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .install-description {
    font-size: 13px;
  }
}

/* Remember Me Checkbox */
.remember-me {
  display: flex;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: var(--text-color);
}

.checkbox-label input[type="checkbox"] {
  margin-right: 8px;
  accent-color: var(--primary-color);
}

/* PDF Export Centering Fix */
.jspdf-autotable table {
  text-align: center !important;
}

.jspdf-autotable td, .jspdf-autotable th {
  text-align: center !important;
  vertical-align: middle !important;
}

button i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-edit-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 12px;
    padding: 5px;
    min-height: unset;
    width: 20%;
  }
}

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

.btn-export-dropdown {
  background-color: var(--accent-color); /* Using accent color for differentiation */
  color: #ffffff;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px; /* Increased gap for better spacing with chevron */
}

.btn-export-dropdown:hover {
  background-color: #0B7CAB; /* Darker accent */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.export-options {
  position: absolute;
  top: 100%; /* Position below the button */
  left: 0;
  background-color: var(--card-background);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 100; /* Ensure it's above other elements */
  min-width: 160px; /* Ensure options are readable */
  margin-top: 4px; /* Small gap between button and dropdown */
}

.export-options button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 14px;
  display: flex; /* For icon alignment */
  align-items: center; /* For icon alignment */
  gap: 8px; /* Space between icon and text */
}

.export-options button:hover {
  background-color: var(--secondary-color);
}

.export-options button i {
  color: var(--primary-color); /* Color icons consistently */
}

.dark-mode .export-options {
  background-color: var(--card-background);
  border-color: rgba(255,255,255,0.15);
}

.dark-mode .export-options button {
  color: var(--text-color);
}

.dark-mode .export-options button:hover {
  background-color: rgba(255,255,255,0.05);
}

/* Message field labels */
.chat-message-content .field-label {
  font-weight: 600;
  color: var(--primary-color);
  display: inline-block;
  margin-right: 8px;
}

/* Field values */
.chat-message-content .field-value {
  color: var(--text-color);
  font-weight: normal;
}

/* Style for product details block */
.product-details-block {
  background-color: var(--secondary-color);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.product-details-block p {
  margin: 8px 0;
  line-height: 1.6;
}

/* Dark mode adjustments */
.dark-mode .chat-message-content .field-label {
  color: var(--accent-color);
}

.dark-mode .product-details-block {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Update within the existing login-form section */
.register-link a {
  color: var(--primary-color);
  text-decoration: none; /* Remove underline */
  transition: color 0.3s ease;
}

.register-link a:hover {
  color: var(--accent-color);
}

/* Technician info message */
.technician-info {
  background-color: #EFF6FF;
  border: 1px solid #3B82F6;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1E40AF;
  font-size: 14px;
  font-weight: 500;
}

.technician-info i {
  color: #3B82F6;
  font-size: 16px;
}