/* ================================
   Notification Settings Page
   ================================ */

.notification-settings-page {
  width: 100%;
  max-width: 100%;
}

/* Tab navigation - consistent with app */
.notification-settings-page .tab-navigation {
  display: flex;
  gap: 1rem;
  margin-top: 0;
  margin-bottom: var(--spacing-xl, 2rem);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0;
}

.notification-settings-page .tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
  position: relative;
  font-family: inherit;
  min-height: 44px;
}

.notification-settings-page .tab-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.notification-settings-page .tab-btn:hover {
  color: var(--primary-color);
  background: rgba(255, 152, 0, 0.06);
}

.notification-settings-page .tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 600;
}

.notification-settings-page .tab-btn.active svg {
  color: var(--primary-color);
}

/* Tab content */
.notification-settings-page .tab-content {
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Search section card */
.notification-settings-page .search-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.notification-settings-page .search-section .form-header {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--border-color);
}

.notification-settings-page .search-section .form-header h1 {
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.notification-settings-page .search-form {
  display: flex;
  gap: var(--spacing-lg);
  align-items: flex-end;
  flex-wrap: wrap;
}

.notification-settings-page .search-form .input-group {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
  margin-bottom: 0;
}

.notification-settings-page .search-form .input-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.notification-settings-page .search-form .input-field,
.notification-settings-page .search-form .select-field {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.notification-settings-page .search-form .select-field {
  cursor: pointer;
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23616161' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 18px 18px;
}

.notification-settings-page .search-form .input-field:focus,
.notification-settings-page .search-form .select-field:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.15);
}

/* Search button */
.notification-settings-page .btn-search {
  background: var(--text-primary);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.notification-settings-page .btn-search:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.notification-settings-page .btn-search:active {
  transform: translateY(0);
}

/* Table section */
.notification-settings-page .table-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.notification-settings-page .table-header {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--border-color);
}

.notification-settings-page .table-header h2 {
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.notification-settings-page .table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
}

.notification-settings-page .user-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.notification-settings-page .user-table thead {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.notification-settings-page .user-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: white;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.notification-settings-page .user-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.notification-settings-page .user-table tbody tr {
  transition: background var(--transition-fast);
}

.notification-settings-page .user-table tbody tr:hover {
  background: var(--hover-overlay);
}

/* Status icons (Green / Yellow / Red columns) */
.notification-settings-page .status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
}

.notification-settings-page .status-icon.green {
  background: rgba(76, 175, 80, 0.2);
  color: var(--success-color);
}

.notification-settings-page .status-icon.red {
  background: rgba(244, 67, 54, 0.15);
  color: #c62828;
}

/* Responsive */
@media (max-width: 768px) {
  .notification-settings-page .tab-navigation {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .notification-settings-page .tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .notification-settings-page .search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .notification-settings-page .search-form .input-group {
    max-width: none;
  }

  .notification-settings-page .btn-search {
    width: 100%;
  }

  .notification-settings-page .table-container {
    margin: 0 -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .notification-settings-page .user-table {
    font-size: 0.8rem;
  }

  .notification-settings-page .user-table th,
  .notification-settings-page .user-table td {
    padding: 0.75rem;
  }
}
