/* Import Google Fonts for cursive logo styling */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600;700&display=swap');

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

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #365314;
    background-color: #f7fee7;
    overflow-x: visible;
    margin: 0;
    padding: 0;
    /* Normal body background */
    background: #f7fee7 !important;
}

/* Dashboard background - matching sidebar solid color */
body.dashboard-background {
    background: #f7fee7 !important;
}

/* Scrollable content container for landing page */
.scrollable-content {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 70px;
    position: relative;
    margin-top: 0;
}

/* Prevent body scrolling on landing page - only scrollable-content should scroll */
html:not(.dashboard-background) {
    overflow: hidden !important;
    height: 100vh;
}

body:not(.dashboard-background) {
    overflow: hidden !important;
    height: 100vh;
}

/* Allow scrolling on dashboard pages */
html.dashboard-background {
    overflow-y: auto !important;
    height: auto !important;
}

body.dashboard-background {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
}

/* Ensure main content can scroll on dashboard pages */
body.dashboard-background .main-content {
    overflow-y: visible !important;
    height: auto !important;
    min-height: 100vh !important;
}

/* Force dashboard pages to allow scrolling */
body.dashboard-background {
    overflow-y: auto !important;
    height: auto !important;
}

/* Ensure health content has enough height to scroll */
.health-content {
    min-height: 150vh !important;

}

/* Ensure scrollbar appears below navigation bar for landing page */
body:not(.dashboard-background) {
    padding-top: 0;
}

/* Base main-content class definition */
.main-content {
    display: block;
    visibility: visible;
    opacity: 1;
    position: relative;
    z-index: 999;
    margin-left: 208px;
    margin-top: 0;
    padding: 0 10px 10px 10px;
    min-height: auto;
    height: auto;
    max-height: none;
    overflow-y: visible;
    width: calc(100vw - 228px);
    box-sizing: border-box;

}

.container {
    width: 100%;
    margin: 0;
    padding: 0 50px;
    overflow-x: visible;
    box-sizing: border-box;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1001;
    transition: all 0.3s ease;
    height: 70px;
}

.navbar.monarch-style {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 2rem;
    position: relative;
}

.nav-page-title {
    flex: 1;
    text-align: center;
    margin: 0 2rem;
}

.nav-page-title h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    white-space: nowrap;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-icon-btn {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.nav-icon-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    display: block !important;
}

/* Ensure SVG icons are visible */
.sidebar-item svg,
.nav-icon-btn svg,
.user-arrow svg,
.dropdown-item svg {
    display: block !important;
    stroke: currentColor;
    fill: none;
    width: 20px;
    height: 20px;
}

/* Specific styling for filled icons (like settings) */
.nav-icon-btn svg[fill="currentColor"],
.dropdown-item svg[fill="currentColor"] {
    fill: currentColor;
    stroke: none;
}

/* Ensure sidebar icons are visible */
.sidebar-item svg {
    display: block !important;
    stroke: currentColor !important;
    fill: none !important;
    width: 20px !important;
    height: 20px !important;
}

/* Ensure navigation icons are visible */
.nav-icon-btn svg {
    display: block !important;
    stroke: currentColor !important;
    fill: none !important;
    width: 20px !important;
    height: 20px !important;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-logo h2 {
    color: #254373;
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(37, 67, 115, 0.2);
    transition: all 0.3s ease;
}

.nav-logo h2:hover {
    transform: scale(1.02);
    text-shadow: 0 2px 4px rgba(37, 67, 115, 0.3);
    color: #1e3a5f;
}

.nav-logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-logo a:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #1f2937;
}

.nav-create-visit {
    background: #60a5fa;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-create-visit:hover {
    background: #3b82f6;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-menu a {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-menu a:hover {
    color: #1f2937;
    background: #f3f4f6;
}

.nav-user {
    display: flex;
    align-items: center;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
    font-weight: 500;
    max-width: 100%;
    overflow: hidden;
}

.user-menu-trigger:hover {
    background: #f3f4f6;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    flex-shrink: 1;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dropdown-arrow {
    font-size: 0.75rem;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.user-menu-trigger:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #1f2937;
    margin: 3px 0;
    transition: 0.3s;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(132, 204, 22, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: white;
    color: #3b82f6;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 60px 0 60px;
    margin-top: 0;
    background: linear-gradient(135deg, #f7fee7 0%, #ecfccb 100%);
    min-height: auto;
    display: flex;
    align-items: center;
    color: #365314;
    width: 100%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #254373;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight {
    color: #84cc16;
}

.stress-free {
    color: #6b7280;
    font-style: italic;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4d7c0f;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(132, 204, 22, 0.3);
}

.hero-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #65a30d 0%, #4d7c0f 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(132, 204, 22, 0.4);
}

.hero-buttons .btn-outline {
    background: transparent;
    color: #84cc16;
    border: 2px solid #84cc16;
}

.hero-buttons .btn-outline:hover {
    background: #84cc16;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(132, 204, 22, 0.3);
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    width: 100%;
    max-width: 650px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
    padding: 60px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h1,
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #60a5fa;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 60px 0;
    background: #f8fafc;
}

.how-it-works-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: stretch;
}

.steps-vertical {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-vertical {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.step-vertical:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #60a5fa;
}

.step-vertical .step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
}

.step-example {
    background: #f7fee7;
    border-left: 3px solid #84cc16;
    padding: 0.75rem;
    border-radius: 0 6px 6px 0;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #365314;
}

.step-example strong {
    color: #4d7c0f;
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0 0;
}

.summary-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #6b7280;
    line-height: 1.5;
}

.summary-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #60a5fa;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Example Output Styles */
.example-output {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.summary-document {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.15), 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    max-height: 698px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    border: 2px solid #9ca3af;
}

.summary-document::-webkit-scrollbar {
    width: 6px;
}

.summary-document::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.summary-document::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.summary-document::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.document-header {
    text-align: center;
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.document-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.document-tagline {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
}

.document-content {
    padding: 1.5rem;
}

.summary-section {
    margin-bottom: 1.5rem;
}

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

.summary-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.summary-section p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.subsection {
    margin-bottom: 1rem;
}

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

.subsection h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.summary-section ul,
.subsection ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-section li,
.subsection li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: #6b7280;
    line-height: 1.5;
}

.summary-section li:before,
.subsection li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #60a5fa;
    font-weight: bold;
}

.summary-section li:last-child,
.subsection li:last-child {
    margin-bottom: 0;
}

.tip {
    background: #f0f9ff;
    border-left: 3px solid #3b82f6;
    padding: 0.75rem;
    border-radius: 0 6px 6px 0;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #1e40af;
    font-style: italic;
}

.goal-text {
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    padding: 0.75rem;
    border-radius: 0 6px 6px 0;
    margin: 0.75rem 0 0 0;
    font-style: italic;
    color: #92400e;
}

.link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

.link:hover {
    text-decoration: underline;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: #f8fafc;
}

.contact-container {
    display: flex;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item div strong {
    display: block;
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item div p {
    color: #6b7280;
    margin: 0;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.contact-form .btn-primary {
    width: 100%;
    margin-top: 1rem;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 208px;
    height: 100vh;
    background: #f7fee7;
    z-index: 10000;
    overflow: hidden;
    box-sizing: border-box;
    transition: width 0.3s ease;
    display: flex;
    flex-direction: column;
}





/* New page header content styling */
.page-header-content {
    margin-bottom: 1rem;
    padding: 1rem 0 0 0;
}





/* Reduce spacing for settings page specifically */
.profile-content {
    margin-top: 0.5rem;
}

/* Reduce header spacing specifically for settings page */
.profile-content + .page-header-content,
.page-header-content + .profile-content,
.profile-content .page-header-content {
    margin-bottom: 0.25rem;
}

/* More specific override for settings page header spacing */
.profile-content ~ .page-header-content,
.page-header-content ~ .profile-content {
    margin-bottom: 0.25rem;
}

/* Settings page specific header spacing */
.settings-header {
    margin-bottom: 0.25rem !important;
}

.page-header-content h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e40af;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.page-header-content p {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}





/* Collapsed state removed: sidebar is always expanded */
/* .sidebar.collapsed { width: 60px; } */

.sidebar-content {
    padding: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
}

/* Hide scrollbar in all modes */
.sidebar .sidebar-content {
    overflow: hidden !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* Internet Explorer 10+ */
}

/* Hide scrollbar for webkit browsers */
.sidebar .sidebar-content::-webkit-scrollbar {
    display: none !important;
}

.sidebar-header {
    padding: 8px 20px 8px 15px;
    margin-bottom: 0.5rem;
    position: relative;
    background: transparent;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sidebar-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.sidebar-logo {
    color: #254373;
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(37, 67, 115, 0.1);
}

/* Branding consistency: landing page wordmark */
.nav-logo h2 {
    color: #254373;
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Remove collapsed variants */
/* .sidebar.collapsed .sidebar-logo { display: none; } */

.sidebar-nav {
    margin-bottom: 1rem;
    margin-top: 0;
    flex: 1;
    overflow: hidden;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #1f2937;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0 8px 4px 8px;
}

/* .sidebar.collapsed .sidebar-item span { display: none; } */

/* .sidebar.collapsed .sidebar-item { justify-content: center; } */

.sidebar-item:hover {
    background: rgba(132, 204, 22, 0.1);
    color: #1f2937;
}

.sidebar-item.active {
    background: rgba(132, 204, 22, 0.15);
    color: #1f2937;
    border-right: 3px solid #84cc16;
}

.sidebar-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
}

.sidebar-user {
    padding: 20px;
    margin-top: auto;
    position: relative;
    background: transparent;
}

/* .sidebar.collapsed .sidebar-user { padding: 10px; } */

/* .sidebar.collapsed .user-info { justify-content: center; } */

/* .sidebar.collapsed .user-details, .sidebar.collapsed .user-arrow { display: none; } */

/* .sidebar.collapsed .user-avatar { width: 32px; height: 32px; } */

/* Remove toggle button styling */
/* .sidebar-toggle { ... } */

/* .sidebar-toggle:hover { background: #f9fafb; } */



/* .sidebar.collapsed .sidebar-toggle .toggle-icon { transform: rotate(180deg); } */

/* .sidebar.collapsed .user-menu-dropdown { left: 60px; } */

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.user-info:hover {
    background: rgba(132, 204, 22, 0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.user-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.user-email {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

.user-arrow {
    transition: transform 0.2s ease;
}

.user-arrow.rotated {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    display: none;
    margin-bottom: 2px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: absolute;
    bottom: calc(100% + 2px);
    left: 0;
    right: 0;
    z-index: 1002;
}

.user-menu-dropdown.active {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: left;
    font-size: 0.9rem;
}

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

.dropdown-item:hover {
    background: #f9fafb;
    color: #1f2937;
}

.dropdown-item.sign-out {
    color: #dc2626;
}

.dropdown-item.sign-out:hover {
    background: #fef2f2;
    color: #dc2626;
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    display: block;
}

/* Specific styling for filled icons in dropdown (like settings gear) */
.dropdown-item svg[fill="currentColor"] {
    fill: currentColor;
    stroke: none;
    display: block;
}

/* Ensure all dropdown icons are visible */
.dropdown-item svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
}

/* Ensure sign out icon is visible */
.dropdown-item.sign-out svg {
    stroke: currentColor !important;
    fill: none !important;
}

/* Overlay removed since sidebar is always visible */



/* .main-content.sidebar-collapsed { margin-left: 60px; } */

/* Thank You Message */
.thank-you-message {
    text-align: center;
    padding: 2rem;
}

.thank-you-icon {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.thank-you-message h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.thank-you-message p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.thank-you-note {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 2rem;
}

.thank-you-message .btn-primary {
    display: inline-block;
    width: auto;
    margin-top: 0;
}

/* Contact Page */
.contact-page {
    padding: 3rem 0;
    margin-top: 70px;
    background: #f8fafc;
    min-height: calc(100vh - 200px);
}

/* Email Verification Page */
.email-verification-page {
    padding: 3rem 0;
    margin-top: 70px;
    background: #f8fafc;
    min-height: calc(100vh - 200px);
}

.verification-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

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

.verification-message {
    padding: 2rem;
}

.verification-message h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.verification-message p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.verification-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-icon, .error-icon, .pending-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-icon {
    color: #10b981;
}

.error-icon {
    color: #ef4444;
}

.pending-icon {
    color: #f59e0b;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .verification-container {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .verification-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .verification-actions .btn-primary,
    .verification-actions .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

/* Visit Form Page */
.visit-form-page {
    padding: 0;
    margin-top: 105px;
    background: white;
    min-height: auto;
    display: block !important;
    visibility: visible !important;
}



/* Demo mode adjustments */
body.demo-mode .main-content {
    margin-left: 0 !important;
    width: 100vw !important;
    padding-top: 70px; /* Account for fixed navbar */
}

body.demo-mode .navbar {
    display: block !important;
}

body.demo-mode .sidebar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Ensure logo text is always visible in demo mode for consistent positioning */
body.demo-mode .nav-logo h2 {
    display: block !important;
}





.visit-form-container {
    width: 100%;
    margin: 0;
    overflow-y: visible;
    max-height: none;
}

.visit-form {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

/* Visit form actions spacing */
.visit-form .form-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem; /* increase space between Create and Cancel */
    margin-top: 1rem;
}

/* Dashboard */
.dashboard-container {
    padding: 0;
    margin-top: 0;
    background: white;
    min-height: auto;
}

/* Reduce gap between red container and content for authenticated pages */
body.dashboard-background .main-content {
    padding-top: 0 !important; /* Minimal gap - no top padding */
}

/* Add blue border to page header content for authenticated pages only */

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.welcome-section h1 span {
    color: #60a5fa;
}

.welcome-section p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.dashboard-content {
    width: 100%;
    margin: 0;

}

.dashboard-container-wrapper {
    width: 100%;
    margin: 0;

}

.dashboard-content-inner {
    background: white;
    padding: 0 1.5rem 0.75rem 1.5rem;
    margin-top: 0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    box-sizing: border-box;
    overflow: hidden;

}

.main-action-card {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    margin-bottom: 2rem;
    border: 2px solid transparent;
}

.main-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.15);
    border-color: #60a5fa;
}

.main-action-card .card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.main-action-card h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.main-action-card p {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.main-action-card .btn-primary {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    font-weight: 600;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.dashboard-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.dashboard-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.dashboard-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.dashboard-card .btn-primary,
.dashboard-card .btn-outline {
    width: 100%;
}

.dashboard-card button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Profile Page */
.profile-container {
    padding: 3rem 0;
    margin-top: 70px;
    background: #f8fafc;
    min-height: calc(100vh - 200px);
}

.profile-content {
    display: flex;
    width: 100%;
    margin: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.profile-sidebar {
    width: 280px;
    background: #f8fafc;
    border-right: 1px solid #e5e7eb;
    padding: 1.7rem 0;
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
}

.profile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-size: 0.9rem;
    border-radius: 0;
    width: 100%;
}

.profile-nav-item:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.profile-nav-item.active {
    background: #e5e7eb;
    color: #1f2937;
    border-right: 3px solid #60a5fa;
}

.profile-nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
}

.profile-main {
    flex: 1;
    padding: 2rem;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .profile-content {
        flex-direction: column;
        max-width: 100%;
        margin: 0 1rem;
    }
    
    .profile-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 1rem 0;
    }
    
    .profile-nav {
        flex-direction: row;
        gap: 0.25rem;
        padding: 0 1rem;
        overflow-x: auto;
    }
    
    .profile-nav-item {
        white-space: nowrap;
        min-width: fit-content;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .profile-main {
        padding: 1.5rem;
    }
}

.profile-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.profile-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.profile-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.profile-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.profile-avatar-section {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar-preview {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-overlay {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar-preview:hover .avatar-overlay {
    opacity: 1;
}

.avatar-upload-btn {
    cursor: pointer;
    color: white;
    text-decoration: none;
}

.avatar-upload-btn:hover {
    text-decoration: underline;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
}

.profile-actions .btn-primary {
    flex: 1;
}

.profile-actions .btn-outline {
    flex: 1;
}

/* Inline Success Message */
.inline-success {
    background-color: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.875rem;
    display: none;
}

.inline-success.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.form-group input[readonly] {
    background-color: #f9fafb;
    cursor: not-allowed;
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    transition: border-color 0.3s ease;
    color: #374151;
}

.form-group select option {
    color: #374151;
}

.form-group select option[value=""] {
    color: #9ca3af;
    font-style: italic;
}

/* Style select elements to show gray italic text for placeholder options */
.form-group select {
    color: #374151;
}

.form-group select:invalid,
.form-group select option[value=""]:checked {
    color: #9ca3af;
    font-style: italic;
}

/* Style date input placeholder */
.form-group input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    color: #9ca3af;
    font-style: italic;
}

.form-group input[type="date"]:invalid::-webkit-datetime-edit-fields-wrapper {
    color: #9ca3af;
    font-style: italic;
}

/* Style select placeholder text */
.form-group select:not([data-selected="true"]) {
    color: #9ca3af;
    font-style: italic;
}

.form-group select option[value=""] {
    color: #9ca3af;
    font-style: italic;
}

.form-group select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* Placeholder Styling */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
    font-size: 0.9rem;
}

.form-group input::placeholder {
    font-family: 'Inter', sans-serif;
}

.form-group textarea::placeholder {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

/* Cancel Link Styling */
.cancel-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.cancel-link:hover {
    color: #374151;
    text-decoration: underline;
}

/* Page Headers */
.page-header {
    padding: 0 0 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Hide page headers in main content since they're now in the header strip */
.main-content .page-header {
    display: none;
}

.page-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.page-header p {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* Dashboard Interest Areas */
.dashboard-interest-areas {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;

}

.dashboard-interest-tag {
    background: #60a5fa;
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #60a5fa;
    transition: all 0.2s ease;
}

.dashboard-interest-tag:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* Visit History Styles */
/* Removed redundant visit-history-container - using visit-history-wrapper directly */

.visit-history-wrapper {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    /* border: 3px solid #ffff00 !important; */ /* YELLOW - Visit history wrapper */
}

.visit-history-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.visit-history-table {
    padding: 0;
    overflow-x: auto;
    width: 100%;
}

.history-controls {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

/* Sortable Table Headers */
.sortable-header {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.sortable-header:hover {
    background-color: #3b82f6;
}

.sort-indicator {
    color: white;
    transition: color 0.2s ease;
    font-size: 14px;
    font-weight: bold;
    margin-left: 4px;
}



.sortable-header:hover .sort-indicator {
    color: white;
}

.sort-indicator svg {
    display: block;
}

.history-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.history-table th {
    background: #60a5fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: white;
    border-bottom: 1px solid #e5e7eb;
}

/* Column width adjustments - New order: Checkbox, Date, Reason, Visit Type, Doctor Specialty */
.history-table th:nth-child(1), /* Checkbox */
.history-table td:nth-child(1) {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
}

.history-table th:nth-child(2), /* Visit Date */
.history-table td:nth-child(2) {
    width: 14ch;
    min-width: 14ch;
    max-width: 14ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-table th:nth-child(3) { /* Reason header - keep on one line */
    width: auto;
    min-width: calc(16ch + 2rem); /* account for th left/right padding */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-table td:nth-child(3) { /* Reason cells - flexible and wrap */
    width: auto;
    min-width: 16ch !important; /* enforce minimum width */
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.history-table th:nth-child(4), /* Visit Type */
.history-table td:nth-child(4) {
    width: 18ch;
    min-width: 18ch;
    max-width: 18ch;
    white-space: nowrap;
}

.history-table th:nth-child(5), /* Doctor Specialty */
.history-table td:nth-child(5) {
    width: 25ch;
    min-width: 25ch;
    max-width: 25ch;
    white-space: nowrap;
}

.history-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #6b7280;
    background: white;
}

.history-table tr {
    background: white;
}

.history-table tr:hover {
    background: #f9fafb;
}

.history-table tr:last-child td {
    border-bottom: none;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-outline.btn-small {
    padding: 6px 8px;
}

/* Visit history table action buttons */
.history-table .btn-outline {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-table .btn-outline:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #9ca3af;
}

.no-visits-message {
    text-align: center;
    margin: 0;
    width: 100%;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.empty-state svg {
    color: #9ca3af;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.empty-state p {
    color: #6b7280;
    margin: 0;
    margin-bottom: 1.5rem;
}

.contact-page .section-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
}

.contact-page .section-header p {
    font-size: 1.125rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 2rem;
}

/* CTA Section */
.cta {
    padding: 40px 0;
    background: #1e3a8a;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background: white;
    color: #1e40af;
    border: none;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 16px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.cta .btn-primary:hover {
    background: #f8fafc;
    color: #1e40af;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .visit-form-container,
    .dashboard-content,
    .no-visits-message {
        width: 100%;
    }
    
    .page-header h1 {
        font-size: 1.875rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .dashboard-interest-areas {
        margin-top: 0.75rem;
        gap: 0.375rem;
    }
    
    .dashboard-interest-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-logo h2 {
        display: none;
    }
    
    .nav-buttons {
        gap: 0.5rem;
    }
    
    .nav-buttons .btn-secondary,
    .nav-buttons .btn-primary {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        cursor: pointer;
    }
    
    .nav-buttons .btn-secondary:hover,
    .nav-buttons .btn-primary:hover {
        cursor: pointer;
    }
    
    .nav-user {
        display: flex;
    }
    
    .user-menu-trigger .user-name {
        display: none;
    }
    
    .user-menu-trigger .dropdown-arrow {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .how-it-works-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .steps-vertical {
        gap: 1.5rem;
    }
    
    .step-vertical {
        padding: 1rem;
    }
    
    .example-output {
        padding: 1.5rem;
    }
    
    .mockup-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .section-header h1,
    .section-header h2 {
        font-size: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .nav-page-title {
        margin: 0 1rem;
    }
    
    .nav-page-title h1 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .visit-form-container,
    .dashboard-content,
    .no-visits-message {
        width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

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

.feature-card,
.step {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Health Content Section */
.health-content-section {
    margin-top: 3rem;
    border: 3px solid blue !important;
}

/* Responsive Health Content Grid */
.health-content-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.health-content-column {
    flex: 1;
}

/* Desktop layout - side by side columns */
@media (min-width: 1024px) {
    .health-content-grid {
        flex-direction: row;
        gap: 2rem;
    }
    
    .health-content-column {
        min-width: 0; /* Allow flex items to shrink below content size */
        flex: 1;
        max-width: 50%;
    }
    
    /* Ensure equal height columns */
    .health-content-column .content-section {
        height: 100%;
    }
}

/* Unified Health Content Layout */
.health-content-unified {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.health-content-unified .content-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.health-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

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

.health-item p {
    margin: 0;
    line-height: 1.6;
}

.health-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.5rem;
}

.health-link:hover {
    text-decoration: underline;
    color: #2563eb;
}

.health-content {
    margin-top: 1.5rem;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #6b7280;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #60a5fa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.interest-areas-display {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.3);
}

.interest-areas-display h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.interest-areas-display h4::before {
    content: "🎯";
    font-size: 1.2rem;
}

.interest-areas-display p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
}

.content-section {
    background: white;
    padding: 1rem 0.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid transparent;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.news-section {
    border-left-color: #3b82f6;
}

.tips-section {
    border-left-color: #10b981;
}

.news-content, .tips-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Reduced from 1rem */
}

.news-item, .tips-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem; /* Reduced from 1.25rem */
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.news-item:hover, .tips-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.content-section h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.news-section h3 {
    color: #1e40af;
    border-bottom-color: #3b82f6;
}

.tips-section h3 {
    color: #047857;
    border-bottom-color: #10b981;
}

.content-section h4 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.content-section p {
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.interest-area-header {
    color: #1e40af !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    margin: 1rem 0 0.75rem 0 !important;
    padding: 0.5rem 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.news-summary {
    font-weight: normal !important;
    color: #4b5563;
}

.content-section a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

.content-section a:hover {
    text-decoration: underline;
}

.news-link, .tips-link { /* Subtle arrow link styling */
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
}

.news-link:hover, .tips-link:hover {
    color: #3b82f6;
    transform: translateX(2px);
    text-decoration: none;
}

.tips-link:hover {
    color: #10b981;
}

.disease-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    margin: 1.5rem 0;
    opacity: 0.6;
}

.news-section .disease-divider {
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}

.tips-section .disease-divider {
    background: linear-gradient(90deg, transparent, #10b981, transparent);
}

.no-interests-message {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 2px dashed #cbd5e1;
}



.no-interests-message h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.no-interests-message p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.error-message {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #fecaca;
}

.error-message h3 {
    color: #dc2626;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.error-message p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-delete {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete:hover {
    background: #e5e7eb;
    color: #4b5563;
    border-color: #9ca3af;
}

/* Confirmation Dialog */
.confirm-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.confirm-dialog-overlay.show {
    opacity: 1;
}

.confirm-dialog {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.confirm-dialog-overlay.show .confirm-dialog {
    transform: scale(1);
}

.confirm-dialog-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.confirm-dialog-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.confirm-dialog-content {
    padding: 1.5rem;
}

.confirm-dialog-content p {
    margin: 0 0 1rem 0;
    color: #6b7280;
    line-height: 1.6;
}

.visit-preview {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #60a5fa;
}

.visit-preview strong {
    color: #1f2937;
    display: block;
    margin-bottom: 0.5rem;
}

.visit-preview span {
    color: #6b7280;
    display: block;
    margin-bottom: 0.25rem;
}

.warning-text {
    color: #dc2626 !important;
    font-weight: 500;
    background: #fef2f2;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 4px solid #dc2626;
    margin-top: .1rem !important;
}

.confirm-dialog-actions {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    border-top: 1px solid #e5e7eb;
}

.confirm-dialog-actions .btn-outline {
    background: white;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.confirm-dialog-actions .btn-outline:hover {
    background: #f9fafb;
    color: #374151;
}

.confirm-dialog-actions .btn-delete {
    background: #dc2626;
    color: white;
    border: 1px solid #dc2626;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
}

.confirm-dialog-actions .btn-delete:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

.success-message.fade-out {
    transform: translateX(100%);
}

.success-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* Removed sidebar toggle enforcement */

/* Removed sidebar toggle hover */

/* Removed toggle icon style */

/* Ensure sidebar overflow */
.sidebar {
    overflow: visible !important;
    clip-path: none !important;
    position: fixed !important;
    background: #f7fee7 !important;
    width: 208px !important;
}

/* Force lime green background on sidebar */
#sidebar {
    background: #f7fee7 !important;
}

/* Additional specificity */
body .sidebar {
    background: #f7fee7 !important;
}

.sidebar-content {
    overflow-x: visible !important;
    clip-path: none !important;
}

/* Container Header */
.container-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem 0 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

/* Ensure container header has proper padding for demo users */
body.demo-mode .container-header {
    padding: 1.5rem 0 1rem 0 !important;
}

.container-header h2 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.container-header .tagline {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin: 0.5rem 0 0 0;
    text-align: center;
    font-style: italic;
}

/* Professional Visit Summary Layout */
.summary-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0.5rem 0;
}

.summary-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #60a5fa;
    border-radius: 12px;
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.15);
}

.summary-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 0 0 1.5rem 0;
    flex-wrap: wrap;
    padding: 0.5rem;
    border-radius: 6px;
}

.summary-meta-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #60a5fa;
    border-radius: 8px;
    min-width: 140px;
    box-shadow: 0 2px 4px rgba(96, 165, 250, 0.1);
    transition: all 0.2s ease;
}

.summary-meta-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(96, 165, 250, 0.15);
}

.summary-meta-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: none;
    letter-spacing: 0.02em;
}

.summary-meta-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e40af;
}

/* Structured Summary Content */
.summary-sections {
    background: #ffffff;
    border-radius: 8px;
    margin: 0.75rem 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.1);
    border: 1px solid #e5e7eb;
}

.summary-section-header {
    background: linear-gradient(135deg, #f0f8ff 0%, #e0f2fe 100%) !important;
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid #60a5fa !important;
}

.summary-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e40af;
    margin: 0;
    line-height: 1.2;
}

.summary-section-content {
    padding: 1rem 1rem 1.25rem 1rem;
    color: #374151;
    line-height: 1.6;
    background: #ffffff;
}

.summary-section-content ul {
    margin: 0;
    padding-left: 1rem;
}

.summary-section-content li {
    margin-bottom: 0.125rem;
}

.summary-section-content p {
    margin: 0;
}

.summary-section-content p:last-child {
    margin-bottom: 0;
}

/* Summary Actions */
.summary-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.25rem 0 0 0; /* reduce gap above; no extra space below */
    padding: 0; /* remove internal padding */
    border: none; /* remove border */
    border-radius: 0; /* remove rounded corners */
    background: transparent; /* blend into background */
    box-shadow: none; /* remove shadow */
}

.summary-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.summary-action-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.summary-action-btn:active {
    transform: translateY(0);
}

.summary-action-btn.secondary {
    background: #dc2626;
}

.summary-action-btn.secondary:hover {
    background: #b91c1c;
}

.summary-action-btn.outline {
    background: transparent;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.summary-action-btn.outline:hover {
    background: #2563eb;
    color: white;
}

/* Social media style action buttons */
.summary-actions-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.summary-actions-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Feedback widget styling */
.feedback-widget {
    display: flex;
    align-items: center;
    gap: 0.125rem; /* much closer spacing between thumbs */
}

.feedback-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.25rem; /* compact, icon-only */
    background: transparent;
    border: none; /* no surrounding box */
    border-radius: 0;
    color: #6b7280; /* match print/download */
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.feedback-btn:hover {
    background: transparent !important;
    color: #374151;
}

.feedback-btn.active {
    color: #1d4ed8;
    background: rgba(29, 78, 216, 0.1) !important; /* subtle blue background */
    border: 2px solid #1d4ed8 !important; /* thicker blue border */
    transform: scale(1.1); /* slightly larger when selected */
}

/* Remove focus/tap blue highlight */
.feedback-btn:focus,
.feedback-btn:focus-visible,
.feedback-btn:active {
    outline: none;
    box-shadow: none;
    background: transparent !important;
}

.feedback-btn { -webkit-tap-highlight-color: transparent; }

.feedback-separator {
    width: 1px;
    height: 16px;
    background: #e5e7eb;
    margin: 0 0.25rem;
}

/* Icon-only action buttons */
.summary-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.summary-icon-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

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

/* DEBUG colors removed */
.summary-actions { background: #ffffff; }
.summary-actions-left { padding: 0; border-radius: 0; }
.summary-actions-right { padding: 0; border-radius: 0; }
.feedback-widget { background: transparent; padding: 0; border-radius: 0; }
.feedback-btn, .summary-icon-btn { outline: none; }

/* Debug borders removed */

/* Force light mode for summary sections regardless of system preference */
.summary-sections,
.summary-section,
.summary-section-header,
.summary-section-content {
    background: #ffffff !important;
    color: #374151 !important;
}

.summary-section-header {
    background: linear-gradient(135deg, #f0f8ff 0%, #e0f2fe 100%) !important;
}

.summary-section-title {
    color: #1e40af !important;
}

.summary-section-content {
    color: #374151 !important;
}

/* Dark mode support - but override for summary sections */
@media (prefers-color-scheme: dark) {
    .summary-header {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .summary-header h1 {
        color: #f9fafb;
    }
    
    .summary-header p {
        color: #d1d5db;
    }
    
    .summary-meta-item {
        background: #374151;
        border-color: #4b5563;
    }
    
    .summary-meta-label {
        color: #9ca3af;
    }
    
    .summary-meta-value {
        color: #f9fafb;
    }
    
    /* Override dark mode for summary sections - force light mode */
    .summary-sections,
    .summary-section,
    .summary-section-header,
    .summary-section-content {
        background: #ffffff !important;
        color: #374151 !important;
    }
    
    .summary-section-header {
        background: linear-gradient(135deg, #f0f8ff 0%, #e0f2fe 100%) !important;
    }
    
    .summary-section-title {
        color: #1e40af !important;
    }
    
    .summary-section-content {
        color: #374151 !important;
    }
    
    .summary-info-card {
        background: #1f2937;
        border-color: #374151;
    }
    
    .summary-info-card h3 {
        color: #f9fafb;
    }
    
    .summary-info-card p {
        color: #d1d5db;
    }
}

/* Print styles */
@media print {
    .summary-header {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #000000 !important;
        box-shadow: none !important;
    }
    
    .summary-header h1 {
        color: #000000 !important;
    }
    
    .summary-header p {
        color: #000000 !important;
    }
    
    .summary-meta-item {
        background: #f8f9fa !important;
        border: 1px solid #000000 !important;
    }
    
    .summary-meta-label {
        color: #000000 !important;
    }
    
    .summary-meta-value {
        color: #000000 !important;
    }
    
    .summary-section {
        background: #ffffff !important;
        border: 1px solid #000000 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    .summary-section-header {
        background: #f8f9fa !important;
        border-color: #000000 !important;
    }
    
    .summary-section-title {
        color: #000000 !important;
    }
    
    .summary-section-content {
        color: #000000 !important;
    }
    
    .summary-info-card {
        background: #ffffff !important;
        border: 1px solid #000000 !important;
        box-shadow: none !important;
    }
    
    .summary-info-card h3 {
        color: #000000 !important;
    }
    
    .summary-info-card p {
        color: #000000 !important;
    }
    
    .summary-actions {
        display: none !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .summary-content {
        padding: 0.25rem 0;
    }
    
    .summary-header {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .summary-meta {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .summary-meta-item {
        padding: 0.375rem 0.5rem;
        min-width: 70px;
    }
    
    .summary-section-header {
        padding: 0.125rem 0.5rem !important;
    }
    
    .summary-section-content {
        padding: 0.125rem 0.5rem 0.25rem 0.5rem;
    }
    
    .summary-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.375rem;
    }
    
    .summary-action-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
        padding: 0.375rem 0.75rem;
    }
}

/* Password Requirements Styles - Inline */
.password-requirements {
    margin-top: 0.5rem;
}

.password-strength {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.strength-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 3px;
}

.strength-fill.weak { background: #ef4444; }
.strength-fill.fair { background: #f59e0b; }
.strength-fill.good { background: #3b82f6; }
.strength-fill.strong { background: #10b981; }

.strength-text {
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 80px;
}

.strength-text.weak { color: #ef4444; }
.strength-text.fair { color: #f59e0b; }
.strength-text.good { color: #3b82f6; }
.strength-text.strong { color: #10b981; }

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem 0;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.requirement.valid {
    color: #10b981;
}

.requirement-icon {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.requirement.valid .requirement-icon {
    color: #10b981;
}

@media (max-width: 480px) {
    .password-requirements {
        padding: 0.75rem;
    }
    
    .password-strength {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .strength-text {
        text-align: center;
        min-width: auto;
    }
}

.coming-soon-message {
    text-align: center;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.coming-soon-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.coming-soon-message h2 {
    color: #333;
    margin-bottom: 16px;
    font-size: 28px;
}

.coming-soon-message p {
    color: #666;
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 1.6;
}

.coming-soon-features {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.coming-soon-features h3 {
    color: #333;
    margin-bottom: 16px;
    font-size: 20px;
}

.coming-soon-features ul {
    list-style: none;
    padding: 0;
}

.coming-soon-features li {
    color: #666;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.coming-soon-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #84cc16;
    font-weight: bold;
}

.contact-us-content .coming-soon-message {
    text-align: center;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-us-content .coming-soon-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.contact-us-content .coming-soon-message h2 {
    color: #333;
    margin-bottom: 16px;
    font-size: 28px;
}

.contact-us-content .coming-soon-message p {
    color: #666;
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 1.6;
}

.contact-us-content .coming-soon-features {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.contact-us-content .coming-soon-features h3 {
    color: #333;
    margin-bottom: 16px;
    font-size: 20px;
}

.contact-us-content .coming-soon-features ul {
    list-style: none;
    padding: 0;
}

.contact-us-content .coming-soon-features li {
    color: #666;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.contact-us-content .coming-soon-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #84cc16;
    font-weight: bold;
}

/* Placeholder Pages Styles */
.placeholder-content {
    width: 100%;
    margin: 0;
    padding: 0;
}

.placeholder-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.placeholder-card h2 {
    color: #333;
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 600;
}

.placeholder-card p {
    color: #666;
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 1.6;
}

.placeholder-features {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.placeholder-features h3 {
    color: #333;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

.placeholder-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.placeholder-features li {
    color: #666;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
}

.placeholder-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #84cc16;
    font-weight: bold;
    font-size: 14px;
}
