/* css/style.css */

:root {
    /* Main Accent Colors (from Lovable) */
    --primary: #3b3df2;        /* Vibrant Indigo */
    --primary-hover: #292ac8;
    --primary-light: rgba(59, 61, 242, 0.08);
    --primary-foreground: #ffffff;
    
    --accent: #ff9900;         /* Vibrant Orange */
    --accent-hover: #e08700;
    --accent-light: rgba(255, 153, 0, 0.08);
    --accent-foreground: #ffffff;
    
    /* Layout Colors (Light Theme by Default) */
    --background: #f5f5f5;
    --foreground: #121212;
    --card: #ffffff;
    --card-foreground: #121212;
    
    --border: #e5e7eb;
    --input: #e5e7eb;
    --ring: #3b3df2;
    --text-main: #121212;
    --text-muted: #6b7280;
    
    /* Badges / Semantic Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --success-dark: #065f46;
    
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --warning-dark: #92400e;
    
    --info: #06b6d4;
    --info-light: #cffafe;
    --info-dark: #155e75;
    
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --danger-dark: #991b1b;
    
    /* Shadows & Border Radius */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Dark Mode Variables for Professionals Banner & Hero Backgrounds */
.dark-theme {
    --background: #090d16;
    --foreground: #f8fafc;
    --card: #111827;
    --card-foreground: #f8fafc;
    --border: #374151;
    --text-main: #f8fafc;
    --text-muted: #9ca3af;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* App Container Layout */
.app-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styling - Vibrant Indigo and Orange */
.logo {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.logo .med {
    color: var(--primary);
}

.logo .minut {
    color: var(--accent);
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.main-content {
    flex: 1;
    padding: 32px 0;
}

.app-footer {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

/* Cards & Containers (Glassmorphism) */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.card-header h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    text-align: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: white !important;
    box-shadow: 0 4px 6px -1px rgba(59, 61, 242, 0.15);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -1px rgba(59, 61, 242, 0.25);
}

.btn-accent {
    background-color: var(--accent);
    color: white !important;
    box-shadow: 0 4px 6px -1px rgba(255, 153, 0, 0.15);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -1px rgba(255, 153, 0, 0.25);
}

.btn-secondary {
    background-color: white;
    color: var(--text-main);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

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

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

.btn-danger {
    background-color: var(--danger);
    color: white !important;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Inputs & Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 14px;
    background-color: white;
    color: var(--text-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 61, 242, 0.15);
}

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

.form-row {
    display: flex;
    gap: 16px;
}

.form-row > * {
    flex: 1;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

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

.badge-warning {
    background-color: var(--warning-light);
    color: var(--warning-dark);
}

.badge-info {
    background-color: var(--info-light);
    color: var(--info-dark);
}

.badge-danger {
    background-color: var(--danger-light);
    color: var(--danger-dark);
}

.badge-secondary {
    background-color: #e5e7eb;
    color: #4b5563;
}

/* Responsive Table */
.table-responsive {
    overflow-x: auto;
    width: 100%;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

th {
    padding: 12px 16px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    background-color: rgba(249, 250, 251, 0.8);
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    vertical-align: middle;
}

tr:hover td {
    background-color: rgba(243, 244, 246, 0.4);
}

/* Compare Cards for Patient Confirmation Link */
.appointment-compare {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 32px 0;
    background-color: #f3f4f6;
    padding: 16px;
    border-radius: var(--radius-md);
}

.appt-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.appt-box .label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.appt-box .date {
    font-weight: 600;
    font-size: 15px;
}

.appt-box .date.highlight {
    color: var(--primary);
    font-size: 17px;
}

.appointment-compare .arrow {
    font-size: 24px;
    color: var(--text-muted);
    padding: 0 10px;
}

.warning-text {
    font-size: 13px;
    background-color: var(--warning-light);
    color: var(--warning-dark);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.success-card, .error-card {
    max-width: 500px;
    margin: 60px auto;
    padding: 40px 24px;
}

.success-icon {
    font-size: 48px;
    background-color: var(--success-light);
    color: var(--success);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.error-icon {
    font-size: 48px;
    background-color: var(--danger-light);
    color: var(--danger);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.date-highlight {
    font-size: 22px;
    font-weight: 700;
    color: var(--success);
    margin: 20px 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* Auth Pages (Login & Signup) Unified Layout */
.auth-body {
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, #f8fafc 0%, #cbd5e1 100%);
    min-height: 100vh;
    display: flex;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    margin: auto;
    padding: 32px;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.auth-card-lg {
    max-width: 580px;
    padding: 40px;
}

.auth-title-container {
    text-align: center;
    margin-bottom: 24px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.auth-demo-accounts {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.auth-demo-accounts p {
    margin-bottom: 4px;
}

.auth-badge-info-container {
    text-align: center;
    margin-bottom: 16px;
}

.auth-badge-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.auth-qr-container {
    text-align: center;
    margin: 16px 0;
}

.auth-qr-img {
    width: 140px;
    height: 140px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.auth-qr-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.auth-remember-checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.auth-remember-checkbox {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.auth-remember-label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
}

/* Dashboard Specific Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.stat-card .label {
    font-size: 13px;
    color: var(--text-muted);
}

.stat-card .value {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-top: 4px;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.filters-left {
    display: flex;
    gap: 8px;
}

.tab-btn {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover, .tab-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

.text-right {
    text-align: right;
}

/* Modals */
.custom-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    padding: 28px;
    position: relative;
    border: 1px solid var(--border);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
}

/* Premium Landing Page Styling (hello-world-maker design clone) */
body.landing-page-body {
    background-color: var(--background);
    color: var(--foreground);
    display: block;
}

/* Sticky Premium Header */
.landing-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.landing-navbar.scrolled {
    padding: 12px 8%;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.landing-nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.landing-nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.landing-nav-links a:hover {
    color: var(--primary);
}

/* Hero Section with Blob Decoratives */
.landing-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 8% 80px 8%;
    overflow: hidden;
}

.landing-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.landing-blob-1 {
    position: absolute;
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background-color: rgba(59, 61, 242, 0.05);
    border-radius: 50%;
    filter: blur(80px);
}

.landing-blob-2 {
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 380px;
    height: 380px;
    background-color: rgba(255, 153, 0, 0.05);
    border-radius: 50%;
    filter: blur(80px);
}

.landing-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.landing-hero-content h1 {
    font-family: var(--font-heading);
    font-size: 54px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--foreground);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.landing-hero-content h1 span.primary-text {
    color: var(--primary);
}

.landing-hero-content h1 span.accent-text {
    color: var(--accent);
}

.landing-hero-content p {
    color: var(--primary);
    font-size: 19px;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto 40px auto;
    font-weight: 500;
}

/* Multi-tenant Selectors */
.landing-selector-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 680px;
    margin: 0 auto 40px auto;
}

.landing-selector-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.landing-selector-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.landing-selector-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
    transition: background-color 0.3s ease;
}

.landing-selector-card:hover .landing-selector-icon {
    background-color: var(--primary);
    color: white;
}

.landing-selector-card:hover .landing-selector-icon svg path {
    fill: white;
}

.landing-selector-info h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 2px;
}

.landing-selector-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.landing-selector-arrow {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 18px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.landing-selector-card:hover .landing-selector-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

.landing-hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Unified Section Headers */
.landing-section {
    padding: 90px 8%;
}

.landing-section.bg-alternate {
    background-color: var(--card);
}

.landing-section-badge {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.landing-section-badge.accent-badge {
    background-color: var(--accent-light);
    color: var(--accent);
}

.landing-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.landing-section-header h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--foreground);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.landing-section-header h2 span.highlight {
    color: var(--primary);
}

.landing-section-header p {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.6;
}

/* Three Columns Content Grid */
.landing-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.landing-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 20px;
}

.landing-card-icon svg {
    width: 24px;
    height: 24px;
}

.landing-card-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--foreground);
}

/* List with steps */
.landing-steps-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.landing-steps-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.landing-step-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.landing-step-number {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.landing-step-text-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 6px;
}

.landing-step-text-container svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.landing-step-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--foreground);
    margin: 0;
}

.landing-steps-quote {
    text-align: center;
    margin-top: 40px;
}

.landing-steps-quote p {
    font-size: 20px;
    font-weight: 500;
    color: var(--foreground);
}

.landing-steps-quote p span {
    color: var(--primary);
}

.landing-inline-cta {
    text-align: center;
    margin-top: 60px;
}

.landing-inline-cta p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* Professionals Dark Banner */
.landing-section-banner {
    background-color: var(--primary);
    color: white;
    padding: 80px 8%;
    text-align: center;
}

.landing-banner-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    font-size: 24px;
}

.landing-banner-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.landing-section-banner h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 40px;
}

.landing-banner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.landing-banner-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-banner-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.landing-banner-card-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.landing-banner-card p {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

/* Timeline Timeline steps for Professionals */
.landing-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.landing-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 36px;
    width: 2px;
    background-color: var(--border);
}

.landing-timeline-item {
    display: flex;
    gap: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.landing-timeline-item:hover {
    box-shadow: var(--shadow-md);
}

.landing-timeline-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    color: white;
    font-size: 28px;
}

.landing-timeline-icon svg {
    width: 32px;
    height: 32px;
}

.landing-timeline-info {
    flex: 1;
    padding-top: 8px;
}

.landing-timeline-info h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.landing-timeline-info p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.landing-timeline-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--primary-light);
    color: var(--primary);
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
}

.landing-timeline-quote {
    background-color: rgba(59, 61, 242, 0.04);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 24px;
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.landing-timeline-quote p {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.landing-timeline-quote p span {
    color: var(--primary);
}

/* Pilot Sites Section */
.landing-pilot-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.landing-pilot-box h3 {
    font-size: 18px;
    color: var(--foreground);
    margin-bottom: 30px;
    font-weight: 500;
}

.landing-pilot-indicators {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.landing-pilot-ind-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}

.landing-pilot-ind-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin: 0 auto 16px auto;
    font-size: 24px;
}

.landing-pilot-ind-icon svg {
    width: 28px;
    height: 28px;
}

.landing-pilot-ind-card p {
    font-size: 15px;
    font-weight: 600;
    color: var(--foreground);
    margin: 0;
}

.landing-pilot-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* CPTS Partner Section */
.landing-cpts-box {
    background: linear-gradient(135deg, rgba(59, 61, 242, 0.03) 0%, rgba(255, 153, 0, 0.03) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.landing-cpts-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    font-size: 28px;
}

.landing-cpts-icon svg {
    width: 32px;
    height: 32px;
}

.landing-cpts-box h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 24px;
}

.landing-cpts-box p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 32px auto;
}

/* Compliance Security Grid */
.landing-security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.landing-security-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.landing-security-card:hover {
    box-shadow: var(--shadow-md);
}

.landing-security-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    color: var(--primary);
    font-size: 24px;
}

.landing-security-icon svg {
    width: 28px;
    height: 28px;
}

.landing-security-card p {
    font-size: 14px;
    font-weight: 600;
    color: var(--foreground);
    margin: 0;
}

/* Interactive Accordion FAQ (with slide animations) */
.landing-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.landing-accordion-item {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0 24px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.landing-accordion-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.landing-accordion-item.active {
    box-shadow: var(--shadow-md);
}

.landing-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--foreground);
}

.landing-accordion-toggle {
    font-size: 20px;
    color: var(--primary);
    transition: transform 0.2s ease;
    line-height: 1;
}

.landing-accordion-item.active .landing-accordion-toggle {
    transform: rotate(45deg);
}

.landing-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding-bottom 0.3s ease;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.landing-accordion-item.active .landing-accordion-content {
    padding-bottom: 24px;
    max-height: 200px; /* arbitrary height to slide down */
}

/* Interactive Premium Contact Form */
.landing-contact-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

/* Premium Footer */
.landing-footer {
    background-color: var(--card);
    border-top: 1px solid var(--border);
    padding: 40px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 14px;
}

.landing-footer-links {
    display: flex;
    gap: 30px;
}

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

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

/* Responsive Styles for Landing page */
@media (max-width: 992px) {
    .landing-hero-content h1 {
        font-size: 40px;
    }
    .landing-grid-3, .landing-security-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .landing-banner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .landing-pilot-indicators {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .landing-navbar {
        padding: 15px 5%;
        flex-direction: column;
        gap: 15px;
        position: relative;
    }
    .landing-hero {
        padding-top: 40px;
    }
    .landing-hero-content h1 {
        font-size: 32px;
    }
    .landing-selector-grid {
        grid-template-columns: 1fr;
    }
    .landing-grid-3, .landing-security-grid, .landing-banner-grid {
        grid-template-columns: 1fr;
    }
    .landing-hero-actions, .landing-pilot-actions {
        flex-direction: column;
        width: 100%;
    }
    .landing-hero-actions .btn, .landing-pilot-actions .btn {
        width: 100%;
    }
    .landing-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .landing-footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Action button container for patient feedback screens */
.action-btn-container {
    margin-top: 30px;
}

/* Helper & Utility Classes for Dashboard */
.mb-30 { margin-bottom: 30px; }
.mb-20 { margin-bottom: 20px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-30 { margin-top: 30px; }
.mr-10 { margin-right: 10px; }
.flex-1 { flex: 1; }
.margin-0 { margin: 0; }
.padding-0 { padding: 0; }
.padding-10 { padding: 10px; }
.padding-12 { padding: 12px; }
.font-11 { font-size: 11px; }
.font-12 { font-size: 12px; }
.font-13 { font-size: 13px; }
.font-14 { font-size: 14px; }
.font-10 { font-size: 10px; }
.w-150 { width: 150px; }
.w-100-percent { width: 100%; }
.height-42 { height: 42px; }
.height-auto { height: auto; }
.line-height-1 { line-height: 1; }
.display-block { display: block; }
.display-inline-block { display: inline-block; }
.display-none { display: none; }
.text-through { text-decoration: line-through; }
.white-nowrap { white-space: nowrap; }
.gap-5 { gap: 5px; }
.gap-6 { gap: 6px; }
.align-end { align-items: flex-end; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.border-none { border: none; }

/* Stat Card specific borders */
.stat-card.success-border { border-left: 4px solid var(--success); }
.stat-card.danger-border { border-left: 4px solid var(--danger); }
.stat-card.warning-border { border-left: 4px solid var(--warning); }
.stat-card.info-border { border-left: 4px solid var(--info); }
.stat-card.red-border { border-left: 4px solid #ff3333; }

/* Dashboard Form Utilities */
.dashboard-form-inline {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-end;
}
.dashboard-form-group-flex {
    flex: 1;
    margin: 0;
}
.dashboard-card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    padding: 0;
}
.dashboard-form-center-flex {
    display: flex;
    gap: 5px;
    align-items: center;
    margin: 0;
}
.dashboard-form-inline-block {
    display: inline-block;
}
.dashboard-form-margin-0 {
    margin: 0;
}
.dashboard-form-action-container {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

/* Additional Dashboard Formatting Helpers */
.padding-40 { padding: 40px !important; }
.text-muted-color { color: var(--text-muted) !important; }
.superadmin-cabinet-info { font-size: 11px; color: var(--text-muted); margin-top: 4px; line-height: 1.4; }
.padding-xs { padding: 4px 8px !important; }
.font-12 { font-size: 12px !important; }
.line-height-1 { line-height: 1 !important; }

/* Text Color Utilities */
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-red { color: #ff3333 !important; }

/* Specific classes for cleaning up PHP inline styles */
.btn-submit {
    padding: 12px !important;
}

.btn-submit-mt {
    margin-top: 24px !important;
    padding: 12px !important;
}

.btn-back-login {
    margin-top: 10px !important;
    padding: 12px !important;
}

.contact-success-badge {
    display: none;
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    font-size: 14px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.form-error-badge {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.success-container {
    padding: 20px 0;
}

.success-checkmark {
    font-size: 50px;
    color: var(--success);
    margin-bottom: 15px;
}

.success-title {
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
}

.success-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-back-home {
    padding: 12px 30px !important;
}

.form-section-title {
    margin-top: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
}

.form-section-title-first {
    margin-top: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
}

.form-helper-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 15px;
}

.form-footer-link-container {
    margin-top: 15px;
}

.form-footer-link {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: underline;
}

.label-center {
    text-align: center;
}

.patient-summary-bubble {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    font-style: italic;
    max-width: 250px;
}

.badge-rappel-manuel {
    margin-left: 5px;
    background-color: #ff3333 !important;
    color: white !important;
}

.settings-subheader {
    margin-top: 30px !important;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.settings-form-group-top {
    margin-top: 15px !important;
}

.form-variables-info {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.modal-form {
    margin-top: 20px !important;
}

/* Cabinet info popup classes */
.cabinet-info-link {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cabinet-info-link:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

.cabinet-modal-detail {
    margin-top: 10px;
    font-size: 14px;
}

.cabinet-modal-billing {
    margin-top: 10px;
    font-size: 14px;
    white-space: pre-wrap;
    line-height: 1.5;
}
