/* src/styles.css */
:root {
  --primary: #dc2626;
  --primary-dark: #b91c1c;
  --primary-light: #fecaca;
  --secondary: #1e293b;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s ease;
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  height: 100%;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}
body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-white);
  overflow-x: hidden;
  height: 100%;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  margin: 0 !important;
  padding: 0 !important;
}
app-root {
  display: block;
  min-height: 100vh;
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden;
  margin: 0 !important;
  padding: 0 !important;
}
router-outlet + * {
  display: block;
  width: 100% !important;
  min-height: 100vh;
}
section,
main,
header,
footer,
aside,
nav,
article {
  max-width: 100vw;
}
app-donor-registration,
app-donor-portal {
  display: block;
  width: 100% !important;
  min-height: 100vh;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.5rem;
}
.logo-icon {
  font-size: 1.75rem;
  animation: heartbeat 1.5s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
.logo-text {
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}
.nav-links a:hover {
  color: var(--primary);
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-cta {
  padding: 0.75rem 1.5rem;
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-dark));
  color: white;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(220, 38, 38, 0.4);
}
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}
.hero-background {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}
.orb-1 {
  width: 500px;
  height: 500px;
  background:
    linear-gradient(
      135deg,
      var(--primary-light),
      rgba(220, 38, 38, 0.2));
  top: -150px;
  right: -100px;
}
.orb-2 {
  width: 400px;
  height: 400px;
  background:
    linear-gradient(
      135deg,
      rgba(220, 38, 38, 0.15),
      var(--primary-light));
  bottom: -100px;
  left: -100px;
  animation-delay: -4s;
}
@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(20px, 20px) rotate(5deg);
  }
}
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-content {
  max-width: 800px;
}
.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out 0.1s backwards;
}
.hero-quote {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  font-style: italic;
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeInUp 0.6s ease-out 0.3s backwards;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.btn-primary {
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-dark));
  color: white;
  box-shadow: 0 4px 14px 0 rgba(220, 38, 38, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px 0 rgba(220, 38, 38, 0.4);
}
.btn-primary svg {
  transition: transform 0.3s ease;
}
.btn-primary:hover svg {
  transform: translateX(4px);
}
.btn-secondary {
  background: var(--bg-white);
  color: var(--text-primary);
  border: 2px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: fadeInUp 0.6s ease-out 0.4s backwards;
}
.stat {
  text-align: center;
}
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.testimonials {
  padding: 6rem 2rem;
  background: var(--bg-light);
}
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: left;
  transition: var(--transition);
  position: relative;
}
.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}
.testimonial-card.featured {
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-dark));
  color: white;
}
.testimonial-card.featured .testimonial-quote,
.testimonial-card.featured .author-role {
  opacity: 0.8;
}
.testimonial-quote {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
}
.testimonial-card.featured .testimonial-quote {
  color: rgba(255, 255, 255, 0.3);
}
.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}
.testimonial-card.featured .author-avatar {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}
.author-info {
  display: flex;
  flex-direction: column;
}
.author-name {
  font-weight: 600;
}
.author-role {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 4rem 2rem 2rem;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo {
  margin-bottom: 1rem;
}
.footer-brand .logo-icon {
  color: var(--primary);
}
.footer-brand .logo-text {
  -webkit-text-fill-color: white;
}
.footer-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  max-width: 280px;
}
.social-links {
  display: flex;
  gap: 0.75rem;
}
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition);
}
.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}
.footer-links h4,
.footer-contact h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  color: var(--text-light);
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-light);
}
.footer-contact svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  color: var(--text-light);
  font-size: 0.875rem;
}
.footer-legal {
  display: flex;
  gap: 2rem;
}
.footer-legal a {
  color: var(--text-light);
  font-size: 0.875rem;
  transition: var(--transition);
}
.footer-legal a:hover {
  color: var(--primary);
}
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero {
    padding: 7rem 1.5rem 3rem;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .stat-divider {
    display: none;
  }
  .testimonials {
    padding: 4rem 1.5rem;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-quote {
    font-size: 1rem;
  }
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
  }
}
.blood-search-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-light);
}
.search-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.back-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.search-main {
  flex: 1;
  padding: 2rem;
}
.search-container {
  max-width: 1200px;
  margin: 0 auto;
}
.search-hero {
  text-align: center;
  padding: 2rem 0 3rem;
}
.search-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.search-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}
.blood-type-section {
  margin-bottom: 3rem;
}
.section-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 1.5rem;
}
.blood-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}
.blood-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
}
.blood-type-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.blood-type-card.selected {
  border-color: var(--primary);
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-dark));
  color: white;
}
.blood-drop {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.blood-type-label {
  font-size: 1.25rem;
  font-weight: 700;
}
.results-section {
  margin-top: 2rem;
}
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.results-title {
  font-size: 1.5rem;
  font-weight: 600;
}
.results-count {
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.results-grid {
  display: grid;
  gap: 1.5rem;
}
.result-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
}
.result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}
.bank-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.bank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.bank-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.bank-meta .rating svg {
  color: #fbbf24;
}
.status {
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.status.open {
  background: #dcfce7;
  color: #16a34a;
}
.status.closed {
  background: #fee2e2;
  color: #dc2626;
}
.units-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-dark));
  color: white;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  min-width: 80px;
}
.units-number {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.units-label {
  font-size: 0.75rem;
  opacity: 0.9;
}
.card-body {
  padding: 1.5rem;
}
.contact-info {
  margin-bottom: 1rem;
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.available-types {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.types-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.types-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.type-tag {
  padding: 0.25rem 0.75rem;
  background: var(--bg-light);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.type-tag.current {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.card-footer {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
}
.card-footer .btn {
  flex: 1;
  justify-content: center;
  padding: 0.75rem 1rem;
}
.loading-state {
  text-align: center;
  padding: 4rem 2rem;
}
.loader {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.empty-state,
.initial-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}
.empty-icon,
.initial-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}
.empty-state h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.search-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.875rem;
}
.search-footer a {
  color: var(--primary-light);
  font-weight: 600;
}
.search-footer a:hover {
  color: var(--primary);
}
@media (max-width: 768px) {
  .search-main {
    padding: 1rem;
  }
  .blood-type-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .card-header {
    flex-direction: column;
    gap: 1rem;
  }
  .units-badge {
    align-self: flex-start;
  }
  .card-footer {
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .blood-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  .back-btn {
    align-self: flex-start;
  }
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal-container {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-light);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
  z-index: 10;
}
.modal-close:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.modal-form {
  padding: 2rem;
}
.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.modal-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.modal-header p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.blood-type-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}
.blood-badge {
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-dark));
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  font-weight: 700;
}
.blood-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.required {
  color: var(--primary);
}
.form-group input[type=text],
.form-group input[type=tel],
.form-group input[type=number],
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.input-with-icon {
  display: flex;
  align-items: stretch;
}
.input-prefix {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  background: var(--bg-light);
  border: 2px solid var(--border);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  font-weight: 600;
  color: var(--text-secondary);
}
.input-with-icon input {
  border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
}
.form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}
.units-selector {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 160px;
}
.unit-btn {
  width: 48px;
  height: 48px;
  border: 2px solid var(--border);
  background: var(--bg-light);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.unit-btn:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}
.unit-btn:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.unit-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
.units-selector input {
  width: 64px;
  height: 48px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  border: 2px solid var(--border);
  border-left: none;
  border-right: none;
  border-radius: 0 !important;
}
.urgency-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.urgency-option {
  position: relative;
  cursor: pointer;
}
.urgency-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.urgency-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem 0.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}
.urgency-icon {
  font-size: 1.5rem;
}
.urgency-option.selected .urgency-label {
  border-color: var(--primary);
  background: var(--primary-light);
}
.urgency-option:hover .urgency-label {
  border-color: var(--primary-light);
}
.documents-notice {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.documents-notice h4 {
  font-size: 0.875rem;
  color: #92400e;
  margin-bottom: 0.5rem;
}
.documents-notice ul {
  font-size: 0.75rem;
  color: #b45309;
  padding-left: 1rem;
}
.documents-notice li {
  list-style: disc;
  margin-bottom: 0.25rem;
}
.confirmation-section {
  margin-bottom: 1.5rem;
}
.warning-banner {
  display: flex;
  gap: 12px;
  padding: 1rem;
  background:
    linear-gradient(
      135deg,
      #fef2f2,
      #fee2e2);
  border: 2px solid #fca5a5;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}
.warning-banner .warning-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.warning-banner p {
  font-size: 0.875rem;
  color: #991b1b;
  margin: 0;
  line-height: 1.5;
}
.warning-banner strong {
  color: #7f1d1d;
  font-weight: 700;
}
.confirmation-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1rem;
  background: var(--bg-light);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}
.confirmation-checkbox:hover {
  border-color: var(--primary-light);
}
.confirmation-checkbox:has(input:checked) {
  border-color: #16a34a;
  background: #f0fdf4;
}
.confirmation-checkbox input[type=checkbox] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #16a34a;
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox-label {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.5;
}
.submit-btn {
  width: 100%;
  justify-content: center;
  padding: 1rem 2rem;
}
.loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.modal-success {
  padding: 3rem 2rem;
  text-align: center;
}
.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}
.modal-success h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #16a34a;
  margin-bottom: 0.5rem;
}
.modal-success p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.success-info {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 1rem;
}
.info-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.info-item:last-child {
  border-bottom: none;
}
.info-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.info-value {
  font-weight: 600;
}
@media (max-width: 480px) {
  .modal-container {
    max-height: 100vh;
    border-radius: var(--radius-lg);
  }
  .modal-form {
    padding: 1.5rem;
  }
  .urgency-options {
    grid-template-columns: 1fr;
  }
}
.units-badge.units-low {
  background:
    linear-gradient(
      135deg,
      #dc2626,
      #b91c1c);
}
.units-badge.units-medium {
  background:
    linear-gradient(
      135deg,
      #f59e0b,
      #d97706);
}
.units-badge.units-high {
  background:
    linear-gradient(
      135deg,
      #16a34a,
      #15803d);
}
.error-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  margin-top: 16px;
  background:
    linear-gradient(
      135deg,
      #fef2f2,
      #fee2e2);
  border: 1px solid #fca5a5;
  border-radius: var(--radius-md);
  animation: shake 0.5s ease-in-out;
}
.error-banner .error-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.error-banner .error-content {
  flex: 1;
}
.error-banner .error-content strong {
  display: block;
  color: #dc2626;
  margin-bottom: 4px;
  font-size: 14px;
}
.error-banner .error-content p {
  color: #991b1b;
  font-size: 14px;
  margin: 0;
}
.error-banner .error-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #dc2626;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.error-banner .error-close:hover {
  color: #991b1b;
}
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  20%, 60% {
    transform: translateX(-5px);
  }
  40%, 80% {
    transform: translateX(5px);
  }
}
.prescription-upload {
  margin-top: 1rem;
}
.prescription-upload .file-input {
  display: none;
}
.prescription-upload .upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.prescription-upload .upload-label:hover {
  border-color: var(--primary);
  background: rgba(220, 38, 38, 0.05);
}
.prescription-upload .upload-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.prescription-upload .upload-hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}
.prescription-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.prescription-preview .preview-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.prescription-preview img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.prescription-preview .pdf-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.prescription-preview .pdf-icon {
  font-size: 1.5rem;
}
.prescription-preview .upload-status {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.prescription-preview .upload-status.success {
  color: #22c55e;
  font-weight: 500;
}
.prescription-preview .remove-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fee2e2;
  color: var(--primary);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.prescription-preview .remove-btn:hover {
  background: var(--primary);
  color: white;
}

/* angular:styles/global:styles */
/*# sourceMappingURL=styles.css.map */
