/* Bondinary Mobile App Wireframe Styles */

:root {
  /* Brand Colors */
  --primary-color: #FF4B5C;
  --primary-dark: #E63946;
  --secondary-color: #6C757D;
  --background: #F8F9FA;
  --surface: #FFFFFF;
  --text-primary: #212529;
  --text-secondary: #6C757D;
  --border-color: #DEE2E6;
  --success: #28A745;
  --warning: #FFC107;
  --danger: #DC3545;
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.15);
  
  /* Font */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Mobile Frame Container */
.mobile-frame {
  width: 375px;
  height: 812px;
  background: #000;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

/* Notch */
.mobile-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 30px;
  background: #000;
  border-radius: 0 0 20px 20px;
  z-index: 100;
}

/* Screen */
.screen {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border-radius: 28px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

/* Hide scrollbar */
.screen::-webkit-scrollbar {
  width: 0;
  display: none;
}

/* Status Bar */
.status-bar {
  height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--spacing-md);
  font-size: 14px;
  font-weight: 500;
}

/* Top App Bar */
.top-app-bar {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 var(--spacing-md);
  background: var(--surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

.top-app-bar .back-button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.2s;
}

.top-app-bar .back-button:hover {
  background: rgba(0,0,0,0.05);
}

.top-app-bar .title {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.top-app-bar .action-button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.2s;
}

/* Content Area */
.content {
  padding: var(--spacing-md);
  padding-bottom: 80px; /* Space for bottom tabs */
}

/* Bottom Tab Bar */
.bottom-tabs {
  position: fixed;
  bottom: 12px; /* Account for mobile frame padding */
  left: 12px;
  right: 12px;
  height: 72px;
  background: var(--surface);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-radius: 0 0 28px 28px;
  z-index: 20;
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  cursor: pointer;
  padding: var(--spacing-sm);
  transition: all 0.2s;
  color: var(--text-secondary);
}

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

.tab .icon {
  width: 24px;
  height: 24px;
  font-size: 24px;
}

.tab .label {
  font-size: 10px;
  font-weight: 500;
}

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: var(--spacing-md);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.card-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  gap: var(--spacing-sm);
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

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

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: rgba(255, 75, 92, 0.1);
}

.btn-block {
  width: 100%;
}

/* Chips */
.chips-container {
  display: flex;
  gap: var(--spacing-sm);
  overflow-x: auto;
  padding: var(--spacing-sm) 0;
  margin-bottom: var(--spacing-md);
}

.chips-container::-webkit-scrollbar {
  display: none;
}

.chip {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--background);
  border: 1px solid var(--border-color);
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

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

/* Avatar */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--border-color);
}

.avatar-lg {
  width: 80px;
  height: 80px;
}

.avatar-xl {
  width: 120px;
  height: 120px;
}

/* Input */
.input-group {
  margin-bottom: var(--spacing-md);
}

.input-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: var(--font-family);
  transition: border-color 0.2s;
}

.input:focus {
  outline: none;
  border-color: var(--primary-color);
}

textarea.input {
  min-height: 100px;
  resize: vertical;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

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

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

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
}

.empty-state-icon {
  font-size: 64px;
  opacity: 0.3;
  margin-bottom: var(--spacing-md);
}

.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.empty-state-message {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

/* List */
.list-item {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  cursor: pointer;
  transition: background 0.2s;
}

.list-item:hover {
  background: var(--background);
}

.list-item:last-child {
  border-bottom: none;
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 88px; /* Above bottom tabs */
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.2s;
  z-index: 15;
}

.fab:hover {
  transform: scale(1.1);
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
}

.carousel-inner {
  display: flex;
  transition: transform 0.3s;
}

.carousel-item {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--spacing-xl);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) 0;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border-color);
  transition: all 0.2s;
}

.dot.active {
  background: var(--primary-color);
  width: 24px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }

.fw-bold { font-weight: 600; }
.fw-normal { font-weight: 400; }

/* Navigation Controls (for demo) */
.demo-controls {
  position: fixed;
  top: 20px;
  left: 20px;
  background: white;
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
}

.demo-controls select {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 14px;
  cursor: pointer;
}

/* Progress Bar */
.progress-bar {
  height: 4px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--spacing-md);
}

.progress-fill {
  height: 100%;
  background: var(--primary-color);
  transition: width 0.3s;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.stat-card {
  text-align: center;
  padding: var(--spacing-md);
  background: var(--background);
  border-radius: var(--radius-md);
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: var(--spacing-xs);
}

/* Check-in Status */
.checkin-status {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 6px 12px;
  background: rgba(40, 167, 69, 0.1);
  color: var(--success);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.checkin-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--success);
}
