:root {
  --primary-color: rgba(255, 117, 173, 0.95);
  --primary-dark: #d53f91;
  --secondary-color: #5a3854;
  --text-primary: #3c1f36;
  --text-muted: rgba(60, 31, 54, 0.72);
  --surface: rgba(255, 255, 255, 0.22);
  --surface-strong: rgba(255, 255, 255, 0.38);
  --surface-soft: rgba(255, 243, 248, 0.75);
  --glass-border: rgba(255, 255, 255, 0.55);
  --light-bg: rgba(255, 244, 250, 0.65);
  --profile-pink: #ffdee8;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(circle at top left, rgba(255, 194, 217, 0.35), transparent 30%),
              radial-gradient(circle at bottom right, rgba(255, 147, 190, 0.22), transparent 25%),
              linear-gradient(180deg, #fee7f3 0%, #f9e2f1 45%, #f5d8ef 100%);
  color: var(--text-primary);
}

.bg-light-bg {
  background-color: var(--light-bg) !important;
}

.text-secondary-color {
  color: var(--secondary-color) !important;
}

#app-container {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 36px;
  box-shadow: 0 30px 80px rgba(145, 60, 113, 0.16);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  overflow: hidden;
}

#home-screen,
#contacts-screen {
  background: transparent;
}

.sos-button {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(255, 118, 174, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 24px 80px rgba(255, 118, 174, 0.18);
  color: white;
  animation: pulse 2.2s infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sos-button:active {
  transform: scale(0.96);
  animation: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 118, 174, 0.35); }
  70% { box-shadow: 0 0 0 36px rgba(255, 118, 174, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 118, 174, 0); }
}

.feature-card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background 0.2s ease;
  background: var(--surface-soft);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(107, 39, 88, 0.08);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(107, 39, 88, 0.14);
}

.modal-container {
  transition: opacity 0.3s ease;
}

.modal-content {
  transition: transform 0.3s ease;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

#modal-close-btn {
  background-color: var(--primary-color);
  color: white;
}

#modal-close-btn:hover {
  background-color: var(--primary-dark);
}

.bottom-nav {
  background: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 -18px 40px rgba(143, 68, 118, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-item {
  color: rgba(88, 48, 75, 0.8);
}

.nav-item.active i,
.nav-item.active span {
  color: var(--primary-color);
}

.contact-list::-webkit-scrollbar {
  width: 6px;
}

.contact-list::-webkit-scrollbar-thumb {
  background-color: rgba(255, 117, 173, 0.8);
  border-radius: 20px;
}

:root {
  --profile-pink: #ffe4ec; /* soft light pink for initials */
}

/* Contact Card Layout */
.contact-card {
  display: flex;
  flex-direction: row; /* Always stay in a line */
  justify-content: space-between;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 1rem;
  border-radius: 1.5rem;
  margin-bottom: 1rem;
}

.profile-pink {
  background: linear-gradient(145deg, #ffbddf, #ff71a2);
  color: white;
  font-weight: bold;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.contact-actions {
  display: flex;
  gap: 0.75rem;
}

.contact-actions .fa-phone-alt {
  display: inline-block;
  transform: rotate(90deg); 
  color: #22c55e !important;
  font-size: 1.2rem;
}

.contact-actions .fa-trash-alt {
  color: #f87171 !important; 
  font-size: 1.2rem;
}

.contact-card p {
  margin: 0;
  text-align: left;
}

.hidden {
  display: none !important;
}
.contact-actions a,
.contact-actions button {
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.contact-actions a:hover {
  color: #ff6fa0;
}
.contact-actions button:hover {
  color: var(--primary-color);
}
