/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    /* Primary - deeper, richer blue */
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #dbeafe;
    --primary-lighter: #eff6ff;

    /* Secondary - warmer gray (zinc family) */
    --secondary: #52525b;

    /* Success */
    --success: #16a34a;
    --success-light: #dcfce7;

    /* Warning - amber accent */
    --warning: #d97706;
    --warning-light: #fef3c7;

    /* Danger - softer approach */
    --danger: #dc2626;
    --danger-light: #fef2f2;
    --danger-text: #991b1b;

    /* Backgrounds - warmer tones */
    --bg: #fafaf9;
    --bg-white: #ffffff;

    /* Text - warmer grays (zinc) */
    --text: #18181b;
    --text-light: #71717a;
    --text-muted: #a1a1aa;

    /* Borders - warmer */
    --border: #e4e4e7;
    --border-light: #f4f4f5;

    /* Shadows - refined depth */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);

    /* Border radius */
    --radius: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 0 1rem;
    position: relative;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all var(--transition);
}

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

.nav-links a.btn-primary {
    color: white;
}

.nav-links a.btn-primary:hover {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

/* Main content */
main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
}

/* Expand main when map is visible */
main:has(.map-visible) {
    max-width: 1600px;
}

/* Footer */
footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 1rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: linear-gradient(180deg, #2563eb 0%, var(--primary) 100%);
    color: white;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: var(--shadow-xs);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

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

.btn-secondary:hover:not(.btn-disabled) {
    background: var(--bg);
    border-color: var(--text-muted);
    box-shadow: var(--shadow);
}

.btn-secondary:active:not(.btn-disabled) {
    box-shadow: none;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading spinner - hidden by default */
.btn-loading {
    display: none !important;
}

.btn-text {
    display: inline;
}

/* Show loading state only during HTMX request */
#search-btn.htmx-request .btn-text,
.htmx-request #search-btn .btn-text {
    display: none !important;
}

#search-btn.htmx-request .btn-loading,
.htmx-request #search-btn .btn-loading {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hero section */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
}

.hero h1 {
    font-size: 2.5rem;
    margin: 0 0 1rem;
    color: var(--text);
    letter-spacing: -0.025em;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.feature:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature h3 {
    margin: 0 0 0.5rem;
    color: var(--primary);
}

.feature p {
    margin: 0;
    color: var(--text-light);
}

/* Data info */
.data-info {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.data-info h2 {
    margin: 0 0 1rem;
}

.data-info ul {
    margin: 0;
    padding-left: 1.25rem;
}

.data-info li {
    margin-bottom: 0.5rem;
}

/* Search page */
.search-page h1 {
    margin: 0 0 1.5rem;
}

/* Forms */
form {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 150px;
}

.form-group-wide {
    flex: 2;
    min-width: 300px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input,
.form-group select {
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Multi-select dropdowns */
.multi-select {
    min-height: 100px;
}

.multi-select option {
    padding: 0.25rem 0.5rem;
}

.multi-select option:checked {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.form-actions {
    margin-top: 1rem;
}

/* Results Header */
.results-header {
    margin-bottom: 1rem;
}

.results-summary {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.results-count {
    font-size: 1.125rem;
    color: var(--text);
}

.results-showing {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Table Container - Desktop */
.table-container {
    overflow-x: auto;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.results-table th,
.results-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.results-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.results-table th {
    background: var(--bg);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--text-light);
    white-space: nowrap;
}

.results-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.results-table th.sortable:hover {
    background: var(--border);
}

.sort-indicator {
    margin-left: 0.25rem;
    color: var(--primary);
}

.results-table th.num,
.results-table td.num {
    text-align: right;
}

.results-table th.volume-col {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.results-table tbody tr:hover {
    background: var(--bg);
}

.provider-name {
    font-weight: 600;
    color: var(--text);
}

.provider-npi {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.provider-address,
.provider-city,
.provider-phone {
    font-size: 0.875rem;
    color: var(--text-light);
}

.specialty-badge {
    display: inline-block;
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* Volume highlighting */
.volume-cell {
    font-weight: 600;
}

.volume-value {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
}

.volume-value.high-volume {
    background: var(--success-light);
    color: #166534;
}

.volume-value.medium-volume {
    background: var(--warning-light);
    color: #92400e;
}

/* Mobile Card View */
.cards-container {
    flex-direction: column;
    gap: 1rem;
}

.provider-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.card-header .provider-name {
    font-size: 1rem;
}

.volume-badge {
    flex-shrink: 0;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary-dark);
}

.volume-badge.high-volume {
    background: var(--success-light);
    color: #166534;
}

.volume-badge.medium-volume {
    background: var(--warning-light);
    color: #92400e;
}

.card-body {
    padding: 1rem;
}

.card-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.card-row:last-child {
    border-bottom: none;
}

.card-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.card-value {
    font-size: 0.875rem;
    color: var(--text);
    text-align: right;
}

.card-value.npi {
    font-family: monospace;
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* Mobile/Desktop view toggles - use !important to override component styles */
.mobile-view {
    display: none !important;
}

.desktop-view {
    display: block !important;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.page-info {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* No results / Search prompt */
.no-results,
.search-prompt {
    background: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
}

.no-results-icon,
.prompt-icon {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.no-results h3,
.search-prompt h3 {
    margin: 0 0 0.5rem;
    color: var(--text);
}

.no-results p,
.search-prompt p {
    color: var(--text-light);
    margin: 0 0 1rem;
}

.suggestions {
    text-align: left;
    max-width: 400px;
    margin: 1.5rem auto 0;
    background: var(--bg);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
}

.suggestions ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.suggestions li {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Example codes grid */
.example-codes {
    margin-top: 1.5rem;
}

.code-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    text-align: left;
}

.code-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border-radius: var(--radius);
}

.code-item code {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.code-item span {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Error message */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.error-message strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .form-row {
        flex-direction: column;
    }

    .form-group,
    .form-group-wide {
        min-width: 100%;
    }

    /* Switch to mobile card view */
    .mobile-view {
        display: flex !important;
    }

    .desktop-view {
        display: none !important;
    }

    nav {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
        gap: 0.5rem;
    }

    .results-summary {
        flex-direction: column;
        gap: 0.25rem;
    }

    .pagination {
        gap: 0.5rem;
    }

    .code-grid {
        grid-template-columns: 1fr;
    }
}

/* HTMX loading states */
.htmx-request #results-container {
    opacity: 0.6;
    pointer-events: none;
}

/* Provider Detail Page */
.provider-page {
    max-width: 900px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--primary-dark);
}

.provider-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.provider-header-main h1 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    color: var(--text);
}

.provider-specialty {
    color: var(--text-light);
    font-size: 1.125rem;
}

.provider-npi-badge {
    background: var(--bg);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--text-light);
    white-space: nowrap;
}

.provider-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    padding: 1.5rem;
}

.info-card h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.info-label {
    color: var(--text-light);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.info-value {
    color: var(--text);
    font-size: 0.875rem;
    text-align: right;
}

.info-value.mono {
    font-family: monospace;
}

.procedures-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.procedures-section h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0 0 1.5rem;
}

.procedures-table {
    width: 100%;
    border-collapse: collapse;
}

.procedures-table th,
.procedures-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.procedures-table th {
    background: var(--bg);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--text-light);
}

.procedures-table th.num,
.procedures-table td.num {
    text-align: right;
}

.procedures-table tbody tr:hover {
    background: var(--bg);
}

.code-cell code {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.no-procedures {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

/* Provider Detail Page Map */
.provider-location-map {
    margin-top: 1rem;
    height: 200px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* Provider name link in search results - always styled as link */
.provider-name-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.provider-name-link:hover {
    text-decoration-thickness: 2px;
}

@media (max-width: 768px) {
    .provider-header {
        flex-direction: column;
    }

    .provider-header-main h1 {
        font-size: 1.5rem;
    }

    .info-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .info-value {
        text-align: left;
    }

    .procedures-table {
        font-size: 0.875rem;
    }

    .procedures-table th,
    .procedures-table td {
        padding: 0.5rem;
    }
}

/* Authentication Pages */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
}

.auth-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.auth-card h1 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: var(--text-light);
    margin: 0 0 1.5rem;
    font-size: 0.875rem;
}

.auth-form {
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin-bottom: 1rem;
}

.btn-full {
    width: 100%;
}

.auth-link {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 1rem 0 0;
}

.auth-link a {
    color: var(--primary);
    text-decoration: none;
}

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

.success-message {
    background: var(--success-light);
    border: 1px solid var(--success);
    color: #166534;
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.success-message p {
    margin: 0;
}

.info-message {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.info-message p {
    margin: 0;
}

.subscription-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.account-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Saved Searches Page */
.searches-page {
    max-width: 800px;
    margin: 0 auto;
}

.searches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.searches-header h1 {
    margin: 0;
}

.saved-search-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all var(--transition);
}

.saved-search-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}

.saved-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.saved-search-name {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text);
}

.saved-search-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.saved-search-actions form {
    display: inline-flex;
}

.saved-search-details {
    color: var(--text-light);
    font-size: 0.875rem;
}

.saved-search-details span {
    display: inline-block;
    margin-right: 1rem;
}

.saved-search-details code {
    background: var(--bg);
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-size: 0.8125rem;
}

.no-searches {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-light);
}

.no-searches h3 {
    margin: 0 0 0.5rem;
    color: var(--text);
}

.no-searches p {
    margin: 0;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-danger {
    background: var(--danger-light);
    color: var(--danger-text);
    border: 1px solid #fecaca;
    box-shadow: none;
}

.btn-danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: var(--danger);
}

/* Save Search Modal */
.save-search-form {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--primary-light);
    border-radius: var(--radius);
}

.save-search-form .form-group {
    flex: 1;
    margin: 0;
}

.save-search-form label {
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
}

.save-search-form input {
    padding: 0.5rem;
}

/* User menu in nav */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-email {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Results header with save button */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

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

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
}

.modal-content h3 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Industry Payments Section */
.payments-section {
    margin-top: 2rem;
}

.payments-section h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.payments-summary {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius);
}

.payments-total {
    font-size: 1.125rem;
}

.payments-table {
    width: 100%;
    border-collapse: collapse;
}

.payments-table th,
.payments-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.payments-table th {
    background: var(--bg);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--text-light);
}

.payments-table th.num,
.payments-table td.num {
    text-align: right;
}

.payments-table tbody tr:hover {
    background: var(--bg);
}

.company-name {
    font-weight: 500;
}

.payment-amount {
    font-weight: 600;
    font-family: var(--font-mono);
}

.payment-amount.high-payment {
    color: #dc2626;
}

.payment-amount.medium-payment {
    color: #d97706;
}

.payment-type {
    font-size: 0.875rem;
    color: var(--text-light);
}

.product-name {
    font-size: 0.875rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-source {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
}

.no-payments {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.no-payments small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .payments-table {
        font-size: 0.875rem;
    }

    .payments-table th,
    .payments-table td {
        padding: 0.5rem;
    }

    .product-name {
        max-width: 120px;
    }
}

/* Map Toggle Checkbox */
.map-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--bg);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s;
    user-select: none;
}

.map-toggle:hover {
    color: var(--text);
    background: var(--border);
}

.map-toggle:has(input:checked) {
    background: var(--primary-light);
    color: var(--primary);
}

.map-toggle input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.map-toggle svg {
    width: 16px;
    height: 16px;
}

/* Provider row interaction */
.provider-row {
    cursor: pointer;
    transition: background-color 0.15s;
}

.provider-row:hover {
    background: var(--bg) !important;
}

.provider-row.highlighted {
    background: var(--primary-light) !important;
}

.provider-row.highlighted td {
    border-color: var(--primary);
}

/* Split Layout for List + Map */
.results-split {
    display: block;
    width: 100%;
}

.results-split.map-visible {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0;
    align-items: stretch;
    width: 100%;
}

.results-split.map-visible .results-list-panel {
    flex: 0 0 calc(50% - 6px);
    min-width: 20%;
    max-width: 75%;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
    padding-right: 0.5rem;
}

.results-split.map-visible .results-map-panel {
    flex: 0 0 calc(50% - 6px);
    min-width: 20%;
    max-width: 75%;
}

.results-list-panel {
    width: 100%;
}

.results-map-panel {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Resizable divider - only visible when map is shown */
.split-resizer {
    flex: 0 0 12px !important;
    min-width: 12px !important;
    width: 12px !important;
    align-items: center;
    justify-content: center;
    cursor: col-resize;
    background: var(--bg);
    position: relative;
    z-index: 100;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    transition: background 0.15s;
}

/* Only show resizer when map is visible */
.results-split.map-visible .split-resizer {
    display: flex !important;
}

.split-resizer:hover {
    background: var(--primary-light);
}

.resizer-handle {
    width: 6px;
    height: 48px;
    background: var(--secondary);
    border-radius: 3px;
    transition: background 0.2s, height 0.2s;
    position: relative;
}

/* Add grip dots to the handle */
.resizer-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 24px;
    background: repeating-linear-gradient(
        to bottom,
        var(--bg-white) 0px,
        var(--bg-white) 2px,
        transparent 2px,
        transparent 6px
    );
}

.split-resizer:hover .resizer-handle {
    background: var(--primary);
    height: 64px;
}

.split-resizer:active .resizer-handle {
    background: var(--primary-dark);
    height: 80px;
}

#provider-map {
    width: 100%;
    height: calc(100vh - 6rem);
    min-height: 400px;
    max-height: 700px;
    z-index: 1;
}

.map-cap-notice {
    background: var(--warning-light);
    color: #92400e;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    text-align: center;
    border-bottom: 1px solid #fde68a;
}

.map-no-coords {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.map-no-coords svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.map-no-coords h3 {
    margin: 0 0 0.5rem;
    color: var(--text);
}

.map-no-coords p {
    margin: 0 0 0.5rem;
}

/* Map Popup Styles */
.map-popup {
    min-width: 200px;
}

.map-popup .popup-name {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.map-popup .popup-name:hover {
    text-decoration: underline;
}

.map-popup .popup-specialty {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.map-popup .popup-location {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.map-popup .popup-volume {
    font-size: 0.875rem;
    color: var(--text);
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

/* Override Leaflet popup styles */
.leaflet-popup-content-wrapper {
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-lg) !important;
}

.leaflet-popup-content {
    margin: 0.75rem 1rem !important;
}

.leaflet-popup-close-button {
    top: 6px !important;
    right: 6px !important;
}

/* Responsive Map - only stack on small screens */
@media (max-width: 768px) {
    .results-split.map-visible {
        flex-direction: column !important;
    }

    .split-resizer {
        display: none !important;
    }

    .results-split.map-visible .results-list-panel {
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
        max-height: none !important;
        overflow-y: visible !important;
        padding-right: 0 !important;
    }

    .results-split.map-visible .results-map-panel {
        flex: none !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        position: relative;
        top: 0;
        max-height: none;
        order: -1; /* Map above list on mobile */
        margin-bottom: 1rem;
    }

    #provider-map {
        height: 350px;
        min-height: 300px;
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .map-toggle {
        padding: 0.375rem 0.5rem;
        font-size: 0.8125rem;
    }

    .map-toggle span {
        display: none;
    }

    .results-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .provider-card.highlighted {
        border: 2px solid var(--primary);
        background: var(--primary-light) !important;
    }

    #provider-map {
        height: 300px;
        min-height: 250px;
    }
}

/* Code Discovery UI */
.code-input-container {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    padding: 0.5rem;
    min-height: 44px;
}

.code-input-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.selected-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.375rem;
}

.selected-codes:empty {
    display: none;
}

.selected-codes:empty + input {
    margin-top: 0;
}

.code-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, monospace;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.code-chip:hover {
    background: var(--primary);
    color: white;
}

.code-chip button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.code-chip button:hover {
    opacity: 1;
}

.code-input-container input[type="text"] {
    border: none;
    width: 100%;
    padding: 0.25rem;
    font-size: 1rem;
    outline: none;
}

.code-search-results {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    margin-top: 0.5rem;
}

.code-result {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    border-bottom: 1px solid var(--border);
}

.code-result:last-child {
    border-bottom: none;
}

.code-result:hover {
    background: var(--bg);
}

.code-result.no-results {
    color: var(--text-light);
    cursor: default;
}

.code-result.no-results:hover {
    background: transparent;
}

.code-result-code {
    font-weight: 600;
    color: var(--primary);
    flex-shrink: 0;
    font-family: monospace;
}

.code-result-desc {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.code-result-cat {
    font-size: 0.75rem;
    color: var(--text-light);
    flex-shrink: 0;
}

.code-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.code-actions small {
    margin-left: auto;
}

.codes-preview {
    background: var(--bg);
    padding: 0.5rem;
    border-radius: var(--radius);
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Code Sets List in Modal */
.code-sets-list {
    max-height: 300px;
    overflow-y: auto;
}

.code-set-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.code-set-item:hover {
    background: var(--bg);
}

.code-set-name {
    font-weight: 500;
    color: var(--text);
}

.code-set-count {
    font-size: 0.875rem;
    color: var(--text-light);
}

.no-sets {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}

/* Code Sets Management Page */
.code-sets-page {
    max-width: 900px;
    margin: 0 auto;
}

.code-sets-page h1 {
    margin: 0 0 0.5rem;
}

.page-description {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.code-sets-grid {
    display: grid;
    gap: 1rem;
}

.code-set-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    padding: 1.25rem;
    transition: all var(--transition);
}

.code-set-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--border);
}

.code-set-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.code-set-card .code-set-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.code-set-codes {
    background: var(--bg);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, monospace;
    font-size: 0.875rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    word-break: break-all;
    border: 1px solid var(--border-light);
}

.code-set-meta {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.code-set-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.empty-state {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 3rem 2rem;
    text-align: center;
}

.empty-state h3 {
    margin: 0 0 0.5rem;
    color: var(--text);
}

.empty-state p {
    color: var(--text-light);
    margin: 0 0 0.5rem;
}

.empty-state a {
    color: var(--primary);
}

/* Providers Search Page */
.providers-page h1 {
    margin: 0 0 1.5rem;
}

.search-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.search-input-wrapper input {
    flex: 1;
}

.search-input-wrapper .btn {
    flex-shrink: 0;
}

.provider-results-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.providers-page .provider-card {
    display: block;
    text-decoration: none;
    padding: 1rem;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.providers-page .provider-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}

.providers-page .provider-name {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.providers-page .provider-specialty {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.providers-page .provider-location {
    font-size: 0.875rem;
    color: var(--text-light);
}

.provider-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
}

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

.badge-warning {
    background: var(--warning-light);
    color: #92400e;
}

.search-prompt .hint {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Trial Banner */
.trial-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.875rem;
    font-weight: 500;
}

.trial-banner.trial-expired {
    background: #fef2f2;
    color: #991b1b;
}

/* Landing Page */
body.is-landing {
    background: var(--bg-white);
    overflow-x: hidden;
}

body.is-landing header {
    padding: 0;
}

body.is-landing nav {
    max-width: none;
    padding: 0 3rem;
}

body.is-landing main {
    max-width: none;
    padding: 0;
    overflow: visible;
}

.landing-page {
    width: 100%;
    position: relative;
    overflow: visible;
}

.landing-hero {
    position: relative;
    min-height: 520px;
    padding: 5rem 0;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg) 100%);
    overflow: visible;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 660px;
    margin: 0;
    padding-left: 8rem;
    padding-right: 2rem;
    text-align: left;
}

.hero-globe {
    position: absolute;
    right: -450px;
    top: 50%;
    transform: translateY(-50%);
    width: 1200px;
    height: 1200px;
    z-index: 10;
    opacity: 0.9;
    pointer-events: none;
}

.hero-globe canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.landing-hero h1 {
    font-size: 3.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1.25rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin: 0 0 2rem;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--radius-md);
}

.cta-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

.landing-section {
    padding: 5rem 3rem;
    position: relative;
    z-index: 1;
}

.landing-section h2 {
    font-size: 2.25rem;
    text-align: center;
    margin: 0 0 1rem;
    letter-spacing: -0.025em;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
}

/* Problem/Solution Section */
.problem-section {
    background: var(--bg-white);
    position: relative;
    z-index: 1;
}

.problem-content {
    max-width: 1000px;
    margin: 0 auto;
}

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

.comparison-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--bg);
}

.comparison-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
}

.comparison-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.comparison-card ul {
    margin: 0;
    padding-left: 1.25rem;
}

.comparison-card li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.comparison-them .price {
    color: #991b1b;
}

.comparison-us {
    background: var(--primary-light);
    border: 2px solid var(--primary);
}

.comparison-us .price {
    color: var(--primary);
}

/* Features Section */
.features-section {
    background: var(--bg);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--border);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* Pricing Preview (Landing) */
.pricing-preview {
    text-align: center;
    background: var(--bg);
}

.pricing-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.pricing-preview-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    text-align: center;
    position: relative;
    transition: all var(--transition);
}

.pricing-preview-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.pricing-preview-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.pricing-preview-card.featured:hover {
    transform: scale(1.05) translateY(-2px);
}

.pricing-preview-card .featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-preview-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
}

.pricing-preview-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.pricing-preview-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
}

.pricing-preview-card p {
    margin: 0.5rem 0 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Final CTA */
.final-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 5rem 3rem;
}

.final-cta h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.final-cta p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.final-cta .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.final-cta .btn-primary:hover {
    background: var(--bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Pricing Page */
.pricing-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h1 {
    font-size: 2.25rem;
    margin: 0 0 0.5rem;
}

.pricing-header p {
    color: var(--text-light);
    font-size: 1.125rem;
    margin: 0;
}

.trial-expired-notice {
    background: #fef2f2;
    color: #991b1b;
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1rem;
}

/* Billing Toggle */
.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.toggle-label {
    font-size: 0.9375rem;
    color: var(--text-light);
    transition: color 0.2s;
}

.toggle-label.active {
    color: var(--text);
    font-weight: 500;
}

.save-badge {
    background: var(--success-light);
    color: #166534;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: 0.3s;
    border-radius: 999px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

input:checked + .toggle-slider {
    background-color: var(--primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Pricing Cards */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}

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

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured:hover {
    box-shadow: var(--shadow-xl);
}

.pricing-card .featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.pricing-card .card-header {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 1rem;
}

.pricing-card .card-header h2 {
    font-size: 1.5rem;
    margin: 0 0 0.25rem;
    text-align: left;
}

.card-description {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin: 0;
}

.card-price {
    margin-bottom: 1.5rem;
}

.card-price .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
}

.card-price .period {
    font-size: 1rem;
    color: var(--text-light);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9375rem;
}

.feature-list li.included::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 600;
}

.feature-list li.not-included {
    color: var(--text-light);
    text-decoration: line-through;
}

.feature-list li.not-included::before {
    content: "×";
    position: absolute;
    left: 0;
    color: var(--text-light);
}

.feature-list li.coming-soon::before {
    content: "○";
    position: absolute;
    left: 0;
    color: var(--warning);
}

.feature-list li.coming-soon::after {
    content: "Soon";
    background: var(--warning-light);
    color: #92400e;
    font-size: 0.6875rem;
    padding: 0.125rem 0.375rem;
    border-radius: 999px;
    margin-left: 0.5rem;
}

.feature-list li.highlight {
    font-weight: 500;
    color: var(--primary);
}

.pricing-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-bottom: 3rem;
}

/* Pricing FAQ */
.pricing-faq {
    max-width: 800px;
    margin: 0 auto;
}

.pricing-faq h2 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.faq-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.faq-item h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

.faq-item p {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin: 0;
}

/* Billing Page */
.billing-page {
    max-width: 800px;
    margin: 0 auto;
}

.billing-page h1 {
    margin: 0 0 1.5rem;
}

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

.billing-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.billing-card h2 {
    font-size: 1.125rem;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.plan-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 600;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: var(--success-light);
    color: #166534;
}

.status-trial {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.status-canceled {
    background: var(--warning-light);
    color: #92400e;
}

.status-expired {
    background: #fef2f2;
    color: #991b1b;
}

.plan-details {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.plan-price {
    margin-top: 1rem;
}

.plan-price .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
}

.plan-price .period {
    color: var(--text-light);
}

.plan-price .total-price {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 600;
}

.change-plan-link {
    margin-top: 1rem;
    text-align: center;
}

.change-plan-link a {
    color: var(--primary);
    font-size: 0.875rem;
}

.billing-section {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.billing-section h2 {
    font-size: 1.125rem;
    margin: 0 0 1rem;
}

.features-included ul {
    margin: 0;
    padding-left: 1.25rem;
}

.features-included li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.upgrade-prompt {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.upgrade-prompt p {
    margin: 0;
    color: var(--text);
}

/* Export Button */
.export-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.export-btn.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.export-btn .pro-badge {
    background: var(--warning-light);
    color: #92400e;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .landing-hero {
        min-height: auto;
        padding: 3rem 1.5rem;
    }

    .hero-content {
        text-align: center;
        margin-left: 0;
        padding: 0;
        max-width: 100%;
    }

    .hero-cta {
        align-items: center;
    }

    .hero-globe {
        display: none;
    }

    .landing-hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .pricing-preview-card.featured {
        transform: none;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        order: -1;
    }

    .billing-grid {
        grid-template-columns: 1fr;
    }

    .upgrade-prompt {
        flex-direction: column;
        text-align: center;
    }

    .data-sources-section {
        padding: 3rem 1.5rem;
    }

    .final-cta {
        padding: 3rem 1.5rem;
    }
}

/* Export Button */
.export-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.export-btn svg {
    flex-shrink: 0;
}

.export-locked {
    opacity: 0.7;
    cursor: pointer;
}

.export-locked:hover {
    opacity: 0.9;
}

.pro-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 4px;
}

/* Admin Styles */
.admin-link {
    background: #dc2626 !important;
    color: white !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: var(--radius) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
}

.admin-link:hover {
    background: #b91c1c !important;
}

.admin-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-header h1 {
    margin: 0 0 0.5rem;
}

.admin-header p {
    color: var(--text-light);
    margin: 0;
}

.back-link {
    display: inline-block;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-decoration: none;
}

.back-link:hover {
    color: var(--primary);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

.admin-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.admin-section h2 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.8125rem;
    text-transform: uppercase;
}

.admin-table tr:hover {
    background: var(--bg);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-email {
    color: var(--text-light);
    font-size: 0.8125rem;
}

.tier-badge,
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tier-badge.tier-starter {
    background: var(--bg);
    color: var(--text);
}

.tier-badge.tier-professional {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.tier-badge.tier-team {
    background: #f3e8ff;
    color: #7e22ce;
}

.status-badge.status-trial {
    background: var(--warning-light);
    color: #92400e;
}

.status-badge.status-active {
    background: var(--success-light);
    color: #166534;
}

.status-badge.status-expiring {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.status-canceled,
.status-badge.status-expired {
    background: #fee2e2;
    color: #991b1b;
}

/* Admin User Detail */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.admin-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.admin-card h2 {
    margin: 0 0 1rem;
    font-size: 1.125rem;
}

.admin-card h3 {
    margin: 1.5rem 0 0.75rem;
    font-size: 1rem;
    color: var(--text-light);
}

.admin-card h3:first-of-type {
    margin-top: 0;
}

.info-grid {
    display: grid;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.info-item span {
    font-size: 0.9375rem;
}

.monospace {
    font-family: monospace;
    font-size: 0.8125rem;
    word-break: break-all;
}

.form-hint {
    color: var(--text-light);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.stripe-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.stripe-info h3 {
    margin-top: 0;
}

.data-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.data-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

.data-list li:last-child {
    border-bottom: none;
}

.data-list .date {
    color: var(--text-light);
    font-size: 0.8125rem;
}

.no-data {
    color: var(--text-light);
    font-style: italic;
}

.danger-zone {
    border: 2px solid #fee2e2;
    background: #fffbfb;
}

.danger-zone h2 {
    color: var(--danger-text);
}

.danger-zone p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Note: .btn-danger is defined above - this is for standalone danger buttons in danger-zone */
.danger-zone .btn-danger {
    padding: 0.5rem 1rem;
}

.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.alert-success {
    background: var(--success-light);
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: var(--danger-light);
    color: var(--danger-text);
    border: 1px solid #fecaca;
}

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

    .admin-table {
        font-size: 0.875rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
}

/* ============================================
   FOOTER STYLES (Compact)
   ============================================ */

.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    margin-top: auto;
    padding: 1rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand {
    font-weight: 600;
    color: var(--text);
}

.footer-sep {
    color: var(--text-light);
}

.footer-row a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
}

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

.footer-note {
    color: var(--text-light);
    font-size: 0.75rem;
    margin: 0;
}

/* ============================================
   LOADING STATES FOR FORMS
   ============================================ */

.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
}

.btn-primary.loading::after {
    border-top-color: white;
}

.btn-secondary.loading::after {
    border-top-color: var(--text);
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   LEGAL PAGES (Privacy, Terms)
   ============================================ */

.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.legal-page h1 {
    font-size: 2rem;
    margin: 0 0 0.5rem;
    color: var(--text);
}

.legal-updated {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
    color: var(--text);
}

.legal-section p {
    color: var(--text);
    line-height: 1.7;
    margin: 0 0 0.75rem;
}

.legal-section ul {
    margin: 0 0 0.75rem;
    padding-left: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text);
}

.legal-section a {
    color: var(--primary);
}

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

/* ============================================
   DATA SOURCES SECTION (Landing Page)
   ============================================ */

.data-sources-section {
    background: var(--bg-white);
    padding: 5rem 3rem;
}

.data-sources-section h2 {
    text-align: center;
    font-size: 2rem;
    margin: 0 0 0.5rem;
    letter-spacing: -0.025em;
}

.data-sources-section > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
}

.data-sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.data-source-card {
    padding: 1.5rem;
    background: var(--bg);
    border-radius: var(--radius);
}

.data-source-card h3 {
    font-size: 1.125rem;
    margin: 0 0 0.5rem;
    color: var(--text);
}

.data-source-card .source-what {
    color: var(--text);
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
}

.data-source-card .source-from {
    color: var(--text-light);
    font-size: 0.8125rem;
    margin: 0;
}

.data-sources-disclaimer {
    text-align: center;
    color: var(--text-light);
    font-size: 0.8125rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* ============================================
   SPRINT 7: WATCHLISTS & CODE SEARCH VOLUME
   ============================================ */

/* Watchlists Page */
.watchlists-page {
    max-width: 900px;
    margin: 0 auto;
}

.watchlists-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.watchlists-page h1 {
    margin: 0;
}

.watchlists-grid {
    display: grid;
    gap: 1rem;
}

.watchlist-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.25rem;
}

.watchlist-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.watchlist-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.watchlist-count {
    font-size: 0.875rem;
    color: var(--text-light);
    background: var(--bg);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
}

.watchlist-meta {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

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

/* Watchlist Detail Page */
.watchlist-detail-page {
    max-width: 1100px;
    margin: 0 auto;
}

.watchlist-detail-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.breadcrumb {
    font-size: 0.9375rem;
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.watchlist-stats {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.providers-table-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.providers-table {
    width: 100%;
    border-collapse: collapse;
}

.providers-table th,
.providers-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.providers-table th {
    background: var(--bg);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--text-light);
}

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

.providers-table .provider-link {
    font-weight: 500;
    color: var(--primary);
}

.providers-table .provider-npi {
    font-size: 0.75rem;
    color: var(--text-light);
    font-family: monospace;
}

.providers-table .notes-display {
    color: var(--text-light);
}

.providers-table .edit-notes-btn {
    margin-left: 0.5rem;
    opacity: 0;
    transition: opacity 0.15s;
}

.providers-table tr:hover .edit-notes-btn {
    opacity: 1;
}

/* Watchlist Picker Modal */
.watchlist-picker {
    max-width: 380px;
}

.picker-provider-name {
    font-weight: 500;
    color: var(--text);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.watchlist-options {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.watchlist-options .loading,
.watchlist-options .error,
.watchlist-options .no-watchlists {
    padding: 1rem;
    text-align: center;
    color: var(--text-light);
}

.watchlist-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.15s;
}

.watchlist-option:hover {
    background: var(--bg);
    border-color: var(--primary);
}

.watchlist-option .watchlist-name {
    font-size: 0.9375rem;
    font-weight: 500;
}

.watchlist-option .watchlist-count {
    font-size: 0.75rem;
    background: none;
    padding: 0;
}

.new-watchlist-row {
    display: flex;
    gap: 0.5rem;
}

.new-watchlist-row input {
    flex: 1;
}

/* Locked Nav Link */
.nav-locked {
    color: var(--text-light) !important;
    position: relative;
}

.nav-locked::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* Code Search Volume Badge */
.code-result-volume {
    font-size: 0.75rem;
    color: var(--text-light);
    background: var(--bg);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius);
    margin-left: auto;
    white-space: nowrap;
}

.code-result {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-result-desc {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Results Table Actions Column */
.actions-col {
    width: 40px;
}

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

.watchlist-add-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 1.25rem;
    line-height: 1;
    border-radius: 50%;
}

.watchlist-add-btn.locked {
    opacity: 0.5;
}

/* Mobile Card Footer */
.card-footer {
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--border);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-success {
    background: var(--success);
}

.toast-warning {
    background: var(--warning);
}

.toast-error {
    background: #ef4444;
}

/* Button sizes */
.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Provider Header Actions */
.provider-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Locked button styling */
.btn.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile responsiveness for watchlist pages */
@media (max-width: 640px) {
    .watchlists-page .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .watchlist-detail-page .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .providers-table-container {
        overflow-x: auto;
    }
    
    .providers-table th,
    .providers-table td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    .provider-header-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ===== Sprint 7 UI Polish ===== */

/* Auth form spacing - more space before login button */
.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .btn-full {
    margin-top: 0.75rem;
}

/* Watchlist picker modal improvements */
.watchlist-picker h3 {
    margin-bottom: 0.75rem;
}

.watchlist-picker .new-watchlist-row {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.watchlist-picker .modal-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Watchlists main page spacing */
.watchlists-page .page-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.watchlist-card {
    padding: 1.5rem;
}

.watchlist-card .watchlist-header {
    margin-bottom: 0.5rem;
}

.watchlist-card .watchlist-meta {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.watchlist-card .watchlist-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Watchlist detail page spacing */
.watchlist-detail-page .breadcrumb {
    margin-bottom: 0.5rem;
}

.watchlist-detail-page .watchlist-stats {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.watchlist-detail-page .page-actions {
    margin-bottom: 1rem;
}

.providers-table-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.providers-table {
    width: 100%;
    border-collapse: collapse;
}

.providers-table th {
    background: var(--bg);
    text-align: left;
    padding: 0.875rem 1rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.providers-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

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

.providers-table .provider-link {
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
}

.providers-table .provider-link:hover {
    text-decoration: underline;
}

.providers-table .provider-npi {
    font-size: 0.75rem;
    color: var(--text-light);
    font-family: var(--font-mono);
    margin-top: 0.25rem;
}

/* Toast warning visibility improvement */
.toast-warning {
    background: #f59e0b;
    color: #fff;
    font-weight: 500;
}

/* Empty state improvements */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.empty-state h3 {
    margin: 0 0 0.5rem;
    color: var(--text);
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ===== Global Loading Overlay ===== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-content {
    text-align: center;
    padding: 2rem;
}

.loading-spinner-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.loading-spinner-dots span {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    animation: loadingDot 1.4s infinite ease-in-out both;
}

.loading-spinner-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-spinner-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loadingDot {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-message {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    min-height: 1.5em;
    transition: opacity 0.2s;
}

.loading-submessage {
    font-size: 0.875rem;
    color: var(--text-light);
    min-height: 1.25em;
    transition: opacity 0.2s;
}

/* Auth form loading overlay style */
.auth-card {
    position: relative;
}

.auth-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    z-index: 10;
}

.auth-loading-overlay .loading-spinner-dots {
    margin-bottom: 1rem;
}

.auth-loading-overlay .loading-message {
    font-size: 1rem;
}

/* ===== Inline Loading Indicator ===== */
.inline-loading {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border-radius: 0.5rem;
    border: 1px solid #bfdbfe;
}

.inline-loading-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.inline-loading-dots {
    display: flex;
    gap: 4px;
}

.inline-loading-dots span {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    animation: inlineDot 1.4s infinite ease-in-out both;
}

.inline-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.inline-loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.inline-loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes inlineDot {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.inline-loading-text {
    color: #1e40af;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== Team Dashboard ===== */
.team-dashboard {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 1.75rem;
    margin: 0 0 0.25rem;
}

.org-role {
    color: var(--text-light);
    margin: 0;
}

/* Seat Usage Card */
.seat-usage-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.seat-usage-card h2 {
    font-size: 1.125rem;
    margin: 0 0 1rem;
}

.seat-bar {
    height: 12px;
    background: var(--bg);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.seat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #4f46e5 100%);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.seat-text {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-light);
}

.seats-available {
    color: var(--success);
}

.seats-full {
    color: var(--warning);
}

/* Invite Section */
.invite-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.invite-section h2 {
    font-size: 1.125rem;
    margin: 0 0 1rem;
}

.invite-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.invite-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
}

.invite-form select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    background: var(--bg-white);
}

.invite-note {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0.75rem 0 0;
}

/* Members Section */
.members-section,
.invites-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.members-section h2,
.invites-section h2 {
    font-size: 1.125rem;
    margin: 0 0 1rem;
}

/* Team Table */
.team-table-container {
    overflow-x: auto;
}

.team-table {
    width: 100%;
    border-collapse: collapse;
}

.team-table th,
.team-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.team-table th {
    font-weight: 500;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

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

.member-info {
    display: flex;
    flex-direction: column;
}

.member-info strong {
    font-weight: 500;
}

.member-email {
    font-size: 0.8125rem;
    color: var(--text-light);
}

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

.inline-form {
    display: inline;
}

.role-select {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: var(--bg-white);
}

.owner-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Role Badges */
.role-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.role-owner {
    background: #fef3c7;
    color: #92400e;
}

.role-admin {
    background: #dbeafe;
    color: #1e40af;
}

.role-member {
    background: var(--bg);
    color: var(--text-light);
}

/* Team Setup Page */
.team-setup-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.setup-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}

.setup-card h1 {
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
    text-align: center;
}

.setup-subtitle {
    color: var(--text-light);
    text-align: center;
    margin: 0 0 2rem;
}

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

.setup-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.setup-form input[type="text"],
.setup-form input[type="number"],
.setup-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
}

.setup-form small {
    display: block;
    color: var(--text-light);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.price-calculator {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
}

.price-period {
    font-size: 1rem;
    color: var(--text-light);
}

.price-breakdown {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
}

/* Invite Accept Page */
.invite-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 1rem;
}

.invite-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    text-align: center;
    max-width: 450px;
    width: 100%;
}

.invite-card h1 {
    font-size: 1.75rem;
    margin: 0 0 1.5rem;
}

.invite-details {
    margin-bottom: 2rem;
}

.invite-org-name {
    color: var(--text-light);
    margin: 0 0 0.5rem;
}

.invite-details .org-name {
    font-size: 1.5rem;
    margin: 0 0 1rem;
    color: var(--text);
}

.invite-role {
    margin: 0;
    color: var(--text-light);
}

.accept-form {
    margin-bottom: 1rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.invite-note {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
}

.invite-warning,
.invite-mismatch {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.invite-warning p,
.invite-mismatch p {
    margin: 0 0 1rem;
    color: #92400e;
}

.invite-warning p:last-child,
.invite-mismatch p:last-child {
    margin-bottom: 0;
}

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

.invite-auth p {
    margin: 0 0 0.5rem;
}

.invite-email-note {
    margin-bottom: 1.5rem !important;
}

.auth-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* Invalid Invite */
.invite-invalid .invalid-icon {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.invalid-message {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.invalid-reasons {
    text-align: left;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.invalid-reasons p {
    margin: 0 0 0.75rem;
    font-weight: 500;
}

.invalid-reasons ul {
    margin: 0;
    padding-left: 1.25rem;
}

.invalid-reasons li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.invalid-actions p {
    color: var(--text-light);
    margin: 0 0 1rem;
}

/* Account Organization Section */
.account-section.org-section {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.org-section h2 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 0.5rem;
    color: var(--text-light);
}

.org-section .org-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.org-section .org-role {
    margin: 0 0 1rem;
}

/* Button variants - btn-danger uses soft styling defined earlier */
.btn-sm.btn-danger {
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
}

/* Team responsive */
@media (max-width: 640px) {
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
    }

    .invite-form {
        flex-direction: column;
    }

    .invite-form input[type="email"] {
        min-width: 0;
    }

    .actions-cell {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-buttons {
        flex-direction: column;
    }

    .team-table th,
    .team-table td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
}

/* ===== Admin Organization Styles ===== */
.admin-card .org-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.admin-card .org-actions .inline-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-card .org-options h3 {
    font-size: 1rem;
    margin: 1.5rem 0 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.admin-card .org-options h3:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 1rem;
}

.admin-card .form-row {
    display: flex;
    gap: 1rem;
}

.admin-card .form-row .form-group {
    flex: 1;
}

.form-control-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.admin-table .org-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-table .org-info span:first-child {
    font-weight: 500;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

/* ==========================================
   Team Dashboard Styles
   ========================================== */

.page-container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-container > .page-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: none;
}

.page-container > .page-header h1 {
    margin: 0;
    font-size: 1.75rem;
}

.page-container .page-subtitle {
    margin: 0.25rem 0 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Dashboard grid layout */
.page-container > .dashboard-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem;
    margin-bottom: 0;
}

.page-container > .dashboard-grid > .card {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .page-container > .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Card component */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

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

.card-header h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-body-table {
    padding: 0;
}

/* Seat progress indicator */
.seat-progress {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.seat-progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.seat-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.seat-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.seat-count {
    color: var(--text);
}

.seat-available {
    color: var(--success);
    font-weight: 500;
}

.seat-full {
    color: var(--warning);
    font-weight: 500;
}

/* Invite form inline */
form.invite-form-inline {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    align-items: flex-end !important;
}

form.invite-form-inline > .form-group {
    flex: 1 1 200px !important;
    margin-bottom: 0 !important;
}

form.invite-form-inline > .form-group.form-group-sm {
    flex: 0 0 120px !important;
}

form.invite-form-inline > .form-group.form-group-btn {
    flex: 0 0 auto !important;
}

form.invite-form-inline .form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

form.invite-form-inline .form-group input,
form.invite-form-inline .form-group select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
}

form.invite-form-inline .form-group input:focus,
form.invite-form-inline .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

form.invite-form-inline .form-group input:disabled,
form.invite-form-inline .form-group select:disabled {
    background: var(--bg);
    cursor: not-allowed;
}

.form-hint {
    margin: 0.75rem 0 0;
    font-size: 0.813rem;
    color: var(--text-light);
}

/* Data table */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    background: var(--bg);
}

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

.data-table tbody tr:hover {
    background: var(--bg);
}

.user-cell {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.user-cell strong {
    font-weight: 500;
}

.user-email {
    font-size: 0.813rem;
    color: var(--text-light);
}

.actions-col {
    text-align: right;
    white-space: nowrap;
}

.actions-col form {
    display: inline-block;
}

/* Role badges */
.role-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    text-transform: capitalize;
}

.role-owner {
    background: #fef3c7;
    color: #92400e;
}

.role-admin {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.role-member {
    background: var(--bg);
    color: var(--text-light);
}

/* Small buttons */
.btn-sm {
    padding: 0.25rem 0.625rem;
    font-size: 0.813rem;
}

/* Small select */
.select-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.813rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
}

/* Inline form for actions */
.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

/* Text utilities */
.text-muted {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Alert styles */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert-success {
    background: var(--success-light);
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Override card styling for forms inside tables */
table form,
td form {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}
