:root {
  --primary-color: #7E57C2; /* Warm purple - Friendly and trustworthy */
  --secondary-color: #26A69A; /* Teal green - Calm and reassuring */
  --accent-color: #FF5252; /* Coral for notifications and important actions */
  --background-color: #F5F7FA;
  --text-primary: #333333;
  --text-secondary: #666666;
  --border-color: #E0E0E0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background-color);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

/* iPhone 15 Pro Dimensions and Styling */
.iphone-frame {
  width: 393px; /* iPhone 15 Pro width */
  height: 852px; /* iPhone 15 Pro height */
  background-color: white;
  border-radius: 55px; /* Rounded corners */
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
  margin: 20px;
  border: 14px solid #1A1A1A; /* iPhone frame */
}

/* iOS Status Bar */
.status-bar {
  height: 44px;
  width: 100%;
  background-color: white;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.status-bar-time {
  font-weight: 700;
}

.status-bar-icons {
  display: flex;
  gap: 6px;
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 83px;
  background-color: rgba(255, 255, 255, 0.98);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-bottom: env(safe-area-inset-bottom, 20px);
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #666;
  font-size: 10px;
}

.nav-item.active {
  color: var(--primary-color);
}

.nav-item i {
  font-size: 22px;
  margin-bottom: 4px;
}

/* Common elements */
.btn-primary {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  transition: all 0.2s;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  transition: all 0.2s;
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-block;
  text-align: center;
}

.card {
  background-color: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 16px;
}

.badge {
  background-color: var(--primary-color);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.badge-secondary {
  background-color: var(--secondary-color);
}

.badge-accent {
  background-color: var(--accent-color);
}

.avatar {
  border-radius: 50%;
  object-fit: cover;
}

.verification-badge {
  color: #4CAF50;
  font-size: 14px;
}

/* Content container */
.screen-content {
  height: calc(100% - 44px); /* Full height - status bar */
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 99px; /* 83px for nav + 16px extra padding */
}

/* Home screen specific */
.search-bar {
  background-color: rgba(142, 142, 147, 0.12);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.search-bar i {
  color: #8E8E93;
  margin-right: 8px;
}

.search-input {
  background: transparent;
  border: none;
  flex-grow: 1;
  font-size: 16px;
  outline: none;
  color: var(--text-primary);
}

.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.chip {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 14px;
  white-space: nowrap;
}

.chip.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Pet card */
.pet-card {
  position: relative;
}

.pet-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.pet-info {
  padding: 16px;
}

.rating {
  color: #FFC107;
  font-size: 14px;
}

/* Profile screens */
.profile-header {
  position: relative;
  padding-top: 16px;
  text-align: center;
}

.profile-cover {
  height: 120px;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 60px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border: 4px solid white;
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.tab-navigation {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin: 16px 0;
}

.tab {
  padding: 12px 0;
  flex-grow: 1;
  text-align: center;
  font-weight: 600;
  color: var(--text-secondary);
}

.tab.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

/* Messages screen */
.conversation-list {
  display: flex;
  flex-direction: column;
}

.conversation-item {
  display: flex;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.conversation-avatar {
  width: 56px;
  height: 56px;
  margin-right: 16px;
}

.conversation-content {
  flex-grow: 1;
}

.conversation-time {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Chat screen */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px;
}

.chat-input {
  display: flex;
  padding: 12px 16px;
  background-color: white;
  border-top: 1px solid var(--border-color);
}

.message-input {
  flex-grow: 1;
  border: none;
  background-color: rgba(142, 142, 147, 0.12);
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 16px;
  outline: none;
}

.message-bubble {
  max-width: 75%;
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: 18px;
}

.message-sent {
  align-self: flex-end;
  background-color: var(--primary-color);
  color: white;
  border-bottom-right-radius: 4px;
}

.message-received {
  align-self: flex-start;
  background-color: #E9E9EB;
  color: black;
  border-bottom-left-radius: 4px;
}

.message-time {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 4px;
  text-align: right;
}

/* Booking screens */
.calendar-view {
  background-color: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
}

.calendar-day.active {
  background-color: var(--primary-color);
  color: white;
}

.calendar-day.unavailable {
  color: var(--text-secondary);
  opacity: 0.5;
}

/* Additional utility classes */
.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.text-accent {
  color: var(--accent-color);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Prototype grid layout */
.prototype-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  padding: 30px;
}

.prototype-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.prototype-label {
  margin-top: 10px;
  font-weight: bold;
  font-size: 16px;
}

iframe {
  border: none;
}