/* Complaint App Styles - Mobile Optimized */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  overflow-x: hidden;
}

/* Header - Modern Mobile Design */
header {
  background-color: #fff;
  color: #333;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  height: 60px;
}

.menu-toggle {
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.menu-toggle:hover {
  background-color: #f0f0f0;
}

.header-logo {
  height: 32px;
  width: 32px;
  object-fit: contain;
}

header h1 {
  font-size: 1.2rem;
  font-weight: 600;
  flex: 1;
  text-align: center;
  margin: 0 1rem;
}

/* Sidebar Menu */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background-color: #fff;
  box-shadow: 2px 0 20px rgba(0,0,0,0.1);
  z-index: 999;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar.active {
  left: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.sidebar-logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.close-sidebar {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s;
}

.close-sidebar:hover {
  background-color: #f0f0f0;
  color: #333;
}

/* Sidebar User Info */
.sidebar-user {
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  width: 50px;
  height: 50px;
  background-color: #1976D2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.user-details {
  flex: 1;
}

.user-name {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}

.user-role {
  display: block;
  font-size: 0.875rem;
  color: #666;
}

/* Sidebar Menu Items */
.sidebar-menu {
  flex: 1;
  padding: 1rem 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: #333;
  transition: all 0.2s;
  position: relative;
}

.menu-item:hover {
  background-color: #f0f7ff;
  color: #1976D2;
}

.menu-item svg {
  flex-shrink: 0;
}

.menu-item {
  position: relative;
}

.badge {
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  background-color: #e74c3c;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
}

/* Sidebar Bottom Section */
.sidebar-bottom {
  border-top: 1px solid #e0e0e0;
  padding: 1.5rem;
}

.language-selector h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.language-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.lang-option:hover {
  background-color: #e3f2fd;
  border-color: #1976D2;
}

.lang-option.active {
  background-color: #1976D2;
  color: white;
  border-color: #1976D2;
}

.lang-flag {
  font-size: 1.5rem;
}

.logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background-color: #fff;
  border: 1px solid #e74c3c;
  color: #e74c3c;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
  font-weight: 500;
}

.logout-btn:hover {
  background-color: #e74c3c;
  color: white;
}

/* Main Content - Mobile Optimized */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  min-height: calc(100vh - 60px);
}

.section {
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.3s ease-out;
}

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

.intro-text {
  text-align: center;
  margin-bottom: 2rem;
}

.intro-text h2 {
  color: #1976D2;
  margin-bottom: 1rem;
}

.quick-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Form Styles - Mobile Optimized */
.complaint-form {
  max-width: 800px;
  margin: 0 auto;
}

fieldset {
  border: none;
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

legend {
  font-weight: 600;
  color: #1976D2;
  padding: 0 8px;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s;
  background-color: #fff;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1976D2;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
  background-color: #fff;
}

/* Map Container - Mobile Optimized */
.map-container {
  margin-top: 1rem;
}

#map {
  height: 300px;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  margin: 1rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.coordinates {
  background-color: #f5f5f5;
  padding: 8px;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-family: monospace;
}

/* Photo Upload */
.photo-upload-container {
  margin-bottom: 1rem;
}

.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.photo-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.photo-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.photo-item .remove-photo {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: rgba(244, 67, 54, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 18px;
}

/* Buttons - Modern Mobile Design */
.btn {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background-color: #1976D2;
  color: white;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.25);
}

.btn-primary:hover,
.btn-primary:active {
  background-color: #1565C0;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(25, 118, 210, 0.35);
}

.btn-secondary {
  background-color: #e0e0e0;
  color: #333;
}

.btn-secondary:hover,
.btn-secondary:active {
  background-color: #d0d0d0;
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  min-height: 56px;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 0.5rem;
}

/* Radio Buttons */
.radio-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: normal;
}

.radio-label input[type="radio"] {
  margin-right: 0.5rem;
}

/* Form Alignment Override - Ensure all form elements are left-aligned */
.form-container .form-group,
.form-container .form-group > *,
.form-container input,
.form-container select,
.form-container textarea,
.form-container label {
  text-align: left;
}

/* Success Section */
.success-container {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.complaint-number {
  font-size: 2rem;
  font-weight: bold;
  color: #1976D2;
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-family: monospace;
}

/* Messages */
.message {
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  text-align: center;
}

.message.success {
  background-color: #4CAF50;
  color: white;
}

.message.error {
  background-color: #f44336;
  color: white;
}

.message.info {
  background-color: #2196F3;
  color: white;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 28px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
}

.close:hover {
  color: #333;
}

/* Footer */
footer {
  background-color: #1976D2;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
}

footer p {
  margin: 0.5rem 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo {
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  /* Invert black SVG to white for visibility on blue background */
  filter: brightness(0) invert(1);
}

.footer-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-org {
  font-weight: 600;
  font-size: 1rem;
}

.footer-separator {
  opacity: 0.5;
  font-size: 1.2rem;
}

/* Desktop styles */
@media (min-width: 768px) {
  .footer-logo {
    height: 50px;
    max-width: 200px;
  }
  
  .footer-content {
    gap: 1.5rem;
  }
}

.footer-links {
  font-size: 0.9rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Help Text */
.help-text {
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.5rem;
}

/* Loading Spinner */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0,0,0,.1);
  border-radius: 50%;
  border-top-color: #1976D2;
  animation: spin 1s linear infinite;
}

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

/* Install Button - Modern FAB */
#installBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #1976D2;
  color: white;
  border: none;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 28px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
  transition: all 0.3s;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#installBtn:hover {
  background-color: #1565C0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

/* My Complaints Section */
.complaints-container {
  max-width: 800px;
  margin: 0 auto;
}

.complaints-filter {
  margin-bottom: 1.5rem;
}

.complaints-filter select {
  width: 100%;
  max-width: 250px;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  background-color: #fff;
}

.my-complaints-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.complaint-card {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.2s;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.complaint-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.complaint-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.complaint-number {
  font-weight: 600;
  color: #1976D2;
  font-size: 1.1rem;
}

.complaint-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
}

.complaint-status.pending {
  background-color: #fff3cd;
  color: #856404;
}

.complaint-status.investigating {
  background-color: #d1ecf1;
  color: #0c5460;
}

.complaint-status.resolved {
  background-color: #d4edda;
  color: #155724;
}

.complaint-status.rejected {
  background-color: #f8d7da;
  color: #721c24;
}

.complaint-card-body {
  color: #666;
  font-size: 0.95rem;
}

.complaint-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.complaint-info svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.no-complaints {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.no-complaints svg {
  color: #e0e0e0;
  margin-bottom: 1rem;
}

.no-complaints p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Complaint Details Section */
#complaintDetailsSection .container {
  padding: 1rem;
}

.complaint-details-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e0e0e0;
  background: #fafafa;
  margin: -2rem -2rem 2rem -2rem;
  padding: 2rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  color: #333;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.back-btn:hover {
  background-color: #e8e8e8;
  border-color: #d0d0d0;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.back-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.back-btn svg {
  width: 20px;
  height: 20px;
}

.complaint-details-header h2 {
  flex-grow: 1;
  margin: 0;
  font-size: 1.5rem;
  color: #333;
}

.complaint-detail-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.complaint-detail-section:last-child {
  border-bottom: none;
}

.complaint-detail-section h3 {
  color: #1976D2;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.complaint-detail-item {
  margin-bottom: 0.5rem;
}

.complaint-detail-item strong {
  color: #333;
  margin-right: 0.5rem;
}

.complaint-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.complaint-photo {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.complaint-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Password Input Wrapper */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  padding-right: 45px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: #1976D2;
}

.password-toggle:focus {
  outline: 2px solid #1976D2;
  outline-offset: 2px;
  border-radius: 4px;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

/* User Authentication Styles */
/* Form Container - Clean Mobile Design */
.form-container {
  max-width: 400px;
  margin: 0 auto;
}

.form-container h2 {
  text-align: center;
  color: #1976D2;
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
}

.login-info {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-container .form-group {
  margin-bottom: 1.25rem;
}

.form-container .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
  font-size: 0.95rem;
}

.form-container .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.form-container .form-group {
  margin-bottom: 1.5rem;
}

.form-container .form-group label {
  display: block;
  text-align: left;
  width: 100%;
  margin: 0 0 0.5rem 0;
  font-weight: 500;
  color: #555;
}

.form-container .form-group small {
  display: block;
  text-align: left;
  width: 100%;
  margin: 0.25rem 0 0 0;
  font-size: 0.875rem;
  color: #666;
}

.form-container .checkbox-label {
  width: 100%;
  margin: 0;
}

.form-container .btn {
  width: 100%;
  margin: 0;
  display: block;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.section-header h2 {
  font-size: 1.5rem;
  color: #1976D2;
  margin: 0;
}

.mobile-menu-btn {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s;
}

.mobile-menu-btn:hover {
  background-color: #f0f0f0;
  color: #333;
}

.login-info {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

.form-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: #666;
}

.form-footer a {
  color: #1976D2;
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.5rem;
}

.form-footer a:hover {
  text-decoration: underline;
}

.btn-small {
  padding: 5px 15px;
  font-size: 14px;
}

/* Photo Upload - Modern Design */
.photo-upload-container {
  margin-bottom: 1rem;
}

.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.photo-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  aspect-ratio: 1;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-item .remove-photo {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: rgba(244, 67, 54, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Form Actions - Mobile Optimized */
.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
  flex-direction: column;
}

.form-actions .btn {
  width: 100%;
}

/* Success Section - Modern Design */
.success-container {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
}

.success-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: bounceIn 0.5s;
}

@keyframes bounceIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.complaint-number {
  font-size: 1.75rem;
  font-weight: bold;
  color: #1976D2;
  background-color: #e3f2fd;
  padding: 1rem;
  border-radius: 12px;
  margin: 1rem 0;
  font-family: monospace;
  letter-spacing: 0.05em;
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.success-actions .btn {
  min-width: 200px;
}

/* Notifications Section */
.notifications-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.notifications-container h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.notifications-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 16px;
    background: #f0f0f0;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #1976D2;
    color: white;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notification-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.notification-item.unread {
    border-left: 4px solid #1976D2;
}

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

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

.notification-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.notification-date {
    font-size: 12px;
    color: #666;
}

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

.notification-status.pending {
    background: #FFF3CD;
    color: #856404;
}

.notification-status.investigating {
    background: #CCE5FF;
    color: #004085;
}

.notification-status.resolved {
    background: #D4EDDA;
    color: #155724;
}

.notification-status.rejected {
    background: #F8D7DA;
    color: #721C24;
}

.notification-body {
    color: #666;
    line-height: 1.6;
}

.notification-custom-message {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    font-style: italic;
}

.notification-complaint-info {
    margin-top: 10px;
    font-size: 14px;
    color: #888;
}

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

.no-notifications svg {
    stroke: #ddd;
    margin-bottom: 20px;
}

.no-notifications p {
    font-size: 18px;
    margin-top: 10px;
}

/* Responsive Design */
@media (min-width: 768px) {
  .sidebar {
    width: 320px;
    left: -320px;
  }
  
  main {
    padding: 2rem;
  }
  
  .section {
    padding: 2rem;
  }
  
  fieldset {
    padding: 1.5rem;
  }
  
  #map {
    height: 400px;
  }
  
  .form-actions {
    flex-direction: row;
  }
  
  .form-actions .btn {
    width: auto;
  }
  
  .success-actions {
    flex-direction: column;
  }
  
  .success-actions .btn {
    width: 100%;
  }
  
  .photo-preview {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (min-width: 1024px) {
  header h1 {
    font-size: 1.5rem;
  }
  
  /* Keep menu toggle visible on desktop for sidebar access */
  .menu-toggle {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: none;
  }
}
/* Mobile styles for complaint details */
@media (max-width: 768px) {
  .complaint-details-header {
    margin: -1rem -1rem 1.5rem -1rem;
    padding: 1rem;
  }
  
  .back-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .complaint-details-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .complaint-details-header h2 {
    font-size: 1.25rem;
  }
}

/* Notification Styles */
.notifications-section {
    padding: 1rem;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

.filter-btn:hover:not(.active) {
    background: #f5f5f5;
    color: #000;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.notification-item.unread {
    border-left: 4px solid var(--primary-color);
    background: #f9fbff;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.notification-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.notification-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.notification-body {
    margin-bottom: 0.5rem;
}

.status-change {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

.custom-message {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: #f5f5f5;
    border-radius: 4px;
    font-style: italic;
}

.mark-read-btn {
    padding: 0.375rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.3s ease;
}

.mark-read-btn:hover {
    background: var(--primary-hover);
}

.no-notifications {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.no-notifications i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Badge styles for notification count */
.badge {
    background: #ff4444;
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    margin-left: 0.5rem;
    min-width: 1.25rem;
    text-align: center;
    display: inline-block;
}

/* Responsive styles for notifications */
@media (max-width: 768px) {
    .notifications-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .notification-item {
        padding: 0.75rem;
    }
}
