/* ===== global styles (src/styles.scss) ===== */
.form-error {
  font-size: smaller;
  color: red;
  font-weight: bold;
}

.text-danger {
  color: #f44336;
  font-weight: bold;
}

.invalid-feedback {
  color: #f44336;
  font-size: 10px;
  margin-top: 5px;
}

td {
  vertical-align: top;
  padding-top: 8px !important;
}

.p-inputtext.is-invalid,
textarea.is-invalid,
textarea.ng-dirty.ng-invalid,
p-inputnumber.is-invalid > .p-inputnumber > .p-inputtext,
p-autocomplete.is-invalid > .p-autocomplete > .p-inputtext,
p-listbox.is-invalid > .p-listbox,
p-selectbutton.is-invalid > .p-selectbutton > .p-button,
p-calendar.is-invalid > .p-calendar > .p-inputtext {
  border-color: #f44336;
}

.form-group label {
  display: block;
}

@media print {
  .noprint {
    display: none;
  }
}
/* Wide tooltip for referral assistance table */
.wide-tooltip {
  max-width: none !important;
  width: 680px !important; /* match or exceed table min-width */
  white-space: normal !important;
}

.wide-tooltip .p-tooltip-text {
  white-space: normal !important;
  text-align: left;
  padding: 0.25rem !important;
}

/* ===== footer ===== */
app-footer .footer {
  bottom: 0;
  margin-left: 25%;
  margin-right: 25%;
  color: white;
}

/* ===== loading ===== */
.splash-screen.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(27, 34, 58, 0.5);
  z-index: 10000;
}

.splash-screen .splash-logo {
  left: 50%;
  top: 50%;
  margin-top: -20px;
  z-index: 2;
  position: absolute;
}

.splash-screen p {
  font-size: 20px;
  color: #1b223a;
  position: absolute;
  left: 50%;
  top: 56%;
  z-index: 2;
} /* ===== maintenance ===== */
:host {
  display: block;
  margin: 0;
  padding: 0;
  font-family: "Varela Round", sans-serif;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

.maintenance-container {
  text-align: center;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
}

.maintenance-content {
  background: white;
  border-radius: 20px;
  padding: 3rem 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.8s ease-out;
}

.maintenance-icon {
  margin-bottom: 1.5rem;
}

.maintenance-icon i {
  font-size: 4rem;
  color: #ff6b35;
  animation: rotate 2s linear infinite;
}

.maintenance-title {
  color: #333;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: normal;
}

.maintenance-description {
  color: #666;
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.maintenance-details {
  color: #888;
  font-size: 1rem;
  line-height: 1.5;
}

.maintenance-details p {
  margin: 0.5rem 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 768px) {
  .maintenance-content {
    padding: 2rem 1.5rem;
  }
  .maintenance-title {
    font-size: 2rem;
  }
  .maintenance-description {
    font-size: 1.1rem;
  }
}
/* ===== fsc-form ===== */
app-fsc-form .print-page {
  display: none;
  padding: 10px;
}
app-fsc-form .print-page--section {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 1px 2px 4px 1px rgba(187, 187, 187, 0.2);
  margin-bottom: 20px;
}
app-fsc-form .print-page--section .header {
  font-size: 20px;
  background-color: #0f7496;
  color: #fff;
  padding: 10px;
}
app-fsc-form .print-page--section .content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-gap: 30px;
  padding: 10px;
}
app-fsc-form .print-page--section .content.quick {
  grid-template-columns: 1fr 1fr;
}
app-fsc-form .print-page--section .content.client {
  grid-template-columns: 2fr 1.5fr 4fr 1fr;
}
app-fsc-form .print-page--section .content.social {
  grid-template-columns: 1fr 2fr 3fr;
}
app-fsc-form .print-page--section .content.pregnancy {
  grid-template-columns: 1fr 1fr 1fr;
}
app-fsc-form .print-page--section .content.nutrition {
  grid-template-columns: 1fr 2fr 1fr;
}
app-fsc-form .print-page--section .content.lead {
  grid-template-columns: 1.2fr 1fr 1.6fr;
}
app-fsc-form .print-page--section .content .block label {
  font-weight: bold;
}
@media print {
  app-fsc-form .print-page {
    display: block;
  }
}

/* ===== admin ===== */
app-admin .row-border td {
  border-bottom: 1px solid #888 !important;
}
app-admin .import-table td {
  margin: 0px;
}
app-admin tr:hover {
  background-color: #eee;
}

/* ===== inbound-referral-edit-form ===== */
app-inbound-referral-edit-form .inbound-referral-edit label {
  width: 100px;
  text-align: right;
}

/* ===== client-profile-info ===== */
app-client-profile-info .relationship-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===== notification-bell ===== */
app-notification-bell {
  /* Notification type styles */
  /* Priority styles */
  /* Bell shake animation */
  /* Responsive design */
}
app-notification-bell .notification-bell-container {
  position: relative;
  display: inline-block;
}
app-notification-bell .notification-bell {
  position: relative;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}
app-notification-bell .notification-bell:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
app-notification-bell .notification-bell i {
  font-size: 1.2rem;
  color: #6c757d;
  transition: color 0.2s ease;
}
app-notification-bell .notification-bell.has-notifications i.bell-active {
  color: #007bff;
  animation: bellShake 0.5s ease-in-out;
}
app-notification-bell .notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: #dc3545;
  color: white;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: bold;
  min-width: 18px;
  text-align: center;
  line-height: 1.2;
}
app-notification-bell .notification-dropdown {
  position: absolute;
  top: 100px;
  right: 0;
  width: 350px;
  max-height: 500px;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  overflow: hidden;
}
app-notification-bell .notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #dee2e6;
  background-color: #f8f9fa;
}
app-notification-bell .notification-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #495057;
}
app-notification-bell .notification-actions {
  display: flex;
  gap: 8px;
}
app-notification-bell .mark-all-read-btn,
app-notification-bell .close-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  color: #6c757d;
  transition: background-color 0.2s ease;
}
app-notification-bell .mark-all-read-btn:hover,
app-notification-bell .close-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
app-notification-bell .notification-list {
  max-height: 400px;
  overflow-y: auto;
}
app-notification-bell .no-notifications {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
}
app-notification-bell .no-notifications i {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}
app-notification-bell .notification-item {
  border-bottom: 1px solid #f1f3f4;
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
}
app-notification-bell .notification-item:hover {
  background-color: #f8f9fa;
}
app-notification-bell .notification-item.unread {
  background-color: #e3f2fd;
  border-left: 4px solid #2196f3;
}
app-notification-bell .notification-content {
  display: flex;
  padding: 12px 16px;
  gap: 12px;
}
app-notification-bell .notification-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
app-notification-bell .notification-body {
  flex: 1;
  min-width: 0;
}
app-notification-bell .notification-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #212529;
  margin-bottom: 4px;
  line-height: 1.3;
}
app-notification-bell .notification-message {
  font-size: 0.8rem;
  color: #6c757d;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
app-notification-bell .notification-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #868e96;
}
app-notification-bell .notification-action {
  color: #007bff;
  font-weight: 500;
}
app-notification-bell .notification-controls {
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
app-notification-bell .notification-item:hover .notification-controls {
  opacity: 1;
}
app-notification-bell .mark-read-btn,
app-notification-bell .delete-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  color: #6c757d;
  font-size: 0.8rem;
  transition: background-color 0.2s ease;
}
app-notification-bell .mark-read-btn:hover {
  background-color: #28a745;
  color: white;
}
app-notification-bell .delete-btn:hover {
  background-color: #dc3545;
  color: white;
}
app-notification-bell .notification-footer {
  padding: 12px 16px;
  text-align: center;
  border-top: 1px solid #dee2e6;
  background-color: #f8f9fa;
}
app-notification-bell .notification-footer a {
  color: #007bff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
app-notification-bell .notification-footer a:hover {
  text-decoration: underline;
}
app-notification-bell .notification-info .notification-icon i {
  color: #17a2b8;
}
app-notification-bell .notification-success .notification-icon i {
  color: #28a745;
}
app-notification-bell .notification-warning .notification-icon i {
  color: #ffc107;
}
app-notification-bell .notification-error .notification-icon i {
  color: #dc3545;
}
app-notification-bell .priority-critical {
  border-left-color: #dc3545 !important;
}
app-notification-bell .priority-high {
  border-left-color: #fd7e14 !important;
}
app-notification-bell .priority-medium {
  border-left-color: #ffc107 !important;
}
app-notification-bell .priority-low {
  border-left-color: #6c757d !important;
}
@keyframes bellShake {
  0%, 100% {
    transform: rotate(0deg);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: rotate(-10deg);
  }
  20%, 40%, 60%, 80% {
    transform: rotate(10deg);
  }
}
@media (max-width: 768px) {
  app-notification-bell .notification-dropdown {
    width: 300px;
    right: -50px;
  }
}
@media (max-width: 480px) {
  app-notification-bell .notification-dropdown {
    width: 280px;
    right: -100px;
  }
}
