.admin-login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
  background-color: #f7f9fc;
}

.admin-login-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

@media (max-width: 480px) {
  .admin-login-container {
    padding: 0.5rem;
  }
  
  .admin-login-card {
    padding: 1.5rem;
    max-width: 100%;
  }
}

.admin-login-card h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #000;
  font-size: 1.5rem;
  font-weight: 600;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  
}

.form-group input {
  padding: 0.75rem;
  border: 1px solid #ddd;
  color:#000;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s;
  width: 100%;
}

@media (max-width: 480px) {
  .form-group input {
    font-size: 16px; /* Prevents iOS zoom on focus */
    padding: 0.85rem;
  }
}

.form-group input:focus {
  border-color: #4285f4;
  outline: none;
}

.form-group input[type="password"] {
  color: #000;
}

.error-message {
  color: #d93025;
  font-size: 0.85rem;
  margin-top: -0.5rem;
}

.admin-login-button {
  padding: 0.75rem;
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.admin-login-button:hover {
  background-color: #3367d6;
}

.admin-login-button:disabled {
  background-color: #a1b4d4;
  cursor: not-allowed;
}
.user-management-container {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .user-management-container {
    padding: 1rem 0.5rem;
  }
}

.user-management-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.user-management-header h1 {
  font-size: 1.8rem;
  color: #333;
  margin: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 600px) {
  .user-management-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .user-management-header h1 {
    font-size: 1.5rem;
  }
}

.debug-button {
  background-color: #555;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.debug-button:hover {
  background-color: #444;
}

.reload-button {
  background-color: #4285f4;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.reload-button:hover {
  background-color: #3367d6;
}

.logout-button {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.logout-button:hover {
  background-color: #d32f2f;
}

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

.search-input {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .search-container {
    margin-bottom: 1rem;
  }
  
  .search-input {
    max-width: 100%;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
}

.users-table-container {
  overflow-x: auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  border: 1px solid #ddd;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px; /* Slightly larger text */
}

/* Mobile cards for table rows */
@media (max-width: 768px) {
  .users-table-container {
    overflow-x: visible;
  }
  
  .users-table, 
  .users-table thead, 
  .users-table tbody, 
  .users-table th, 
  .users-table td, 
  .users-table tr {
    display: block;
  }
  
  .users-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  .users-table tbody tr {
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    padding: 1rem 0.75rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    background-color: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  .users-table td {
    position: relative;
    padding: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    display: flex;
    flex-direction: column;
  }
  
  .users-table td:last-child {
    border-bottom: none;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  .users-table td:before {
    content: attr(data-label);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* Mobile status styling */
  .users-table td.status-approved,
  .users-table td.status-pending {
    font-weight: 700;
  }
  
  .users-table td.status-approved:before,
  .users-table td.status-pending:before {
    color: #333;
    font-weight: 700;
  }
}

.users-table th,
.users-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
  color: #000; /* Set text color to black */
}

.users-table th {
  background-color: #f7f9fc;
  font-weight: 600;
  color: #333; /* Slightly darker for headers */
}

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

/* Add alternating row colors for better readability */
.users-table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

/* Add hover effect */
.users-table tbody tr:hover {
  background-color: #f1f4f9;
}

.status-approved {
  color: #1a7431; /* Darker green for better contrast on white background */
  font-weight: 700; /* Make it bolder */
}

.status-pending {
  color: #d76b00; /* Darker orange for better contrast on white background */
  font-weight: 700; /* Make it bolder */
}

.toggle-button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .toggle-button {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
  }
}

.toggle-button.approve {
  background-color: #34a853;
  color: white;
}

.toggle-button.approve:hover {
  background-color: #2d964a;
}

.toggle-button.unapprove {
  background-color: #fa8c16;
  color: white;
}

.toggle-button.unapprove:hover {
  background-color: #e67e0d;
}

.status-message {
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.status-message.success {
  background-color: #e6f4ea;
  color: #34a853;
}

.status-message.error {
  background-color: #fce8e6;
  color: #d93025;
}

@media (max-width: 768px) {
  .status-message {
    margin-top: 0.75rem;
    padding: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
  }
}

.loading-indicator {
  text-align: center;
  padding: 2rem;
  color: #000;
  border-radius: 8px;
  background-color: #f9f9f9;
  margin: 1rem 0;
}

.error-message {
  background-color: #fce8e6;
  color: #d93025;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .loading-indicator {
    padding: 1.5rem;
  }
  
  .error-message {
    padding: 0.75rem;
    font-size: 15px;
  }
}

.no-results {
  text-align: center;
  padding: 2.5rem;
  color: #000;
  font-size: 16px;
  font-weight: 500;
  background-color: #f9f9f9;
}
