/* 
========================================================================
   Ankprabha - Numerology CRM Design System & Stylesheet
========================================================================
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --primary-color: #f39c12;
  --primary-dark: #d68910;
  --primary-light: #fef9e7;
  --accent-color: #e67e22;
  
  --bg-color: #f7f9fc;
  --card-bg: #ffffff;
  --text-main: #2c3e50;
  --text-muted: #7f8c8d;
  --text-light: #95a5a6;
  
  --success-color: #2ecc71;
  --success-light: #e8f8f5;
  --danger-color: #e74c3c;
  --danger-light: #fdedd8;
  --info-color: #3498db;
  --info-light: #ebf5fb;
  --purple-color: #9b59b6;
  --purple-light: #f4ecf7;
  
  --font-main: 'Inter', sans-serif;
  --font-title: 'Outfit', sans-serif;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
  
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-round: 50%;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background: linear-gradient(135deg, #1e272e, #2d3436);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

/* 
========================================================================
   App Wrapper (Centered Page UI for Desktop, Full Screen for Mobile)
========================================================================
*/
.app-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px; /* Centered width to keep app-proportions on desktop */
  background-color: var(--bg-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
}

/* App Main Container */
.app-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

/* 
========================================================================
   Header Layout
========================================================================
*/
.app-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #ffffff;
  padding: 20px 20px 20px 20px;
  position: relative;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.app-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.app-header-title-container {
  flex-grow: 1;
}

.app-header-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.app-header-subtitle {
  font-size: 11px;
  opacity: 0.9;
  font-weight: 400;
}

.header-action-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-round);
  text-decoration: none;
  transition: var(--transition-fast);
}

.header-action-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Sub-Tab Navigation (under Header in Dashboard) */
.sub-tabs-bar {
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e9ecef;
  padding: 0 8px;
  z-index: 9;
}

.sub-tab-btn {
  background: none;
  border: none;
  padding: 12px 10px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  text-decoration: none;
  position: relative;
  transition: var(--transition-fast);
}

.sub-tab-btn span {
  font-size: 11px;
}

.sub-tab-btn.active {
  color: var(--primary-color);
}

.sub-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px 3px 0 0;
}

/* 
========================================================================
   App Content Views
========================================================================
*/
.app-view-container {
  flex: 1;
  padding: 16px;
  padding-bottom: 84px; /* space for bottom nav */
  background-color: var(--bg-color);
  position: relative;
}

/* 
========================================================================
   Bottom Navigation Bar
========================================================================
*/
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 500px; /* matches .app-wrapper */
  height: 68px;
  background-color: #ffffff;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px 8px 16px;
  z-index: 100;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.nav-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  cursor: pointer;
  flex: 1;
  height: 100%;
  text-decoration: none;
  transition: var(--transition-fast);
}

.nav-item.active {
  color: var(--primary-color);
}

.nav-item-icon {
  font-size: 20px;
}

.nav-item-label {
  font-size: 9px;
  font-weight: 600;
}

/* Central Floating Action Button (FAB) */
.fab-container {
  position: relative;
  width: 56px;
  height: 56px;
  margin-top: -30px; /* offsets button upward */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 105;
}

.fab-btn {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #f1a80a, #f39c12);
  border: none;
  border-radius: var(--border-radius-round);
  box-shadow: 0 4px 16px rgba(243, 156, 18, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.fab-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.5);
}

.fab-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* 
========================================================================
   Universal Cards & Badges
========================================================================
*/
.card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid #eef1f6;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
}

.badge-success {
  background-color: var(--success-light);
  color: var(--success-color);
}

.badge-warning {
  background-color: var(--danger-light);
  color: var(--accent-color);
}

.badge-danger {
  background-color: #fde8e8;
  color: var(--danger-color);
}

.badge-info {
  background-color: var(--info-light);
  color: var(--info-color);
}

.badge-purple {
  background-color: var(--purple-light);
  color: var(--purple-color);
}

/* 
========================================================================
   Dashboard Home Layout
========================================================================
*/
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px; /* border-like separation grid */
  background-color: #eaecef;
  border: 1px solid #eaecef;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.dashboard-grid-item {
  background-color: #ffffff;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.dashboard-grid-item:hover {
  background-color: var(--primary-light);
}

.grid-item-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-round);
  background-color: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: transform var(--transition-fast);
}

.dashboard-grid-item:hover .grid-item-icon-wrapper {
  transform: translateY(-2px);
}

.grid-item-title {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
  white-space: nowrap;
}

.grid-item-subtitle {
  font-size: 8px;
  color: var(--text-muted);
}

.notification-bell-btn {
  position: relative;
}

.notification-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--danger-color);
  color: #ffffff;
  font-size: 8px;
  font-weight: 700;
  border-radius: var(--border-radius-round);
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 
========================================================================
   Clients List Screen
========================================================================
*/
.search-filter-section {
  background-color: #ffffff;
  padding: 12px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background-color: var(--bg-color);
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius-sm);
  padding: 8px 12px;
  gap: 8px;
  margin-bottom: 10px;
}

.search-input-wrapper input {
  border: none;
  background: none;
  flex: 1;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
}

.search-input-wrapper input::placeholder {
  color: var(--text-light);
}

.filter-pills-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-pills-row::-webkit-scrollbar {
  display: none;
}

.pill-btn {
  background-color: var(--bg-color);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.pill-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

.list-subheader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.sort-dropdown-container {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--purple-color);
  cursor: pointer;
  font-weight: 600;
}

.sort-dropdown-container select {
  border: none;
  background: transparent;
  color: inherit;
  font-weight: inherit;
  font-size: inherit;
  outline: none;
  cursor: pointer;
}

/* Clients List Cards */
.client-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background-color: #ffffff;
  border-radius: var(--border-radius-md);
  margin-bottom: 8px;
  border: 1px solid #eef1f6;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
}

.client-list-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: rgba(243, 156, 18, 0.2);
}

.avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: var(--border-radius-round);
  background-color: var(--purple-light);
  color: var(--purple-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 14px;
}

.client-item-info {
  flex: 1;
  min-width: 0; /* allows text truncation */
}

.client-item-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.client-item-name {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.client-item-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10px;
  color: var(--text-muted);
}

.client-item-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.client-item-meta-item svg {
  width: 10px;
  height: 10px;
  fill: var(--text-light);
}

.client-item-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  height: 42px;
}

.client-item-chevron {
  color: var(--text-light);
  display: flex;
  align-items: center;
}

.client-item-visit-info {
  font-size: 9px;
  color: var(--text-light);
}

.client-item-followup-info {
  font-size: 9px;
  color: var(--accent-color);
  font-weight: 600;
}

/* 
========================================================================
   Client Details Profile
========================================================================
*/
.profile-card {
  padding: 14px;
}

.profile-card-header {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.profile-avatar-wrapper {
  position: relative;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  font-size: 18px;
  background-color: var(--purple-light);
}

.profile-primary-details {
  flex: 1;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.profile-name {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.profile-contact-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: var(--text-muted);
}

.profile-contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-contact-item svg {
  width: 11px;
  height: 11px;
  fill: var(--text-light);
}

/* Timeline Dates Block inside Client Details */
.timeline-dates-box {
  background-color: var(--bg-color);
  border-radius: var(--border-radius-sm);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 3px solid var(--primary-color);
  margin-top: 4px;
}

.timeline-date-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}

.timeline-date-label {
  color: var(--text-light);
}

.timeline-date-value {
  font-weight: 700;
  color: var(--text-main);
}

.timeline-date-value.highlight {
  color: var(--accent-color);
}

/* Quick Action Buttons Row */
.quick-actions-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.quick-action-btn {
  background-color: #ffffff;
  border: 1px solid #eef1f6;
  border-radius: var(--border-radius-md);
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.quick-action-btn:hover {
  transform: translateY(-1px);
  background-color: var(--primary-light);
}

.quick-action-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-action-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-main);
}

/* Core Numbers Display Grid */
.core-numbers-section-title {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.core-numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.core-number-card {
  background-color: #ffffff;
  border: 1px solid #eef1f6;
  border-radius: var(--border-radius-sm);
  padding: 8px 4px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.core-number-label {
  font-size: 8px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.2;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-number-val {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 800;
}

/* Core Numbers Color Categories */
.color-purple { color: var(--purple-color); }
.color-blue { color: var(--info-color); }
.color-red { color: var(--danger-color); }
.color-green { color: var(--success-color); }
.color-orange { color: var(--accent-color); }

/* Double Grids Block (LoShu & Vedic) */
.double-grids-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.grid-block {
  background-color: #ffffff;
  border-radius: var(--border-radius-md);
  padding: 10px;
  border: 1px solid #eef1f6;
  box-shadow: var(--shadow-sm);
}

.grid-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
}

.grid-info-icon {
  color: var(--text-light);
  font-size: 11px;
  cursor: pointer;
}

.grids-container-split {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.numerology-grid-table {
  width: 100%;
  aspect-ratio: 1;
  border-collapse: collapse;
  background-color: #fcfcfc;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.numerology-grid-table td {
  width: 33.33%;
  height: 33.33%;
  border: 1px solid #eef0f3;
  text-align: center;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  position: relative;
}

.grid-cell-missing {
  color: #dcdde1 !important;
  font-weight: 400 !important;
}

.grid-missing-summary-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-color);
  padding: 6px 8px;
  border-radius: var(--border-radius-sm);
  font-size: 9px;
  margin-top: 4px;
}

.missing-label {
  color: var(--text-light);
  font-weight: 500;
}

.missing-value {
  font-weight: 700;
}

.missing-value.none {
  color: var(--text-main);
}

.missing-value.some {
  color: var(--danger-color);
}

/* Trigunam Section */
.trigunam-cards-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.trigunam-card {
  background-color: #ffffff;
  border-radius: var(--border-radius-sm);
  padding: 8px 4px;
  border: 1px solid #eef1f6;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.trigunam-title {
  font-size: 7.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.trigunam-number {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 2px;
}

.trigunam-guna {
  font-size: 8px;
  color: var(--text-light);
  font-weight: 500;
}

.trigunam-nature-val {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 2px;
}

.trigunam-nature-sub {
  font-size: 7.5px;
  color: var(--text-muted);
  line-height: 1.1;
}

/* Custom Accordion/Card Lists (Remedies, Last Discussion, Products) */
.accordion-card {
  cursor: pointer;
}

.accordion-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.accordion-title-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.accordion-title-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion-title {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.accordion-chevron {
  color: var(--text-light);
  font-size: 14px;
}

.remedies-list {
  list-style: none;
  padding-left: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.remedy-item {
  position: relative;
  padding-left: 12px;
  font-size: 10px;
  color: var(--text-main);
  line-height: 1.4;
}

.remedy-item::before {
  content: '•';
  color: var(--primary-color);
  font-weight: bold;
  font-size: 14px;
  position: absolute;
  left: 0;
  top: -2px;
}

/* Last Discussion Block */
.discussion-date {
  font-size: 10px;
  font-weight: 600;
  color: var(--info-color);
  margin-bottom: 4px;
}

.discussion-text {
  font-size: 10.5px;
  color: var(--text-main);
  line-height: 1.4;
}

.discussion-author-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background-color: var(--bg-color);
  border-radius: var(--border-radius-sm);
  padding: 4px 8px;
  font-size: 9px;
  border: 1px solid #eef1f6;
}

.discussion-author-label {
  color: var(--text-muted);
}

.discussion-author-name {
  font-weight: 700;
  color: var(--purple-color);
}

/* Products Given Item */
.product-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.product-img {
  width: 38px;
  height: 38px;
  border-radius: var(--border-radius-sm);
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.product-info {
  flex: 1;
}

.product-name {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
}

.product-sub {
  font-size: 9px;
  color: var(--text-muted);
}

.product-date {
  font-size: 8px;
  color: var(--text-light);
  margin-top: 2px;
}

.product-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 
========================================================================
   Follow Ups Screen Layout
========================================================================
*/
.followups-timeline-section {
  margin-bottom: 16px;
}

.timeline-header-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 0 4px;
}

.timeline-header-icon {
  color: var(--text-light);
  font-size: 14px;
}

.timeline-header-title {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
}

.timeline-header-count {
  background-color: var(--danger-light);
  color: var(--accent-color);
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
}

.followup-card-item {
  background-color: #ffffff;
  border-radius: var(--border-radius-md);
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid #eef1f6;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.followup-card-item:hover {
  border-color: rgba(243, 156, 18, 0.2);
}

.followup-middle-section {
  flex: 1;
  min-width: 0;
}

.followup-client-name {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1px;
}

.followup-client-phone {
  font-size: 9px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.followup-task-desc {
  font-size: 9.5px;
  color: var(--purple-color);
  font-weight: 500;
}

.followup-badge-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background-color: var(--purple-light);
  border-radius: var(--border-radius-sm);
  padding: 6px;
  width: 64px;
}

.followup-badge-icon {
  width: 16px;
  height: 16px;
  color: var(--purple-color);
}

.followup-badge-label {
  font-size: 7.5px;
  font-weight: 700;
  color: var(--purple-color);
  text-align: center;
}

.followup-right-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  height: 48px;
  min-width: 54px;
}

.followup-time {
  font-size: 9px;
  font-weight: 600;
  color: var(--info-color);
}

.followup-alert-bell {
  color: var(--accent-color);
  font-size: 14px;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.followup-alert-bell:hover {
  transform: scale(1.1);
}

/* 
========================================================================
   Tools (Number Insights / Calculator)
========================================================================
*/
.form-input-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.form-input-field {
  width: 100%;
  background-color: var(--bg-color);
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-main);
  outline: none;
  font-family: var(--font-main);
  transition: border-color var(--transition-fast);
}

.form-input-field:focus {
  border-color: var(--primary-color);
}

.primary-btn {
  width: 100%;
  background: linear-gradient(135deg, #f1a80a, #f39c12);
  color: #ffffff;
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 10px 16px;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(243, 156, 18, 0.4);
}

/* Number Insights Core Cards */
.insights-core-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.insight-card {
  background-color: #ffffff;
  border: 1px solid #eef1f6;
  border-radius: var(--border-radius-sm);
  padding: 8px 4px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.insight-card.selected {
  border-color: var(--primary-color);
  background-color: var(--primary-light);
}

.insight-label {
  font-size: 8px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.insight-number {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 800;
}

.insight-sub {
  font-size: 7.5px;
  color: var(--text-light);
}

/* Nature illustration card */
.nature-card-content {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nature-text {
  flex: 1;
  font-size: 10.5px;
  color: var(--text-main);
  line-height: 1.5;
}

.nature-illustration {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nature-illustration svg {
  width: 100%;
  height: 100%;
}

/* Three Lists Card: Favourable, Avoidable, Personality */
.three-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.list-data-card {
  background-color: #ffffff;
  border-radius: var(--border-radius-md);
  padding: 12px;
  border: 1px solid #eef1f6;
  box-shadow: var(--shadow-sm);
}

.list-data-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.list-data-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
}

.list-data-item-row {
  display: flex;
  justify-content: space-between;
}

.list-data-item-label {
  color: var(--text-muted);
}

.list-data-item-val {
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
}

.dots-rating-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--border-radius-round);
  background-color: #e2e8f0;
}

.rating-dot.filled {
  background-color: var(--purple-color);
}

/* Career, Health, Life Purpose stack */
.briefs-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.brief-card {
  background-color: #ffffff;
  border-radius: var(--border-radius-md);
  padding: 12px;
  border: 1px solid #eef1f6;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brief-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.brief-card-body {
  font-size: 10.5px;
  color: var(--text-main);
  line-height: 1.4;
}

/* 
========================================================================
   Interactive Slide-Up Modals
========================================================================
*/
.modal-overlay {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 200;
  display: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  display: block;
  opacity: 1;
}

.modal-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  padding: 20px;
  z-index: 201;
  transform: translateY(100%);
  transition: transform var(--transition-normal);
  max-height: 80%;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-title {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* 
========================================================================
   Animations
========================================================================
*/
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 
========================================================================
   Responsive Design for Native View
========================================================================
*/
@media (max-width: 600px) {
  body {
    background: var(--bg-color);
  }
  
  .app-wrapper {
    max-width: 100vw;
    box-shadow: none;
  }
  
  .bottom-nav {
    max-width: 100vw;
    padding-bottom: calc(env(safe-area-inset-bottom, 8px) + 8px);
    height: calc(68px + env(safe-area-inset-bottom, 0px));
  }
}

/* 
========================================================================
   Sidebar Navigation Drawer Styles
========================================================================
*/

.sidebar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar-container {
  position: absolute;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background-color: var(--card-bg);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: left var(--transition-normal);
}

.sidebar-container.active {
  left: 0;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid #f1f3f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  font-size: 26px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(243, 156, 18, 0.2);
}

.sidebar-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.sidebar-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.sidebar-close-btn {
  background: #f8f9fa;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-round);
  font-size: 20px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.sidebar-close-btn:hover {
  background-color: #e9ecef;
  color: var(--text-main);
}

.sidebar-menu {
  padding: 20px 12px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background-color: #f8f9fa;
  color: var(--primary-color);
  padding-left: 20px;
}

.sidebar-link.active {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  border-left: 3px solid var(--primary-color);
}

.sidebar-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.sidebar-text {
  flex-grow: 1;
}

.sidebar-divider {
  height: 1px;
  background-color: #f1f3f5;
  margin: 12px 4px;
}

.sidebar-badge {
  font-size: 9px;
  background-color: #e9ecef;
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
}

.sidebar-link.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sidebar-link.disabled:hover {
  background-color: transparent;
  color: var(--text-main);
  padding-left: 16px;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid #f1f3f5;
  background-color: #fafbfc;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.sidebar-user-role {
  font-size: 10px;
  color: var(--text-muted);
}

/* 
========================================================================
   Header Dropdown & Logout Overlay Styles
========================================================================
*/

.header-right-actions {
  position: relative;
}

.header-dropdown {
  position: absolute;
  top: 42px;
  right: 0;
  width: 280px;
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.header-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Arrow pointer */
.header-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 12px;
  width: 12px;
  height: 12px;
  background-color: var(--card-bg);
  transform: rotate(45deg);
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  z-index: -1;
}

.header-dropdown-header {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f3f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-dropdown-title {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.header-dropdown-action {
  font-size: 10px;
  color: var(--primary-color);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.header-dropdown-action:hover {
  text-decoration: underline;
}

.header-dropdown-list {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f8f9fa;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.notification-item:hover {
  background-color: #f8f9fa;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item-icon {
  font-size: 16px;
  width: 28px;
  height: 28px;
  border-radius: var(--border-radius-round);
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notification-item-text {
  font-size: 11px;
  line-height: 1.3;
}

.notification-item-time {
  font-size: 9px;
  color: var(--text-muted);
}

.notification-empty-state {
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.notification-empty-icon {
  font-size: 28px;
}

.notification-empty-text {
  font-size: 11px;
}

.header-dropdown-footer {
  padding: 10px;
  border-top: 1px solid #f1f3f5;
  text-align: center;
  background-color: #fafbfc;
  border-bottom-left-radius: var(--border-radius-md);
  border-bottom-right-radius: var(--border-radius-md);
}

.header-dropdown-footer-btn {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.header-dropdown-footer-btn:hover {
  color: var(--primary-color);
}

/* Profile Dropdown Specifics */
.profile-dropdown-user {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f3f5;
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-dropdown-menu {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.profile-dropdown-item:hover {
  background-color: #f8f9fa;
  color: var(--primary-color);
}

.profile-dropdown-item.danger-item {
  color: var(--danger-color);
}

.profile-dropdown-item.danger-item:hover {
  background-color: var(--danger-light);
  color: var(--danger-color);
}

/* Logout Confirmation Dialog & Splash Screen Overlay */
.logout-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 39, 46, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 20px;
}

.logout-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 28px 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  color: var(--text-main);
  animation: fadeIn 0.3s ease;
}

.logout-icon {
  font-size: 40px;
  background-color: var(--danger-light);
  color: var(--danger-color);
  width: 68px;
  height: 68px;
  border-radius: var(--border-radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.logout-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.logout-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.logout-btn-row {
  display: flex;
  gap: 12px;
}

.logout-btn {
  flex: 1;
  padding: 12px;
  border-radius: var(--border-radius-md);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
}

.logout-btn-confirm {
  background-color: var(--danger-color);
  color: #ffffff;
}

.logout-btn-confirm:hover {
  background-color: #c0392b;
}

.logout-btn-cancel {
  background-color: #f1f3f5;
  color: var(--text-main);
}

.logout-btn-cancel:hover {
  background-color: #e9ecef;
}

/* Splash screen overlay when logged out */
.logged-out-splash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e272e, #2d3436);
  z-index: 10100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 30px;
}

.splash-card {
  text-align: center;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.4s ease;
}

.splash-icon {
  font-size: 48px;
  background: rgba(255, 255, 255, 0.1);
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.splash-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.splash-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
  line-height: 1.6;
}

.splash-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--border-radius-md);
  font-size: 13px;
  font-weight: 700;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.splash-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* 
========================================================================
   Login Page Styles
========================================================================
*/
.login-view-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 30px 20px;
  background: linear-gradient(180deg, rgba(243, 156, 18, 0.1), transparent);
}

.login-card {
  width: 100%;
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.login-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #ffffff;
  font-size: 32px;
  border-radius: var(--border-radius-md);
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.2);
}

.login-header-text {
  text-align: center;
  margin-bottom: 24px;
}

.login-header-text h2 {
  font-family: var(--font-title);
  font-size: 24px;
  color: var(--text-main);
  font-weight: 800;
}

.login-header-text p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.login-options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 20px;
}

.login-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  cursor: pointer;
}

.login-forgot-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.login-forgot-link:hover {
  text-decoration: underline;
}

.demo-login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-light);
  font-size: 11px;
  margin: 20px 0;
}

.demo-login-divider::before,
.demo-login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.demo-login-divider:not(:empty)::before {
  margin-right: .5em;
}

.demo-login-divider:not(:empty)::after {
  margin-left: .5em;
}

.demo-login-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--border-radius-md);
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border: 1px dashed var(--primary-color);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.demo-login-btn:hover {
  background-color: rgba(243, 156, 18, 0.15);
}

/* 
========================================================================
   Master Data Page Styles
========================================================================
*/
.master-tabs {
  display: flex;
  background-color: rgba(0,0,0,0.03);
  border-radius: var(--border-radius-sm);
  padding: 4px;
  margin-bottom: 16px;
  gap: 4px;
}

.master-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--text-muted);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.master-tab-btn.active {
  background-color: #ffffff;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.master-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.master-data-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.02);
  position: relative;
  transition: var(--transition-fast);
}

.master-data-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.master-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.master-number-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
}

.bg-birth {
  background: linear-gradient(135deg, var(--purple-color), #7d3c98);
}

.bg-destiny {
  background: linear-gradient(135deg, var(--success-color), #1e8449);
}

.bg-compound {
  background: linear-gradient(135deg, var(--info-color), #2471a3);
}

.master-card-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
  margin-left: 10px;
  flex-grow: 1;
}

.master-card-actions {
  display: flex;
  gap: 6px;
}

.master-card-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.master-card-action-btn:hover {
  background-color: rgba(0,0,0,0.05);
  color: var(--text-main);
}

.master-card-action-btn.delete-btn:hover {
  background-color: var(--danger-light);
  color: var(--danger-color);
}

.master-card-body {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 8px;
}

.master-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.master-data-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
}

.pill-positive {
  background-color: var(--success-light);
  color: var(--success-color);
}

.pill-negative {
  background-color: #fce4d6;
  color: #c0392b;
}

.pill-remedy {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

/* 
========================================================================
   Appointments Page Styles
========================================================================
*/
.calendar-widget {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.calendar-month {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
}

.calendar-nav-btn {
  background: none;
  border: 1px solid rgba(0,0,0,0.08);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.calendar-nav-btn:hover {
  background-color: rgba(0,0,0,0.02);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.calendar-day-cell:hover {
  background-color: rgba(0,0,0,0.03);
}

.calendar-day-cell.muted {
  color: var(--text-light);
  opacity: 0.4;
}

.calendar-day-cell.active {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 700;
}

.calendar-day-cell.has-event::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: var(--border-radius-round);
  background-color: var(--accent-color);
}

.calendar-day-cell.active.has-event::after {
  background-color: #fff;
}

.time-slot-pill {
  padding: 8px 12px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--border-radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  background-color: #fff;
}

.time-slot-pill:hover {
  border-color: var(--primary-color);
  background-color: var(--primary-light);
}

.time-slot-pill.selected {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* 
========================================================================
   Enquiries / Leads Page Styles
========================================================================
*/
.lead-status-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px 0;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.lead-status-row::-webkit-scrollbar {
  display: none;
}

.lead-status-pill {
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(0,0,0,0.03);
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.lead-status-pill.active {
  background-color: var(--primary-color);
  color: #fff;
}

.lead-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.02);
  margin-bottom: 12px;
}

.lead-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.lead-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
}

.lead-source {
  font-size: 9px;
  padding: 2px 6px;
  background-color: var(--info-light);
  color: var(--info-color);
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

.lead-details-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.lead-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.04);
}

.lead-btn {
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.lead-btn-primary {
  background-color: var(--success-color);
  color: #fff;
}

.lead-btn-secondary {
  background-color: rgba(0,0,0,0.04);
  color: var(--text-muted);
}

/* 
========================================================================
   Products Grid Page Styles
========================================================================
*/
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.product-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition-fast);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-emoji {
  font-size: 32px;
  width: 56px;
  height: 56px;
  background-color: var(--bg-color);
  border-radius: var(--border-radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.product-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 12px;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.3;
}

.product-desc {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 8px;
  height: 28px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-price {
  font-weight: 700;
  color: var(--accent-color);
  font-size: 12px;
}

.product-stock {
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.stock-in {
  background-color: var(--success-light);
  color: var(--success-color);
}

.stock-out {
  background-color: var(--danger-light);
  color: var(--danger-color);
}

/* 
========================================================================
   Notes Page Styles
========================================================================
*/
.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.note-sticky-card {
  border-radius: var(--border-radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 120px;
  position: relative;
  transition: var(--transition-fast);
}

.note-sticky-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.note-sticky-1 { background-color: #fff9db; border-left: 4px solid #f59f00; }
.note-sticky-2 { background-color: #e3fafc; border-left: 4px solid #1098ad; }
.note-sticky-3 { background-color: #ebfbee; border-left: 4px solid #37b24d; }
.note-sticky-4 { background-color: #fff0f6; border-left: 4px solid #d6336c; }
.note-sticky-5 { background-color: #f3f0ff; border-left: 4px solid #7048e8; }

.note-title {
  font-weight: 700;
  font-size: 12px;
  color: var(--text-main);
  margin-bottom: 6px;
}

.note-content {
  font-size: 11px;
  color: #495057;
  line-height: 1.4;
  flex-grow: 1;
}

.note-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 9px;
  color: var(--text-muted);
}

/* 
========================================================================
   Daily Guidance Page Styles
========================================================================
*/
.guidance-banner {
  background: linear-gradient(135deg, var(--purple-color), var(--primary-color));
  color: #fff;
  border-radius: var(--border-radius-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
}

.guidance-circle {
  width: 72px;
  height: 72px;
  background-color: rgba(255,255,255,0.2);
  border: 2px solid #fff;
  border-radius: var(--border-radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  margin: 0 auto 14px auto;
  font-family: var(--font-title);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.guidance-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}

.guidance-subtitle {
  font-size: 11px;
  opacity: 0.9;
}

.guidance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.guidance-item-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}

.guidance-item-icon {
  font-size: 24px;
}

.guidance-item-label {
  font-size: 10px;
  color: var(--text-muted);
}

.guidance-item-value {
  font-weight: 700;
  font-size: 12px;
  color: var(--text-main);
  margin-top: 2px;
}



