/* SynapseMed Official Signature Design System */

[x-cloak] {
    display: none !important;
}

:root {
    --color-primary: #213874;
    --color-primary-light: #1a6ac3;
    --color-secondary: #f3ab1b;
    --color-bg: #f4f4f6;
    --color-card: #ffffff;
    --color-text: #213874;
    --color-muted: #64748b;
    --color-border: #e2e8f0;
}

body {
    background-color: #f4f4f6;
    color: #213874;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Native App Shell & Touch Optimization */
* {
    -webkit-tap-highlight-color: transparent;
}

button, .card, .glass-card, .badge, [role="button"] {
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

/* Background Mesh Canvas */
.bg-mesh {
    background-color: #f4f4f6;
    background-image: 
        radial-gradient(at 0% 0%, rgba(33, 56, 116, 0.04) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(243, 171, 27, 0.04) 0px, transparent 50%),
        radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 32px 32px;
}

/* Glassmorphic Utilities */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 6px -1px rgba(33, 56, 116, 0.05), 0 2px 4px -2px rgba(33, 56, 116, 0.05);
}

.glass-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px -2px rgba(33, 56, 116, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    border-color: rgba(26, 106, 195, 0.3);
    box-shadow: 0 20px 30px -10px rgba(33, 56, 116, 0.1);
    transform: translateY(-2px);
}

/* Primary Button Styling */
.btn-primary {
    background-color: #213874;
    color: #ffffff;
    font-weight: 700;
    border-radius: 9999px;
    padding: 0.75rem 1.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(33, 56, 116, 0.2);
}

.btn-primary:hover {
    background-color: #1a6ac3;
    transform: scale(1.03);
}

.btn-outline {
    border: 1.5px solid #e2e8f0;
    color: #213874;
    font-weight: 700;
    border-radius: 9999px;
    padding: 0.75rem 1.75rem;
    background: #ffffff;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: #1a6ac3;
    color: #1a6ac3;
    background: #f8fafc;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Typography styles for medical articles */
article h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #213874;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    border-bottom: 1.5px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

article h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a6ac3;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

article h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #213874;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

article p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 0.975rem;
}

article ul, article ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
    color: #475569;
    line-height: 1.75;
}

article li {
    margin-bottom: 0.4rem;
}

article strong {
    color: #213874;
    font-weight: 700;
}
