/* iPhone Mockup Styles */

.iphone-mockup-container {
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

.iphone-front {
  width: 294px;
  height: 600px;
  background-color: #000;
  border-radius: 50px;
  position: relative;
  box-sizing: border-box;
}

.iphone-front * {
  box-sizing: border-box;
}

/* Frame */
.iphone-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid #bbb5b3;
  border-radius: 50px;
  box-shadow: 0 0 0 1px #4a4947;
  pointer-events: none;
}

/* Antenas */
.iphone-antenas > div {
  background-color: #75726f;
  position: absolute;
}

.iphone-antenas .tt {
  width: 8px;
  height: 3.5px;
  top: 0;
  right: 60px;
}

.iphone-antenas .tr {
  width: 3.5px;
  height: 8px;
  top: 60px;
  right: -1px;
}

.iphone-antenas .tl {
  width: 3.5px;
  height: 8px;
  top: 60px;
  left: -1px;
}

.iphone-antenas .bb {
  width: 8px;
  height: 3.5px;
  bottom: -1.5px;
  left: 60px;
}

.iphone-antenas .bl {
  width: 3.5px;
  height: 8px;
  bottom: 60px;
  left: -1px;
}

.iphone-antenas .br {
  width: 3.5px;
  height: 8px;
  bottom: 60px;
  right: -1px;
}

/* Keys */
.iphone-keys .silent {
  width: 3.5px;
  height: 28px;
  border-top: 2px solid #eae0d9;
  border-bottom: 2px solid #eae0d9;
  position: absolute;
  top: 105px;
  left: -4.5px;
  background: linear-gradient(90deg, #888, #555);
}

.iphone-keys .volt {
  width: 3.5px;
  height: 50px;
  border-top: 2px solid #eae0d9;
  border-bottom: 2px solid #eae0d9;
  position: absolute;
  top: 150px;
  left: -4.5px;
  background: linear-gradient(90deg, #888, #555);
}

.iphone-keys .volb {
  width: 3.5px;
  height: 50px;
  border-top: 2px solid #eae0d9;
  border-bottom: 2px solid #eae0d9;
  position: absolute;
  top: 210px;
  left: -4.5px;
  background: linear-gradient(90deg, #888, #555);
}

.iphone-keys .lock {
  width: 3.5px;
  height: 70px;
  border-top: 2px solid #eae0d9;
  border-bottom: 2px solid #eae0d9;
  position: absolute;
  top: 192px;
  right: -4.5px;
  background: linear-gradient(-90deg, #888, #555);
}

/* Screen */
.iphone-screen {
  width: 270px;
  height: 576px;
  border-radius: 40px;
  margin-top: 12px;
  margin-left: 12px;
  position: relative;
  overflow: hidden;
}

/* Dynamic Island */
.iphone-island {
  position: absolute;
  top: 8px;
  right: 0;
  left: 0;
  margin-right: auto;
  margin-left: auto;
  width: 90px;
  height: 25px;
  background-color: #000;
  border-radius: 40px;
  z-index: 10;
}

.iphone-camera {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 10px;
  width: 15px;
  height: 15px;
  background-color: #111;
  border-radius: 50%;
}

.iphone-camera::before {
  content: '';
  display: block;
  position: absolute;
  top: 3px;
  left: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #161a3c;
}

.iphone-camera::after {
  content: '';
  display: block;
  position: absolute;
  top: 5px;
  left: 5px;
  width: 5px;
  height: 5px;
  background: linear-gradient(0, #03344f 0%, #040e27 50%, #3e5191 100%);
  border-radius: 50%;
}

/* iOS Lock Screen */
.ios-lockscreen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 40px 16px 20px;
}

/* Status Bar */
.ios-status-bar {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  color: white;
  font-size: 12px;
  font-weight: 600;
}

.status-time {
  font-size: 14px;
  font-weight: 600;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.signal-icon {
  width: 16px;
  height: 12px;
  color: white;
}

.wifi-icon {
  width: 14px;
  height: 10px;
  color: white;
}

.battery-icon {
  display: flex;
  align-items: center;
}

.battery-body {
  width: 22px;
  height: 10px;
  border: 1.5px solid white;
  border-radius: 3px;
  padding: 1px;
}

.battery-level {
  width: 100%;
  height: 100%;
  background-color: white;
  border-radius: 1px;
}

.battery-cap {
  width: 2px;
  height: 5px;
  background-color: white;
  border-radius: 0 1px 1px 0;
  margin-left: 1px;
}

/* Lock Icon */
.lock-icon {
  margin-top: 20px;
  width: 20px;
  height: 20px;
  color: white;
  opacity: 0.7;
}

.lock-icon svg {
  width: 100%;
  height: 100%;
}

/* Date & Time */
.ios-datetime {
  text-align: center;
  margin-top: 8px;
}

.ios-date {
  color: white;
  font-size: 16px;
  font-weight: 400;
  opacity: 0.9;
}

.ios-time {
  color: white;
  font-size: 72px;
  font-weight: 200;
  line-height: 1;
  margin-top: 4px;
  letter-spacing: -2px;
}

/* WhatsApp Notification */
.whatsapp-notification {
  position: absolute;
  top: 180px;
  left: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.whatsapp-notification.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.whatsapp-notification.animate-in.show {
  animation: notification-bounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes notification-bounce {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  50% {
    transform: translateY(5px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.notification-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.notification-app-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-app-icon svg {
  width: 16px;
  height: 16px;
}

.notification-app-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.notification-app-name {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.notification-time {
  font-size: 11px;
  color: #999;
}

.notification-body {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.notification-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #e0e0e0;
}

.notification-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-sender {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  margin-bottom: 2px;
}

.notification-message {
  font-size: 13px;
  color: #333;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tap Hint Animation */
.tap-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
}

.whatsapp-notification.show .tap-hint {
  animation: tap-hint-appear 0.5s ease-out 0.6s forwards;
}

.whatsapp-notification.show .tap-hint::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  border: 0 solid rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  animation: tapAnime 1.5s ease-out 1.1s infinite;
}

@keyframes tap-hint-appear {
  to {
    opacity: 1;
  }
}

@keyframes tapAnime {
  0% {
    width: 0;
    height: 0;
    margin: 0 0 0 0;
    border-width: 2px;
    opacity: 0.8;
  }
  30% {
    width: 0;
    height: 0;
    margin: -20px 0 0 -20px;
    border-width: 20px;
    opacity: 0.5;
  }
  60% {
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border-width: 0;
    opacity: 0;
  }
  100% {
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border-width: 0;
    opacity: 0;
  }
}

/* Home Indicator */
.ios-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
}

/* WhatsApp Loading Screen */
.whatsapp-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #111b21;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 20;
}

.whatsapp-loading.show {
  opacity: 1;
  visibility: visible;
}

.whatsapp-loading-icon {
  width: 80px;
  height: 80px;
  animation: pulse-icon 1s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* White Fade Overlay */
.white-fade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  border-radius: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  z-index: 25;
}

.white-fade.show {
  opacity: 1;
  visibility: visible;
}

/* WhatsApp Chat Screen */
.whatsapp-chat {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #111b21;
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 15;
  overflow: hidden;
}

.whatsapp-chat.show {
  opacity: 1;
  visibility: visible;
}

/* Chat Header */
.chat-header {
  display: flex;
  align-items: center;
  padding: 40px 10px 10px;
  background-color: #1f2c34;
  gap: 10px;
}

.chat-back {
  width: 24px;
  height: 24px;
  color: #8696a0;
}

.chat-back svg {
  width: 100%;
  height: 100%;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-contact-info {
  flex: 1;
}

.chat-contact-name {
  font-size: 15px;
  font-weight: 500;
  color: #e9edef;
}

.chat-contact-status {
  font-size: 12px;
  color: #8696a0;
}

.chat-header-actions {
  display: flex;
  gap: 16px;
  color: #8696a0;
}

.chat-header-actions svg {
  width: 22px;
  height: 22px;
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  padding: 10px 12px;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23182229' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-color: #0b141a;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.chat-message {
  display: flex;
  margin-bottom: 8px;
}

.chat-message.incoming {
  justify-content: flex-start;
}

.chat-message.outgoing {
  justify-content: flex-end;
}

.message-bubble {
  max-width: 85%;
  padding: 8px 10px;
  border-radius: 8px;
  position: relative;
}

.chat-message.incoming .message-bubble {
  background-color: #1f2c34;
  border-top-left-radius: 0;
}

.chat-message.outgoing .message-bubble {
  background-color: #005c4b;
  border-top-right-radius: 0;
}

.message-bubble p {
  margin: 0;
  font-size: 13px;
  color: #e9edef;
  line-height: 1.4;
}

.message-time {
  font-size: 10px;
  color: #8696a0;
  float: right;
  margin-left: 8px;
  margin-top: 4px;
}

/* Chat Input */
.chat-input {
  display: flex;
  align-items: center;
  padding: 8px 10px 24px;
  background-color: #1f2c34;
  gap: 8px;
}

.chat-input-icons svg {
  width: 24px;
  height: 24px;
}

.chat-input-field {
  flex: 1;
  background-color: #2a3942;
  border-radius: 20px;
  padding: 8px 16px;
  color: #8696a0;
  font-size: 14px;
}

.chat-input-actions {
  display: flex;
  gap: 8px;
}

.chat-input-actions svg {
  width: 24px;
  height: 24px;
}

/* Quick Reply Buttons */
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 12px;
  position: relative;
}

.quick-replies.hidden {
  display: none;
}

.quick-reply-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background-color: transparent;
  border: 1px solid #00a884;
  border-radius: 18px;
  color: #00a884;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-reply-btn:hover {
  background-color: rgba(0, 168, 132, 0.1);
}

.quick-reply-btn:active {
  transform: scale(0.95);
}

.quick-reply-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Tap hint for buttons */
.tap-hint-buttons {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  animation: tap-hint-appear 0.5s ease-out 0.6s forwards;
}

.tap-hint-buttons::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  border: 0 solid rgba(0, 168, 132, 0.4);
  border-radius: 50%;
  animation: tapAnime 1.5s ease-out 1.1s infinite;
}

/* Read receipts */
.read-receipts {
  color: #53bdeb;
  font-size: 11px;
  margin-left: 2px;
  letter-spacing: -3px;
}

/* Message animations */
.chat-message.hidden {
  display: none;
}

.chat-message.slide-in {
  animation: message-slide-in 0.3s ease-out forwards;
}

@keyframes message-slide-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dashboard Prompt */
.dashboard-prompt {
  display: flex;
  justify-content: center;
  padding: 12px 0;
  position: relative;
}

.dashboard-prompt.hidden {
  display: none;
}

.dashboard-prompt-content {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  color: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.dashboard-prompt-content:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.dashboard-prompt-content svg {
  width: 18px;
  height: 18px;
}

/* Browser Mockup */
.browser-mockup {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f8fafc;
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 30;
  overflow: hidden;
}

.browser-mockup.show {
  opacity: 1;
  visibility: visible;
}

/* Browser Chrome */
.browser-chrome {
  background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
  padding: 38px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.browser-controls {
  display: flex;
  gap: 5px;
  position: absolute;
  top: 42px;
  left: 12px;
}

.browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.browser-dot.red { background-color: #ef4444; }
.browser-dot.yellow { background-color: #eab308; }
.browser-dot.green { background-color: #22c55e; }

.browser-url-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: white;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  color: #64748b;
}

.lock-icon-small {
  width: 12px;
  height: 12px;
}

.browser-url {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dashboard Content */
.dashboard-content {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.dashboard-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.dashboard-logo-text {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.dashboard-welcome {
  margin-bottom: 12px;
}

.dashboard-welcome h2 {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

/* Member Card */
.dashboard-member-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.member-info {
  flex: 1;
}

.member-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.member-status {
  font-size: 11px;
  color: #64748b;
}

.member-progress-badge {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* Progress Section */
.dashboard-progress-section {
  background: white;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-title {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
}

.progress-bar-container {
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-label {
  font-size: 11px;
  color: #64748b;
  text-align: right;
}

/* Stats Grid */
.dashboard-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
}

.stat-icon.completed {
  background-color: #dcfce7;
  color: #22c55e;
}

.stat-icon.pending {
  background-color: #fef3c7;
  color: #f59e0b;
}

.stat-icon svg {
  width: 18px;
  height: 18px;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}

.stat-label {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mini Chart */
.dashboard-chart {
  background: white;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-title {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 10px;
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 60px;
  gap: 6px;
  padding: 0 4px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
  border-radius: 3px;
  min-height: 4px;
  transition: height 0.3s ease;
}

.chart-bar.active {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  padding: 6px 4px 0;
}

.chart-labels span {
  font-size: 9px;
  color: #94a3b8;
  flex: 1;
  text-align: center;
}

/* Team View Prompt */
.team-view-prompt {
  display: flex;
  justify-content: center;
  padding: 12px 0;
  margin-top: 8px;
  position: relative;
}

.team-view-prompt-content {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 20px;
  color: white;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.team-view-prompt-content:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

.team-view-prompt-content svg {
  width: 16px;
  height: 16px;
}

/* Team Content */
.team-content {
  padding: 10px !important;
}

.team-title-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.team-title-section h2 {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.team-count {
  font-size: 11px;
  color: #64748b;
  background-color: #f1f5f9;
  padding: 3px 8px;
  border-radius: 10px;
}

/* Training Matrix */
.training-matrix {
  background: white;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.matrix-header {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
  margin-bottom: 4px;
}

.matrix-row {
  display: flex;
  padding: 5px 0;
  border-bottom: 1px solid #f1f5f9;
}

.matrix-row:last-child {
  border-bottom: none;
}

.matrix-row.leader {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.1) 0%, transparent 100%);
}

.matrix-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.matrix-cell.name-cell {
  flex: 1;
  justify-content: flex-start;
  gap: 6px;
}

.matrix-cell.training-cell {
  width: 28px;
  font-weight: 600;
  color: #64748b;
  font-size: 9px;
}

.matrix-row .matrix-cell:not(.name-cell) {
  width: 28px;
}

.mini-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 8px;
  font-weight: 600;
  flex-shrink: 0;
}

.matrix-cell.name-cell span:not(.crown) {
  font-size: 11px;
  color: #1e293b;
  font-weight: 500;
}

.crown {
  font-size: 10px;
}

.check-mark {
  color: #22c55e;
  font-weight: bold;
  font-size: 12px;
}

.pending-mark {
  color: #cbd5e1;
  font-size: 10px;
}

/* Knowledge Score Section */
.knowledge-section {
  background: white;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.knowledge-title {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
}

.knowledge-score-display {
  display: flex;
  align-items: center;
  gap: 12px;
}

.score-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: conic-gradient(#22c55e 0% 67%, #e2e8f0 67% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.score-circle::before {
  content: '';
  position: absolute;
  width: 38px;
  height: 38px;
  background: white;
  border-radius: 50%;
}

.score-value {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
}

.score-details {
  flex: 1;
}

.score-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.score-item:last-child {
  margin-bottom: 0;
}

.score-label {
  font-size: 10px;
  color: #64748b;
}

.score-stat {
  font-size: 10px;
  font-weight: 600;
  color: #1e293b;
}

/* Send Quiz Button */
.send-quiz-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.send-quiz-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.5);
}

.send-quiz-btn svg {
  width: 18px;
  height: 18px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .iphone-front {
    transform: scale(0.85);
    transform-origin: center;
  }
}

@media (max-width: 400px) {
  .iphone-front {
    transform: scale(0.75);
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Flash message animations */
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-in {
  animation: slide-in 0.3s ease-out;
}

[data-flash-target="message"] {
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
