* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: linear-gradient(-45deg, #1abc9c, #16a085, #27ae60, #2ecc71);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Login Container */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-box {
  background: rgba(255, 255, 255, 0.95);
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 450px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: slideUp 0.6s ease-out;
  transform: translateY(0);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-box h1 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #27ae60 0%, #16a085 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.login-box h2 {
  text-align: center;
  color: #666;
  font-size: 18px;
  margin-bottom: 30px;
  font-weight: 500;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s;
  background: #f8f9fa;
}

.form-group input:focus {
  outline: none;
  border-color: #27ae60;
  background: white;
  box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.15);
}

.form-group input::placeholder {
  color: #bbb;
}

.btn {
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, #27ae60 0%, #16a085 100%);
  color: white;
  width: 100%;
  margin-top: 10px;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(39, 174, 96, 0.6);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(26, 188, 156, 0.4);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(26, 188, 156, 0.6);
}

.btn-danger {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.btn-danger:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.6);
}

.btn-share {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.btn-share:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(39, 174, 96, 0.6);
}

.btn-view {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.btn-view:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.6);
}

.btn-small {
  padding: 6px 12px;
  font-size: 11px;
}

.demo-creds {
  text-align: center;
  color: #999;
  font-size: 12px;
  margin-top: 15px;
  font-style: italic;
}

/* Dashboard Container */
.dashboard-container {
  background: linear-gradient(135deg, #ecf0f1 0%, #d5f4e6 100%);
  min-height: 100vh;
}

/* Header */
.header {
  background: linear-gradient(135deg, #27ae60 0%, #16a085 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  flex: 1;
}

.header-left h1 {
  color: white;
  font-size: 28px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-display {
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 14px;
  color: white;
  backdrop-filter: blur(5px);
}

.user-display strong {
  color: white;
}

/* Navigation Tabs */
.nav-tabs {
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  margin: 0;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  overflow-x: auto;
  padding: 0 20px;
}

.nav-tab {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 16px 20px;
  display: inline-block;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 15px;
}

.nav-tab:hover {
  color: white;
  background: rgba(0, 0, 0, 0.1);
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.nav-tab.active {
  color: white;
  border-bottom-color: #ffc107;
  background: rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

/* Menu Toggle Button */
.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 5px;
  display: none;
  margin-right: 20px;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

/* Navigation Drawer (DEPRECATED - Keeping for transition) */
.nav-drawer {
  display: none;
}

.drawer-overlay {
  display: none;
}


/* Main Content */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* Statistics Section */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
  animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-top: 4px solid #27ae60;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.stat-card:hover::before {
  left: 100%;
}

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

.stat-card.pending {
  border-top-color: #f39c12;
}

.stat-card.investigating {
  border-top-color: #3498db;
}

.stat-card.resolved {
  border-top-color: #27ae60;
}

.stat-value {
  font-size: 42px;
  font-weight: 800;
  color: #27ae60;
  margin-bottom: 10px;
  display: block;
  animation: countUp 0.6s ease-out;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.stat-card.pending .stat-value {
  color: #f39c12;
}

.stat-card.investigating .stat-value {
  color: #3498db;
}

.stat-card.resolved .stat-value {
  color: #27ae60;
}

.stat-label {
  color: #666;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

/* Filters Section */
.filters-section {
  background: white;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.6s ease-out;
}

.search-container {
  flex: 1;
  min-width: 250px;
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #27ae60;
  box-shadow: 0 0 8px rgba(39, 174, 96, 0.2);
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-group {
  flex: 0 1 auto;
  min-width: 150px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.filter-group select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  background: white;
  transition: all 0.3s;
  font-weight: 500;
}

.filter-group select:focus {
  outline: none;
  border-color: #27ae60;
  box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.15);
}

.filter-group select:hover {
  border-color: #27ae60;
}

.filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-actions .btn {
  padding: 12px 18px;
  white-space: nowrap;
}

/* Complaints Section */
.complaints-section {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.complaints-section h2 {
  margin-bottom: 25px;
  color: #333;
  font-size: 22px;
  font-weight: 700;
}

.table-responsive {
  overflow-x: auto;
}

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

.complaints-table thead {
  background: linear-gradient(135deg, #27ae60 0%, #16a085 100%);
}

.complaints-table th {
  padding: 18px 15px;
  text-align: left;
  font-weight: 700;
  color: white;
  border-bottom: none;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.complaints-table td {
  padding: 18px 15px;
  border-bottom: 1px solid #f0f0f0;
}

.complaints-table tbody tr {
  transition: all 0.3s;
}

.complaints-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(39, 174, 96, 0.05), rgba(22, 160, 133, 0.05));
  transform: translateX(5px);
}

.status-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.status-pending {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.status-investigating {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.status-resolved {
  background: linear-gradient(135deg, #27ae60 0%, #16a085 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  align-items: center;
  min-width: 200px;
}

.share-link-container {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  background: linear-gradient(135deg, #e8f8f5 0%, #d5f4e6 100%);
  padding: 20px;
  border-radius: 12px;
  border: 2px solid #27ae60;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.2);
}

.share-input {
  flex: 1;
  padding: 12px 14px;
  border: 2px solid #27ae60;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Courier New', monospace;
  background: white;
  color: #333;
  transition: all 0.3s;
  font-weight: 500;
}

.share-input:focus {
  outline: none;
  border-color: #16a085;
  box-shadow: 0 0 10px rgba(39, 174, 96, 0.4);
}

.share-info {
  color: #16a085;
  font-size: 13px;
  margin-top: 10px;
  font-weight: 600;
}

.loading {
  text-align: center;
  color: #999;
  font-style: italic;
  padding: 20px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease-out;
  backdrop-filter: blur(3px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h2 {
  color: #333;
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: 700;
}

.modal-content p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.close {
  color: #999;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 20px;
}

.close:hover {
  color: #333;
}

.modal-section {
  margin-bottom: 25px;
}

.modal-section h3 {
  color: #27ae60;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-field {
  margin-bottom: 15px;
}

.modal-label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
  font-size: 14px;
}

.modal-value {
  color: #666;
  word-wrap: break-word;
  font-size: 14px;
}

.modal-textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  transition: all 0.3s;
}

.modal-textarea:focus {
  outline: none;
  border-color: #27ae60;
  box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.15);
}

.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

/* Media Items Styling */
.media-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 15px !important;
  margin-top: 15px !important;
}

.media-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #f9f9f9;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.media-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.media-item video,
.media-item audio {
  width: 100%;
  margin: 0;
}

.media-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.media-item a {
  text-align: center;
  display: inline-block;
  margin: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .stats-section {
    grid-template-columns: 1fr 1fr;
  }

  .filters-section {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    width: 100%;
  }

  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  .header h1 {
    font-size: 22px;
  }

  .modal-content {
    width: 95%;
    margin: 20% auto;
  }

  .complaints-table {
    font-size: 12px;
  }

  .complaints-table th,
  .complaints-table td {
    padding: 10px 5px;
  }

  .btn {
    font-size: 12px;
    padding: 10px 16px;
  }
}

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

  .action-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .btn-small {
    width: 100%;
    font-size: 11px;
    padding: 6px 10px;
  }

  .login-box {
    padding: 30px 20px;
  }

  .stat-value {
    font-size: 32px;
  }

  .header-top {
    flex-direction: column;
    gap: 10px;
    padding: 15px 10px;
  }

  .header-left h1 {
    font-size: 20px;
  }

  .header-right {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  #logoutBtn {
    width: 100%;
  }

  .user-display {
    width: 100%;
    text-align: center;
  }

  .nav-tabs {
    padding: 0;
    overflow-x: auto;
    gap: 0;
  }

  .nav-tab {
    font-size: 12px;
    padding: 12px 15px;
  }

  .nav-tab:nth-child(4),
  .nav-tab:nth-child(5) {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    gap: 12px;
    padding: 15px 15px;
  }

  .header-left h1 {
    font-size: 24px;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .nav-tabs {
    padding: 0;
    font-size: 13px;
  }

  .nav-tab {
    padding: 14px 12px;
    font-size: 13px;
  }
}

/* Tab Content Styling */
.tab-content {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Profile Section Styling */
.profile-section {
  padding: 20px;
}

.profile-container {
  max-width: 800px;
  margin: 0 auto;
}

.profile-container h2 {
  color: #1abc9c;
  margin-bottom: 20px;
  font-size: 28px;
}

.profile-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.profile-avatar {
  font-size: 60px;
  margin-right: 30px;
  background: linear-gradient(135deg, #1abc9c, #16a085);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.profile-basic h3 {
  color: #333;
  margin-bottom: 5px;
  font-size: 22px;
}

.profile-basic p {
  color: #666;
  margin: 5px 0;
  font-size: 14px;
}

.profile-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.detail-group {
  display: flex;
  flex-direction: column;
}

.detail-group label {
  font-weight: 600;
  color: #1abc9c;
  margin-bottom: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-group p {
  color: #333;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 3px solid #1abc9c;
}

.input-field {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #f5f5f5;
  color: #333;
  transition: all 0.3s ease;
}

.input-field:not([readonly]) {
  background: white;
  border-color: #1abc9c;
  box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.1);
}

.input-field:focus {
  outline: none;
  border-color: #16a085;
  box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.2);
}

.profile-actions {
  display: flex;
  gap: 10px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
}

/* Settings Section Styling */
.settings-section {
  padding: 20px;
}

.settings-container {
  max-width: 800px;
  margin: 0 auto;
}

.settings-container h2 {
  color: #1abc9c;
  margin-bottom: 20px;
  font-size: 28px;
}

.settings-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.settings-group {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.settings-group:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.settings-group h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1abc9c;
}

.setting-item {
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 3px solid #1abc9c;
}

.setting-item label {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  margin-bottom: 8px;
}

.setting-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 12px;
  cursor: pointer;
  accent-color: #1abc9c;
}

.setting-item input[type="checkbox"]:hover {
  transform: scale(1.1);
}

.setting-item input[type="text"],
.setting-item select {
  width: 100%;
}

.setting-description {
  color: #666;
  font-size: 13px;
  margin-top: 8px;
  margin-left: 30px;
}

.settings-actions {
  display: flex;
  gap: 10px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
  justify-content: flex-end;
}

/* Responsive Profile & Settings */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-avatar {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .profile-card,
  .settings-card {
    padding: 20px;
  }

  .profile-details {
    grid-template-columns: 1fr;
  }

  .profile-actions,
  .settings-actions {
    flex-direction: column;
  }

  .profile-actions .btn,
  .settings-actions .btn {
    width: 100%;
  }
}

/* Audit Trail Modal Styles */
.audit-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.audit-modal-content {
  background: white;
  margin: 3% auto;
  padding: 30px;
  border-radius: 20px;
  width: 95%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
  animation: slideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 15px;
}

.modal-header h2 {
  color: #27ae60;
  font-size: 24px;
  margin: 0;
}

.audit-close {
  color: #999;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 20px;
}

.audit-close:hover {
  color: #333;
}

.modal-body {
  padding: 20px 0;
}

.modal-footer {
  text-align: right;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
}

/* Audit Summary */
.audit-summary {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.audit-summary h3 {
  color: #27ae60;
  margin-bottom: 15px;
  font-size: 18px;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.stat {
  background: white;
  padding: 15px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-label {
  color: #666;
  font-weight: 600;
}

.stat-value {
  color: #27ae60;
  font-size: 18px;
  font-weight: bold;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.status-badge.old {
  background-color: #ffe6e6;
  color: #c63030;
}

.status-badge.new {
  background-color: #e6f7ff;
  color: #0066cc;
}

/* Timeline */
.audit-timeline {
  margin-bottom: 30px;
}

.audit-timeline h3 {
  color: #27ae60;
  margin-bottom: 20px;
  font-size: 18px;
}

.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #27ae60, #e0e0e0);
}

.timeline-item {
  position: relative;
  margin-bottom: 25px;
  padding-left: 80px;
}

.timeline-marker {
  position: absolute;
  left: 12px;
  top: 5px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: 3px solid #27ae60;
  box-shadow: 0 0 0 4px #f5f5f5;
}

.timeline-content {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  border-left: 3px solid #27ae60;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.timeline-header strong {
  color: #333;
  font-size: 16px;
}

.timeline-date {
  color: #999;
  font-size: 12px;
}

.timeline-details {
  color: #666;
  font-size: 14px;
}

.timeline-details p {
  margin: 5px 0;
}

.timeline-details strong {
  color: #333;
}

.timeline-details code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #666;
}

/* Audit Table */
.audit-table {
  margin-top: 30px;
}

.audit-table h3 {
  color: #27ae60;
  margin-bottom: 15px;
  font-size: 18px;
}

.audit-detail-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.audit-detail-table thead {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
  color: white;
}

.audit-detail-table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid #ddd;
}

.audit-detail-table td {
  padding: 12px;
  border: 1px solid #f0f0f0;
  font-size: 14px;
  color: #666;
}

.audit-detail-table tbody tr:hover {
  background-color: #f9f9f9;
}

.audit-detail-table tbody tr:nth-child(even) {
  background-color: #f5f5f5;
}

.audit-detail-table code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #666;
  font-family: 'Courier New', monospace;
}

/* Button Styles */
.btn-info {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-info:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .audit-modal-content {
    margin: 10% auto;
    padding: 20px;
    width: 98%;
  }

  .summary-stats {
    grid-template-columns: 1fr;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .audit-detail-table {
    font-size: 12px;
  }

  .audit-detail-table th,
  .audit-detail-table td {
    padding: 8px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-marker {
    left: 5px;
    width: 30px;
    height: 30px;
    border-width: 2px;
  }
}

@media (max-width: 480px) {
  .modal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .modal-header h2 {
    font-size: 20px;
  }

  .audit-modal-content {
    margin: 20% auto;
    padding: 15px;
  }

  .audit-detail-table {
    display: block;
    overflow-x: auto;
  }

  .audit-detail-table thead {
    display: none;
  }

  .audit-detail-table tbody tr {
    display: block;
    margin-bottom: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
  }

  .audit-detail-table td {
    display: block;
    padding: 8px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
  }

  .audit-detail-table td:before {
    content: attr(data-label);
    font-weight: bold;
    color: #27ae60;
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
  }
}

/* ============================================
   COMMENTS MODAL STYLES
   ============================================ */

.comments-modal {
  z-index: 1001;
}

.comments-modal-content {
  background: white;
  margin: 3% auto;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
  animation: slideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.comments-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: linear-gradient(135deg, #27ae60 0%, #16a085 100%);
  color: white;
}

.comments-modal-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.comments-close {
  color: white;
  font-size: 28px;
  cursor: pointer;
  transition: opacity 0.3s;
  line-height: 1;
}

.comments-close:hover {
  opacity: 0.7;
}

.complaint-summary {
  padding: 15px 25px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.complaint-summary p {
  margin: 5px 0;
  font-size: 14px;
  color: #666;
}

.complaint-summary p strong {
  color: #333;
}

.comments-count {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: #fff;
  border-bottom: 1px solid #e9ecef;
}

.comments-count span {
  font-weight: 600;
  color: #333;
  font-size: 15px;
}

.comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px 25px;
  background: #fafafa;
}

.comment-item {
  background: white;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #e9ecef;
}

.comment-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.comment-item:last-child {
  margin-bottom: 0;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.comment-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-avatar {
  font-size: 24px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.comment-username {
  font-weight: 600;
  color: #333;
  font-size: 15px;
}

.comment-anonymous-badge {
  background: #f0f0f0;
  color: #666;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  font-weight: 500;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comment-date {
  font-size: 12px;
  color: #999;
}

.comment-delete-btn {
  padding: 4px 10px !important;
  font-size: 11px !important;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
}

.comment-delete-btn:hover {
  transform: scale(1.05);
}

.comment-body {
  margin-bottom: 12px;
}

.comment-text {
  color: #444;
  line-height: 1.6;
  font-size: 14px;
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.comment-footer {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.comment-likes {
  font-size: 13px;
  color: #e74c3c;
  font-weight: 500;
}

.no-comments {
  text-align: center;
  color: #999;
  font-style: italic;
  padding: 40px 20px;
  font-size: 15px;
}

.comments-modal-footer {
  padding: 15px 25px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
}

/* Comment Button Style */
.btn-comment {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}

.btn-comment:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(155, 89, 182, 0.6);
}

/* Responsive Comments Modal */
@media (max-width: 768px) {
  .comments-modal-content {
    margin: 5% auto;
    width: 95%;
    max-height: 90vh;
  }

  .comments-modal-header {
    padding: 15px 20px;
  }

  .comments-modal-header h2 {
    font-size: 18px;
  }

  .comment-header {
    flex-direction: column;
  }

  .comment-meta {
    width: 100%;
    justify-content: space-between;
  }

  .comments-list {
    padding: 15px;
  }

  .comment-item {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .comment-user {
    flex-wrap: wrap;
  }

  .comment-avatar {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .comment-username {
    font-size: 14px;
  }

  .comment-date {
    font-size: 11px;
  }

  .comment-text {
    font-size: 13px;
  }
}