/**
 * MFUMO BORA WA MATOKEO - MEETING SMS MODULE
 * SCOPED STYLESHEET (CSS Classes zote: .msms-*)
 */

/* Phone Mockup */
.msms-phone-mockup {
  width: 320px;
  max-width: 100%;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.45), 0 0 0 10px #1e293b, 0 0 0 12px #334155;
  background-color: #0f172a;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.msms-phone-notch {
  width: 140px;
  height: 22px;
  background-color: #1e293b;
  margin: 0 auto;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  position: relative;
  z-index: 10;
}

.msms-phone-screen {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.msms-phone-header {
  background-color: #ffffff;
  border-bottom: 1px solid #cbd5e1;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.msms-phone-body {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}

.msms-phone-bubble {
  background-color: #2563eb;
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 18px;
  border-bottom-right-radius: 4px;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
  word-break: break-word;
}

.msms-phone-time {
  font-size: 10px;
  color: #94a3b8;
  text-align: right;
  margin-top: 4px;
}

/* Variable Chips */
.msms-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  user-select: none;
}

.msms-chip:hover {
  background-color: #dbeafe;
  border-color: #93c5fd;
  transform: translateY(-1px);
}

.msms-chip:active {
  transform: translateY(0);
}

/* Wizard Steps */
.msms-step-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.msms-step-btn.msms-active {
  background-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.msms-step-btn.msms-inactive {
  background-color: #f1f5f9;
  color: #64748b;
}

.msms-step-btn.msms-done {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

/* Status Badges */
.msms-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
}

.msms-badge-queued {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.msms-badge-sent {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.msms-badge-failed {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Offline Queue Banner */
.msms-queue-banner {
  background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 14px 20px;
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Agendas List */
.msms-agenda-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.15s ease;
}

.msms-agenda-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* Modal Overlay */
.msms-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.msms-modal-dialog {
  background-color: #ffffff;
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: msms-zoom-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes msms-zoom-in {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
