/* get my info - Custom Styles */
/* Professional design with clean typography */

/* Self-hosted Source Code Pro font */
@font-face {
  font-family: 'Source Code Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-code-pro-400.woff2') format('woff2');
}

:root {
  /* Color Palette */
  --primary-color: #333;
  --secondary-color: #666;
  --success-color: #10B981;
  --warning-color: #F59E0B;
  --danger-color: #EF4444;
  --admin-color: #EEC659;
  --background-color: #F8FAFC;
  --text-color: #1F2937;
  --text-muted: #6B7280;
  --border-color: #E5E7EB;
  --white: #FFFFFF;
  --light-gray: #F3F4F6;
  
  /* Typography */
  --font-family: 'Source Code Pro', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  --font-family-mono: 'Source Code Pro', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Spacing */
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 16px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

/* Content spacing for fixed navbar */
.main-content {
  padding-top: 90px; /* Increased to properly clear app header */
}

@media (max-width: 768px) {
  .main-content {
    padding-top: 95px;
  }
}

/* Base Styles */
body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-normal);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

/* Typography Overrides - DESIGN.md Compliant Headers */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-normal);
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-family-mono);
}

h1 { font-size: 24px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
h4 { font-size: 12px; }
h5 { font-size: 12px; }
h6 { font-size: 12px; }

.fw-bold {
  font-weight: var(--font-weight-bold) !important;
}

.fw-medium {
  font-weight: var(--font-weight-medium) !important;
}

/* Navigation */
.navbar {
  background-color: var(--white) !important;
  border-bottom: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow);
}

.navbar-brand {
  font-weight: var(--font-weight-bold);
  color: var(--text-color) !important;
  line-height: 1.1;
  font-family: var(--font-family-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
}

.nav-link {
  font-weight: var(--font-weight-medium);
  color: var(--text-color) !important;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

/* ========================= */
/* CONSOLIDATED BUTTON SYSTEM */
/* ========================= */

/* Base button styling */
.btn {
  font-weight: var(--font-weight-medium);
  border-radius: var(--border-radius-sm);
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Standardize all button icons to match text height */
.btn svg,
.btn i[data-feather] {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
}

/* Primary Button - Simplified system with standard height */
.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border: 1px solid var(--primary-color);
  font-size: 11px;
  padding: 6px 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-family-mono);
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.btn-primary:hover {
  background-color: #005885;
  border-color: #005885;
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Large primary button variant - for auth forms only */
.btn-primary.btn-large {
  padding: 15px 30px;
  font-size: 14px;
  text-align: center;
  justify-content: center;
}

/* Cancel button - standardized white fill with black text */
.btn-cancel {
  background: var(--white);
  color: var(--text-color);
  border: 1px solid var(--text-color);
  font-size: 11px;
  padding: 6px 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-family-mono);
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.btn-cancel:hover {
  background: #f8f9fa;
  border-color: var(--text-color);
  color: var(--text-color);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Outline variant - using standard proportions */
.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  font-size: 11px;
  padding: 6px 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-family-mono);
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Danger variant - using standard proportions */
.btn-danger {
  background: var(--danger-color);
  color: var(--white);
  border: 1px solid var(--danger-color);
  font-size: 11px;
  padding: 6px 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-family-mono);
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Danger outline variant - using standard proportions */
.btn-danger-outline {
  background: transparent;
  color: var(--danger-color);
  border: 1px solid var(--danger-color);
  font-size: 11px;
  padding: 6px 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-family-mono);
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.btn-danger-outline:hover {
  background: var(--danger-color);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-success {
  background-color: var(--success-color);
  border-color: var(--success-color);
}

.btn-warning {
  background-color: var(--warning-color);
  border-color: var(--warning-color);
}

/* Contact Action Buttons */
.contact-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: var(--white);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font-family-mono);
}

.contact-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-btn-add {
  background: var(--success-color);
  color: var(--white);
  border-color: var(--success-color);
}

.contact-btn-add:hover {
  background: var(--success-color);
  color: var(--white);
}

.contact-btn-remove {
  background: var(--danger-color);
  color: var(--white);
  border-color: var(--danger-color);
}

.contact-btn-remove:hover {
  background: var(--danger-color);
  color: var(--white);
}

.contact-btn svg,
.contact-btn i[data-feather] {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

/* Simplified member actions with corner overlay design */
.member-item {
    position: relative;
    padding-right: 40px; /* Space for corner removal button */
    display: flex;
    align-items: flex-end; /* Bottom align contact buttons within member item */
    min-height: 60px; /* Ensure adequate height for proper alignment */
}

.member-actions-simplified {
    display: flex;
    align-items: flex-end;  /* Bottom-align contact buttons */
    gap: 8px;
    align-self: flex-end;   /* Bottom-align this div within .member-item */
    padding: 0.25rem 0.25rem 0 0.25rem;  /* Remove bottom padding, keep others */
    /* Removed text styling - using icon-only buttons */
}


/* Corner overlay removal button */
.member-remove {
    position: absolute;
    top: -2px;    /* Light overlap but less than original */
    right: -2px;  /* Light overlap but less than original */
    z-index: 10;  /* Ensure it appears above other content */
}

.member-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;     /* Adjusted size (16px → 24px) */
    height: 24px;    /* Adjusted size (16px → 24px) */
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.1); /* More prominent shadow */
    cursor: pointer;
    font-size: 0;
    padding: 0;
    transition: all 0.15s ease;
}

.member-remove-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-1px);
}

.member-remove-btn svg,
.member-remove-btn i[data-feather] {
    width: 15px;    /* Proportional to button size (10px → 15px) */
    height: 15px;   /* Proportional to button size (10px → 15px) */
    stroke-width: 3;
}

/* Member contact information styling */
.member-email,
.member-phone {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Contact status indicator for connected contacts */
.contact-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--success-color);
  font-family: var(--font-family-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-status svg {
  width: 12px;
  height: 12px;
}

/* Contact Cards - LinkedIn-inspired */
.contact-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.contact-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.contact-header {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 1rem;
}

.contact-name {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-color);
  margin: 0;
  letter-spacing: 0.5px;
}

.contact-title {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0 0;
  font-weight: var(--font-weight-medium);
}

/* Contact Information */
.contact-info {
  margin-bottom: 1rem;
}

.contact-item {
  margin-bottom: 1.5rem;
}

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

.contact-label {
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.contact-value {
  font-size: 1.1rem;
  color: var(--text-color);
  font-weight: var(--font-weight-medium);
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}


/* Additional Info Section */
.additional-info {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

/* Household Members */
.household-member {
  padding: 1rem 0;
}

.household-divider {
  margin: 1rem 0;
  border-color: var(--border-color);
}

/* Button Row Utility */
.btn-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-row .btn {
  flex: 1;
  min-width: 120px;
}



/* Landing page specific styles */
.landing-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.landing-section {
    padding: 3rem 0;
}

.landing-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}


/* Dashboard styles */
.dashboard-header {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}


/* Form enhancements */
.form-floating > label {
    color: var(--text-muted);
}



/* Profile specific styles */
.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
}


/* Group management styles */
.member-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.member-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.member-status {
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    color: var(--warning-color);
}

.status-approved {
    color: var(--success-color);
}

.status-admin {
    color: var(--primary-color);
}

/* Utility classes */
.text-monospace {
    font-family: var(--font-family-mono);
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.border-custom {
    border-color: var(--border-color) !important;
}

.bg-light-custom {
    background-color: var(--light-gray) !important;
}


/* Simple header styles for public pages */
.header {
    background: white;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Top-align header content */
    padding-top: 6px; /* Add minimal top padding for spacing */
}

.logo {
    font-size: 18px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    color: #333;
    line-height: 1.1;
    display: block;
    font-family: var(--font-family-mono);
}

.login-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-family-mono);
    transition: color 0.2s ease;
    padding: 0.15rem 0.35rem;
}

.login-icon:hover {
    color: var(--primary-color) !important;
}

.login-icon i {
    margin-bottom: 0px;
    width: 14px;
    height: 14px;
}

/* Navigation for in-app header - match desired density and alignment */
.header .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.header .nav-item {
    list-style: none;
}

.header .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-family-mono);
    transition: color 0.2s ease;
    padding: 0.15rem 0.35rem;
}

.header .nav-link:hover {
    color: var(--primary-color) !important;
}

.header .nav-link i {
    margin-bottom: 0px;
    width: 14px;
    height: 14px;
}

.header .nav-link.active {
    border-bottom: 2px solid #333;
    padding-bottom: 0.1rem;
}

/* Footer styles */
.site-footer {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-links {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-family-mono);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-color);
}

/* Profile Avatar */
.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-semibold);
  font-size: 0.9rem;
}

/* Forms */
.form-control {
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-family-mono);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 119, 181, 0.25);
}

.form-label {
  font-weight: var(--font-weight-medium);
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

/* Cards */
.card {
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.card-header {
  background-color: var(--light-gray);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem;
}

.card-body {
  padding: 1.5rem;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Top-align header content */
  margin-bottom: 10px;
  padding: 0 0 6px 0; /* Remove excess top padding */
}

/* First section header should have no extra top spacing */
.section .section-header:first-child {
  margin-top: 0;
  padding-top: 0;
}

.section-header h3,
.section-header h5 {
  margin: 0;
  line-height: 1;
  display: flex;
  align-items: flex-start; /* Top-align section header text */
  gap: 8px;
  color: var(--text-color);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-family-mono);
}

.section-icon {
  flex-shrink: 0;
  display: block;
  width: 16px;
  height: 16px;
}

.section-header .btn-primary {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}


/* Dashboard Content Sections */
.section.dashboard-content {
  background: #FFFFFF;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1rem; /* Harmonized with container side-padding */
  margin-bottom: 1rem; /* Harmonized spacing between sections */
  border: 1px solid #E5E7EB;
}

/* Group Cards */
.group-card {
  transition: all 0.3s ease;
  height: 100%;
}

.group-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.group-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0; /* Remove top margin */
}

/* Member Cards */
.member-card {
  height: 100%;
}

.member-since {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state--sm {
  padding: 2rem 1rem;
}

.empty-icon {
  width: 80px;
  height: 80px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-icon--sm {
  width: 40px;
  height: 40px;
}

/* Feature Lists */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: var(--font-weight-medium);
}

.feature-list-icon {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
}

/* Feature Cards */
.feature-card {
  padding: 2rem 1rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
}

.feature-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary-color);
}



/* Share Sections */
.share-section {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.share-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}


/* Link Items */
.link-item {
  background: var(--light-gray);
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1rem;
}

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

.link-url {
  background: var(--white);
  padding: 0.5rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 0.5rem;
  font-family: var(--font-family-mono);
  font-size: 0.85rem;
  word-break: break-all;
}

.link-actions {
  display: flex;
  gap: 0.5rem;
}

/* Shared Links */
.shared-links {
  margin-top: 1.5rem;
}

/* Info Items */
.info-item {
  margin-bottom: 1rem;
}

.info-label {
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.info-value {
  font-size: 0.95rem;
  color: var(--text-color);
  font-weight: var(--font-weight-medium);
}

/* Household Form */
.household-member-form {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1rem;
}

.household-member-form:last-child {
  margin-bottom: 0;
}

/* Tables */
.table {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table thead th {
  background-color: var(--light-gray);
  border-bottom: 1px solid var(--border-color);
  font-weight: var(--font-weight-semibold);
  color: var(--text-color);
}

.table tbody tr:hover {
  background-color: var(--light-gray);
}

/* Alerts */
.alert {
  border-radius: var(--border-radius);
  border: none;
}

.alert-info {
  background-color: rgba(0, 119, 181, 0.1);
  color: var(--primary-color);
}

/* Badges */
.badge {
  font-weight: var(--font-weight-medium);
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 76px);
}

/* Fixed Header Adjustments */
body {
  padding-top: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-card {
    padding: 1.5rem;
  }
  
  .contact-name {
    font-size: 1.5rem;
  }
  
  .btn-row {
    flex-direction: column;
  }
  
  .btn-row .btn {
    width: 100%;
  }
  
  .feature-list {
    grid-template-columns: 1fr;
  }
  
  /* .share-buttons uses .btn-row utility */
  
  .link-actions {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .contact-card {
    padding: 1rem;
  }
  
}

/* Authentication/OTP Form Styles - DESIGN.md Compliant */
.auth-contact-info {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  font-family: var(--font-family-mono);
}

.auth-form-label {
  font-family: var(--font-family-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-otp-input {
  font-family: var(--font-family-mono);
  font-size: 24px;
  text-align: center;
  letter-spacing: 0.5em;
  padding: 15px;
}

.auth-help-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  font-family: var(--font-family-mono);
}

/* REMOVED: Auth buttons - Consolidated into .btn-primary.btn-large and .btn-primary */

.auth-section-center {
  text-align: center;
}

.auth-section-margin {
  margin-top: 20px;
}

.auth-section-spacing {
  margin: 20px 0;
}

.auth-centered-spacing {
  margin-top: 20px;
}

.auth-muted-text {
  font-family: var(--font-family-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.auth-help-section {
  font-family: var(--font-family-mono);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.auth-landing-input {
  font-family: var(--font-family-mono);
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.auth-secure-text {
  text-align: center;
  margin: 20px 0;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-family-mono);
}

.auth-learn-more {
  margin-top: 20px;
}

.auth-link-btn {
  font-family: var(--font-family-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Section with margin top - for sections that need spacing */
.section-margin-top {
  margin-top: 20px;
}


/* Group Management Page Styles - Properly scoped to prevent CSS pollution during HTMX navigation */

/* REMOVED: Conflicting group management button styles - now uses consolidated system */
/* All buttons on group management page inherit from global .btn-primary, .btn-danger etc. */

/* Group Info Section */
.group-management-page .group-info {
    background: var(--light-gray);
    padding: 15px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
}

.group-management-page .group-name {
    font-weight: var(--font-weight-normal);
    font-size: 16px;
    margin-bottom: 5px;
    font-family: var(--font-family-mono);
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.group-management-page .group-description {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
    font-family: var(--font-family-mono);
}

.group-management-page .group-meta {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-family-mono);
}

/* Form Styling */
.group-management-page .invite-form {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
}

.group-management-page .invite-form + .invite-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.group-management-page .bulk-textarea {
    width: 100%;
    min-height: 80px;
    padding: 8px;
    border: 1px solid var(--border-color);
    font-family: var(--font-family-mono);
    font-size: 13px;
    resize: vertical;
    border-radius: var(--border-radius-sm);
}

.group-management-page .form-group {
    margin-bottom: 15px;
}

/* Remove all spacing from button containers */
.group-management-page .form-group:has(button) {
    margin: 0;
    padding: 0;
    border: none;
    text-align: right; /* Right align add member buttons */
}

/* Remove right margin for buttons within form groups to prevent spacing issues */
.group-management-page .form-group .dashboard-btn {
    margin-right: 0;
}

.group-management-page .form-row {
    display: flex;
    gap: 15px;
}

.group-management-page .form-row .form-group {
    flex: 1;
}

.group-management-page label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-family-mono);
    color: var(--text-color);
}

.group-management-page input[type="text"],
.group-management-page input[type="tel"],
.group-management-page input[type="email"],
.group-management-page textarea,
.group-management-page select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    font-family: var(--font-family-mono);
    font-size: 14px;
    border-radius: var(--border-radius-sm);
}

.group-management-page input:focus,
.group-management-page textarea:focus,
.group-management-page select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.group-management-page textarea {
    resize: vertical;
    min-height: 60px;
}

/* Member List Styling */
.group-management-page .member-list {
    margin-bottom: 20px;
}

.group-management-page .member-item {
    background: #f9f9f9;
    padding: 7.5px;  /* Reduced by 50% (15px → 7.5px) */
    margin-bottom: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.group-management-page .member-info {
    flex: 1;
}

.group-management-page .member-name {
    font-weight: bold;
    margin-bottom: 2px;
    font-family: var(--font-family);
}

.group-management-page .member-phone {
    font-size: 12px;
    color: #666;
    font-family: var(--font-family);
}

.group-management-page .member-actions {
    display: flex;
    gap: 10px;
}

.group-management-page .empty-state {
    text-align: center;
    color: #666;
    font-size: 14px;
    padding: 40px 20px;
    font-family: var(--font-family);
}

.group-management-page .phone-format-hint {
    font-size: 11px;
    color: #666;
    margin-top: 3px;
    font-family: var(--font-family);
}

/* Collapsible Sections */
.group-management-page .collapsible-header {
    cursor: pointer;
    padding: 12px 15px;
    background: #f0f0f0;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.group-management-page .collapsible-header:hover {
    background: #e8e8e8;
}

.group-management-page .collapsible-content {
    display: none;
    animation: slideDown 0.3s ease-out;
}

.group-management-page .collapsible-content.expanded {
    display: block;
    margin-top: 1rem;
}

.group-management-page .expand-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
    padding: 4px 8px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-family-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.group-management-page .expand-icon:hover {
    background: var(--secondary-color);
}

.group-management-page .expand-icon.rotated {
    transform: rotate(180deg);
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

/* Fix excess spacing within sections - remove bottom margins from last child elements */
.group-management-page .section .member-list:last-child,
.group-management-page .section .invite-form:last-child,
.group-management-page .section .member-item:last-child,
.group-management-page .section .form-group:last-child,
.group-management-page .section .person-group:last-child,
.group-management-page .section .empty-state:last-child,
.group-management-page .section .group-info:last-child {
    margin-bottom: 0 !important;
}

/* Also handle nested last children */
.group-management-page .member-list .member-item:last-child,
.group-management-page .invite-form .form-group:last-child,
.group-management-page .collapsible-content .invite-form:last-child,
.group-management-page .collapsible-content > div:last-child {
    margin-bottom: 0 !important;
}

/* Additional utility classes to replace inline styles */
.group-management-page .section-title {
    margin-bottom: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-family-mono);
    color: var(--text-color);
}

.group-management-page .form-section-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #666;
}

.group-management-page .association-group {
    margin-bottom: 20px;
}

.group-management-page .association-name {
    font-weight: bold;
}

.group-management-page .association-type {
    font-size: 12px;
    color: #666;
}

.group-management-page .contact-name {
    font-weight: normal;
    font-size: 14px;
    color: #333;
    font-family: var(--font-family);
}

.group-management-page .contact-name .relationship-label {
    font-size: 14px;
    color: #666;
    margin-left: 8px;
}

.group-management-page .contact-details {
    font-size: 12px;
    color: #666;
}

.group-management-page .contact-info {
    margin-bottom: 0;
}

.group-management-page .person-group {
    margin-bottom: 0;
    background: var(--white);
    padding: 0 0 15px 0; /* Remove left, top, and right padding */
    border-radius: 4px;
}

.group-management-page .person-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.group-management-page .contact-item {
    margin-left: 0; /* Remove left margin */
    margin-bottom: 0;
    padding: 0.5rem;
    background: var(--light-gray);
    border-radius: 2px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Bottom align items including contact buttons */
    min-height: 45px; /* Ensure adequate height for proper alignment */
}

/* Ensure contact actions are bottom-aligned within contact items */
.group-management-page .contact-item .contact-actions {
    display: flex;
    align-items: flex-end;
    align-self: flex-end;
}

.group-management-page .pending-invitation {
    background: var(--light-gray); /* Removed orange background */
    /* Removed yellow left border */
}

.group-management-page .invitation-meta {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

/* REMOVED: .btn-small - Consolidated into .btn-compact */

/* Print Styles */
@media print {
  .navbar,
  .contact-actions,
  .btn,
  .alert {
    display: none !important;
  }
  
  .contact-card {
    box-shadow: none;
    border: 1px solid #000;
  }
  
  .contact-name {
    color: #000;
  }
  
  .contact-link {
    color: #000;
    text-decoration: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .contact-card {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
  }
  
  .contact-name,
  .contact-value {
    color: #f9fafb;
  }
  
  .contact-label {
    color: #9ca3af;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Hide scrollbar but keep functionality */
html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

html::-webkit-scrollbar {
  display: none; /* Chrome/Safari/WebKit */
}

/* ========================= */
/* PUBLIC PAGES STYLES       */
/* ========================= */

/* Public Pages Shared Styles */
/* Ensures consistent styling across landing, privacy policy, and getting started pages */

/* Removed problematic :has() selector and fallback - using consistent main-content padding instead */

/* Public page container - no padding since main-content handles it */
.public-page-content {
    padding-top: 0;
    min-height: 100vh;
}

/* Page sections */
.section {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1rem; /* Harmonized with container side-padding */
    margin-bottom: 1rem; /* Harmonized spacing between sections */
    border: 1px solid var(--border-color);
}

/* Page titles */
.public-page-title {
    text-align: center;
    margin-bottom: 1rem; /* Match harmonized section spacing */
}

.public-page-title h1 {
    font-size: 24px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-family: var(--font-family-mono);
    color: var(--text-color);
}

.public-page-title p {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-family-mono);
}

/* Section headers - use only within .section-header containers for proper styling */
.section-header h2,
.section-header h3,
.section-header h4,
.section-header h5 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    color: var(--text-color);
    font-family: var(--font-family-mono);
    display: flex;
    align-items: flex-start; /* Top-align section header text */
    gap: 8px;
    line-height: 1;
}

/* Section content */
.section p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 15px;
    font-family: var(--font-family-mono);
}

.section ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.section li {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 5px;
    font-family: var(--font-family-mono);
}

/* Step counter for getting started */
.steps {
    counter-reset: step-counter;
    margin-top: 1rem;
}

.step {
    counter-increment: step-counter;
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
}

.step::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--text-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    font-family: var(--font-family-mono);
}

.step p {
    margin: 0;
}

.step:last-child {
    margin-bottom: 0;
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-item {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--light-gray);
}

.feature-item h4 {
    font-size: 12px;
    font-weight: var(--font-weight-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
    margin: 0 0 10px 0;
    font-family: var(--font-family-mono);
}

.feature-item p {
    font-size: 12px;
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
    font-family: var(--font-family-mono);
}

/* Contact information display */
.contact-item {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-family: var(--font-family-mono);
}

.contact-value {
    font-size: 12px;
    color: var(--text-color);
    font-family: var(--font-family-mono);
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-family: var(--font-family-mono);
}

.contact-link:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

/* Shared link banner */
.shared-banner {
    background: var(--light-gray);
    border-left: 4px solid var(--primary-color);
}

/* Button reset for inline buttons */
.button-reset {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

/* Muted caption text */
.muted-caption {
    margin-top: 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-family: var(--font-family-mono);
}

/* REMOVED: Design System Buttons - Consolidated into .btn-primary, .btn-outline, .btn-danger */

/* Mobile responsiveness */
@media (max-width: 768px) {
    .section {
        margin-bottom: 1rem; /* Consistent with desktop spacing */
    }
}

@media (max-width: 480px) {
    /* Removed padding-top override - main-content handles all top spacing */
    
    .section {
        padding: 1rem; /* Consistent with desktop spacing */
        margin-bottom: 1rem; /* Consistent with desktop spacing */
    }
    
    .public-page-title {
        margin-bottom: 1rem; /* Match consistent section spacing */
    }
}

/* ========================= */
/* APP-SPECIFIC STYLES       */
/* ========================= */

/* App-specific layout overrides */
#content-container .public-page-content {
    /* Reset any conflicting styles when loaded into content container */
    min-height: auto;
    padding-top: 0;
}

/* REMOVED: Container padding override - main-content padding provides sufficient clearance */

/* Ensure first section in HTMX-loaded content has consistent top spacing */
#content-container .public-page-content .container .section:first-child {
    margin-top: 0;
}

/* Fix any potential layout shifts between full page and HTMX loads */
#content-container .public-page-content .section.dashboard-content:first-child {
    margin-top: 0;
}

/* REMOVED: .view-all-btn - Consolidated into .btn-compact */

/* Dashboard Content Typography */
.section.dashboard-content h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-family: var(--font-family-mono);
    color: var(--text-color);
    display: flex;
    align-items: flex-start; /* Top-align for consistency */
    line-height: 1.2;
}

.section.dashboard-content p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 15px;
    font-family: var(--font-family-mono);
}

/* Profile section - Two-column layout: 3 lines left, QR right */
.profile-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: flex-start;
}

.profile-left-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0; /* Prevent overflow */
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 60px; /* Match avatar height */
}

.profile-qr-column {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* App-specific profile avatar (different from general .profile-avatar) */
.profile-card .profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: normal;
    font-family: var(--font-family-mono);
    flex-shrink: 0;
}

.profile-name {
    margin: 0;
    font-size: 20px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-family-mono);
    color: var(--text-color);
    line-height: 1.2;
    word-break: break-word;
}

/* Profile button layout overrides - minimal layout only */
.btn.profile-edit-btn,
.btn.profile-share-btn {
    margin: 0 !important;
    align-self: flex-start;
    width: 155px;
    justify-content: flex-start !important;
    white-space: nowrap;
    /* All other styling inherited from .btn-primary */
}

/* Share Profile button - black instead of green as requested */
.btn.profile-share-btn {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn.profile-share-btn:hover {
    background: #005885 !important;
    border-color: #005885 !important;
}

.profile-qr-column .qr-code-img {
    width: auto;
    height: 200px; /* Scaled up to better match left content height */
    aspect-ratio: 1;
    border-radius: var(--border-radius-sm);
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
}

/* Group buttons - full width clickable buttons */
.group-button {
    display: block;
    width: 100%;
    background: var(--background-color);
    color: var(--primary-color);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 8px;
    transition: background 0.2s;
    border: 1px solid #E5E7EB;
}

.group-button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #FFFFFF;
}

.group-button:hover .group-info h4 {
    color: #FFFFFF;
}

.group-button:hover .group-info p {
    color: rgba(255, 255, 255, 0.85);
}

.group-button:last-child {
    margin-bottom: 0;
}

.group-button .group-info h4 {
    margin-bottom: 2px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-family-mono);
    color: var(--primary-color);
}

.group-button .group-info p {
    margin: 0;
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-family-mono);
}

/* Groups List Page Styles */
.invitation-card {
    background: #fff5e6;
    border-left: 4px solid var(--warning-color);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: var(--border-radius-sm);
}

.invitation-title {
    font-family: var(--font-family-mono);
    font-weight: var(--font-weight-medium);
    font-size: 14px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.invitation-description {
    font-family: var(--font-family-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.invitation-meta {
    font-family: var(--font-family-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 0;  /* Removed bottom margin */
}

.invitation-status {
    color: var(--warning-color);
    font-weight: var(--font-weight-medium);
    margin-left: 10px;
}

.groups-hidden {
    display: none;
}

.view-all-container {
    text-align: center;
    margin-top: 15px;
}

.create-form-container {
    display: none;
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius-sm);
    margin-top: 15px;
    border: 1px solid var(--border-color);
}

.form-label-styled {
    font-family: var(--font-family-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control-styled {
    font-family: var(--font-family-mono);
}

.form-control-styled.textarea {
    min-height: 60px;
}

.radio-group {
    margin-top: 8px;
}

.radio-label {
    font-family: var(--font-family-mono);
    font-size: 14px;
}

.radio-description {
    font-size: 12px;
    color: var(--text-muted);
    margin: 5px 0 15px 20px;
    font-family: var(--font-family-mono);
}

.radio-description.last {
    margin: 5px 0 0 20px;
}

/* List items */
.dashboard-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #E5E7EB;
}

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

.item-info h4 {
    margin-bottom: 2px;
}

.item-info p {
    margin: 0;
    font-size: 10px;
}

/* Activity items */
.activity-item {
    padding: 10px 0;
}

.activity-date {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-family-mono);
}

.activity-description {
    font-size: 12px;
    margin-top: 2px;
    font-family: var(--font-family-mono);
}

.activity-badge {
    float: right;
    background: #F3F4F6;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-family: var(--font-family-mono);
}

/* REMOVED: Dashboard buttons - Consolidated into .btn-primary */

/* Dashboard empty state uses .empty-state--sm utility */

/* Action buttons section */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-btn svg {
    vertical-align: middle;
    margin-right: 4px;
}

/* Admin badge for groups */
.admin-badge {
    display: inline-block;
    background: var(--admin-color);
    color: var(--primary-color);
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-family-mono);
    vertical-align: middle;
}

/* Utility classes for inline style replacements */
.center-content {
    text-align: center;
    margin-top: 10px;
}

/* App Mobile Responsiveness */
@media (max-width: 768px) {
    .profile-card {
        gap: 12px;
    }
    
    .profile-card .profile-avatar {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .profile-name {
        font-size: 16px;
    }
    
    .profile-header {
        height: 45px; /* Smaller avatar height on tablet */
    }
    
    .btn.profile-edit-btn,
    .btn.profile-share-btn {
        width: 130px; /* Width set to accommodate SHARE PROFILE content on mobile */
        /* Font size and padding inherited from .btn-primary for consistency */
    }
    
    .profile-qr-column .qr-code-img {
        width: auto;
        height: 150px; /* Scaled up for tablet */
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .profile-card .profile-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .profile-name {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .profile-header {
        height: 40px; /* Smaller avatar height on mobile */
    }
    
    .btn.profile-edit-btn,
    .btn.profile-share-btn {
        min-width: 90px;
        /* Font size and padding inherited from .btn-primary for consistency */
    }
    
    .profile-qr-column .qr-code-img {
        width: auto;
        height: 120px; /* Scaled up for mobile */
    }
    
    .dashboard-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .action-buttons {
        justify-content: center;
    }
}

/* Toast Notification System */
#toast-container {
    position: fixed;
    top: 100px; /* Positioned below the fixed navbar (90px + 10px offset) */
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    pointer-events: none; /* Allows clicking through empty areas */
}

.toast {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 10px;
    padding: 16px 20px;
    border-left: 4px solid var(--primary-color);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    max-width: 100%;
    word-wrap: break-word;
}

/* Toast visibility states */
.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.hide {
    opacity: 0;
    transform: translateX(100%);
}

/* Toast types with color coding */
.toast.success {
    border-left-color: var(--success-color);
}

.toast.success .toast-icon {
    color: var(--success-color);
}

.toast.error, .toast.danger {
    border-left-color: var(--danger-color);
}

.toast.error .toast-icon, .toast.danger .toast-icon {
    color: var(--danger-color);
}

.toast.warning {
    border-left-color: var(--warning-color);
}

.toast.warning .toast-icon {
    color: var(--warning-color);
}

.toast.info {
    border-left-color: var(--primary-color);
}

.toast.info .toast-icon {
    color: var(--primary-color);
}

/* Toast content */
.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    color: var(--text-color);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    font-size: 18px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    opacity: 1;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    #toast-container {
        top: 105px; /* Account for taller mobile navbar */
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .toast-icon {
        font-size: 16px;
    }
}
