:root{--bg-gradient-start: #f5f5f5;--bg-gradient-end: #d8d8d8;--accent-green: #2A5738;--border-color: #D2DAD6;--header-text: #2C3E50;--title-color: var(--accent-green);--body-text: #333333;--surface-bg: #ffffff;--surface-alt: #f8f9fa;--text-muted: #6b7280;--shadow-light: rgba(0, 0, 0, .1);--shadow-medium: rgba(0, 0, 0, .15);--card-bg: #f8f9fa;--warning-bg: #fef3c7;--warning-border: #f59e0b;--error-bg: #fef2f2;--error-border: #ef4444;--error-text: #dc2626;--bg-secondary: var(--surface-alt);--text-primary: var(--body-text);--accent-light: #e8f5e8;--dark-bg-gradient-start: #1a1a1a;--dark-bg-gradient-end: #0f0f0f;--dark-accent-green: #4A9B5E;--dark-border-color: #333333;--dark-header-text: #E5E5E5;--dark-title-color: var(--dark-accent-green);--dark-body-text: #E0E0E0;--dark-surface-bg: #2a2a2a;--dark-surface-alt: #1e1e1e;--dark-text-muted: #9CA3AF;--dark-shadow-light: rgba(0, 0, 0, .3);--dark-shadow-medium: rgba(0, 0, 0, .5);--dark-card-bg: rgba(255, 255, 255, .05);--dark-warning-bg: rgba(245, 158, 11, .1);--dark-warning-border: rgba(245, 158, 11, .3);--dark-error-bg: rgba(239, 68, 68, .1);--dark-error-border: rgba(239, 68, 68, .3);--dark-error-text: #fca5a5;--dark-bg-secondary: var(--dark-surface-alt);--dark-text-primary: var(--dark-body-text);--dark-accent-light: rgba(74, 155, 94, .1);--content-width: 1200px;--font-family: "DM Sans", sans-serif;--content-padding: 20px;--grid-border: 1px solid var(--border-color)}*{margin:0;padding:0;box-sizing:border-box;font-family:var(--font-family)}body{min-height:100vh;display:grid;grid-template-rows:auto auto auto 1fr auto;grid-template-areas:"banner" "header" "nav" "main" "footer";background:radial-gradient(circle at 25% 25%,rgba(255,255,255,.8) 0%,transparent 70%),radial-gradient(circle at 75% 75%,rgba(220,220,220,.7) 0%,transparent 70%),linear-gradient(to bottom,var(--bg-gradient-start),var(--bg-gradient-end));color:var(--body-text)}.preview-banner{grid-area:banner;background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;text-align:center;padding:12px 20px;font-weight:600;font-size:14px;border-bottom:2px solid #b45309;box-shadow:0 2px 8px #0000001a}@media(max-width:768px){.preview-banner{font-size:12px;padding:10px 15px;line-height:1.4}}header{grid-area:header;border-bottom:var(--grid-border);display:flex;align-items:center;justify-content:center;min-height:124px}header div{position:relative;overflow:hidden;font-size:clamp(1.5rem,4vw,1.75rem);font-weight:700;color:var(--accent-green);letter-spacing:-.5px;display:flex;align-items:center;width:100%;max-width:var(--content-width);padding:1rem var(--content-padding);box-sizing:border-box;border-left:var(--grid-border);border-right:var(--grid-border);background-color:var(--surface-bg);min-height:124px}header div span{flex:1;font-weight:700;position:relative;padding-left:15px;line-height:1.2;text-align:left}header aside{position:relative;z-index:1;flex:0 0 auto;padding:15px 0 15px 10px;font-size:clamp(.75rem,2vw,.875rem);line-height:1.4;color:var(--header-text);display:flex;align-items:center;gap:15px}header aside img{width:clamp(60px,8vw,80px);height:clamp(60px,8vw,80px);border-radius:12px;object-fit:cover;border:2px solid white;box-shadow:0 4px 6px #0000001a;margin-right:5px}header aside div{display:flex;flex-direction:column;justify-content:center;font-family:var(--font-family)}header aside div span{font-size:13px;font-weight:400;color:#555}nav{grid-area:nav;border-bottom:var(--grid-border);min-height:76px;background-color:var(--surface-bg)}nav>div{display:flex;width:100%;max-width:var(--content-width);margin:0 auto;border-left:var(--grid-border);border-right:var(--grid-border);min-height:76px;background-color:var(--surface-bg)}nav .nav-links{display:flex;flex:1;overflow-x:auto;-webkit-overflow-scrolling:touch}nav .nav-links a{display:flex;align-items:center;justify-content:center;height:76px;min-width:140px;padding:0 1rem;text-decoration:none;color:var(--header-text);font-weight:500;font-size:clamp(.875rem,2vw,1rem);position:relative;transition:all .2s ease;border-right:var(--grid-border);white-space:nowrap;text-align:center}nav .nav-links a:hover{background-color:#2a573808;color:var(--accent-green)}nav .nav-links a.active{background-color:#2a57380d;color:var(--accent-green);font-weight:600}nav .nav-actions{display:flex;justify-content:center;align-items:center;gap:20px;padding:0 clamp(15px,3vw,30px);height:76px;flex-shrink:0}.btn-schedule{display:inline-flex;align-items:center;justify-content:center;background-color:var(--accent-green);color:#fff;font-weight:600;padding:clamp(8px,2vw,10px) clamp(16px,4vw,22px);border-radius:6px;text-decoration:none;transition:all .2s ease;box-shadow:0 2px 4px var(--shadow-light);height:clamp(36px,8vw,40px);font-size:clamp(.875rem,2vw,1rem);white-space:nowrap}.btn-schedule:hover{background-color:#356847;transform:translateY(-1px);box-shadow:0 4px 8px #0000001a}.patient-login{color:var(--header-text);text-decoration:none;font-size:14px;font-weight:500;transition:color .2s ease;white-space:nowrap;display:inline-block;padding:8px 0}.patient-login:hover{color:var(--accent-green)}.nav-toggle{position:absolute;opacity:0;pointer-events:none}.nav-toggle-label{display:none}main{grid-area:main;border-bottom:var(--grid-border);display:flex;flex-direction:column;width:100%;background-color:var(--surface-bg)}main>*{background-color:var(--surface-bg);width:100%;max-width:var(--content-width);margin:0 auto;border-left:var(--grid-border);border-right:var(--grid-border);box-sizing:border-box}main>ul{padding:var(--content-padding);list-style-position:inside}main>p,main>h1{padding:var(--content-padding)}main>*:last-child{border-bottom:none}main>*:has(+h1){border-bottom:none}main>h1{position:relative;box-sizing:border-box}main>h1:not(:first-of-type):before{content:"";position:absolute;left:50%;top:0;transform:translate(-50%);width:100vw;height:1px;background:var(--border-color);z-index:1}main:after{content:"";flex-grow:1;width:100%;max-width:var(--content-width);border-left:var(--grid-border);border-right:var(--grid-border);margin:0 auto;box-sizing:border-box;background-color:var(--surface-bg)}footer{grid-area:footer;min-height:76px;background-color:var(--surface-bg)}footer .footer-content{width:var(--content-width);margin:0 auto;min-height:76px;display:flex;justify-content:space-between;align-items:center;padding:0 var(--content-padding);font-size:14px;border-left:var(--grid-border);border-right:var(--grid-border);background-color:var(--surface-bg);box-sizing:border-box}footer .copyright{color:#555;font-weight:500}footer .footer-links{display:flex;align-items:center}footer .footer-links a{color:var(--header-text);text-decoration:none;transition:all .2s ease;padding:8px 13px;border-radius:4px}footer .footer-links a:hover{color:var(--accent-green);background-color:#2a57380d}footer .separator{display:inline-block;height:16px;width:1px;background-color:var(--border-color);margin:0 8px;vertical-align:middle}.btn-primary,form button,form input[type=submit]{background:var(--accent-green)!important;color:#fff!important;border:none!important;padding:12px 24px!important;border-radius:8px!important;font-size:1rem!important;font-weight:600!important;cursor:pointer!important;transition:all .3s ease!important;margin:1rem 0!important;text-decoration:none;display:inline-block}.btn-primary:hover,form button:hover,form input[type=submit]:hover{background:#356847!important;transform:translateY(-1px)!important;box-shadow:0 4px 12px #2a57384d!important}.btn-secondary,.btn-outline{background:transparent;color:var(--text-muted);border:1px solid var(--border-color);border-radius:8px;padding:12px 24px;font-size:14px;font-weight:600;text-decoration:none;cursor:pointer;transition:all .2s ease;display:inline-block}.btn-secondary:hover,.btn-outline:hover{background:var(--bg-secondary);color:var(--header-text)}.alert,.message{padding:12px 16px;border-radius:8px;margin-bottom:20px;font-weight:500;border:1px solid}.alert-success,.message.success{background:#d4edda;color:#155724;border-color:#c3e6cb}.alert-error,.message.error{background:#f8d7da;color:#721c24;border-color:#f5c6cb}.form-notice{background:var(--card-bg)!important;padding:1rem!important;margin:1rem 0!important;border-radius:8px!important;border-left:4px solid var(--accent-green)!important}.card{border-radius:8px;border:1px solid var(--border-color);transition:all .2s ease}.card-padded{padding:20px}.status-badge{display:inline-block;padding:6px 14px;border-radius:20px;font-size:13px;font-weight:600;text-transform:capitalize}.status-badge.scheduled,.status-badge.status-scheduled,.status-badge.active{background:#e3f2fd;color:#1976d2}.status-badge.completed,.status-badge.status-completed{background:#e8f5e9;color:#388e3c}.status-badge.cancelled,.status-badge.status-cancelled{background:#ffebee;color:#d32f2f}.status-badge.noshow,.status-badge.status-noshow{background:#fff3e0;color:#f57c00}.status-badge.draft{background:#f5f5f5;color:#666}.page-container,.narrow-page-container{padding:20px}.container{padding:0 2rem}.content .page-container,section .page-container{max-width:800px;margin:0 auto}.content .narrow-page-container,section .narrow-page-container{max-width:600px;margin:0 auto}.content .container,section .container{max-width:1200px;margin:0 auto}.patient-container,.portal-container{display:flex;min-height:100%;width:100%}.patient-container menu,.portal-container menu{flex:0 0 250px;padding:20px;display:flex;flex-direction:column;background-color:var(--surface-alt);border-right:var(--grid-border)}.patient-container menu a,.portal-container menu a{display:block;padding:12px 15px;margin:3px 0;color:var(--header-text);text-decoration:none;transition:all .2s ease;border-radius:6px;font-weight:500}.patient-container menu a:hover,.portal-container menu a:hover{background-color:#2a573814;color:var(--accent-green)}.patient-container menu a.active,.portal-container menu a.active{background-color:#2a573826;color:var(--accent-green);font-weight:600}.patient-container .content,.portal-container .content{flex:1;padding:20px;overflow-x:auto}form{background:var(--surface-bg)!important;border:2px solid var(--border-color)!important;border-radius:12px;padding:2rem;margin:1rem 0}.form-container{width:100%;max-width:600px;margin:0 auto;background-color:var(--surface-bg);padding:25px;border-radius:8px;box-shadow:0 2px 8px var(--shadow-light);border:1px solid var(--border-color)}.form-group{margin-bottom:20px}.form-group label{display:block;margin-bottom:8px;font-weight:500;color:var(--header-text)}.form-actions{display:flex;gap:1rem;justify-content:flex-start;margin-top:1.5rem}input[type=text],input[type=email],input[type=password],input[type=tel],input[type=number],input[type=date],select,textarea{width:100%!important;padding:12px 16px!important;border:2px solid var(--border-color)!important;border-radius:8px!important;background:var(--surface-bg)!important;color:var(--body-text)!important;font-size:1rem!important;font-family:inherit!important;margin:.5rem 0!important;transition:all .3s ease!important;box-sizing:border-box}input:focus,select:focus,textarea:focus{border-color:var(--accent-green)!important;box-shadow:0 0 0 3px #2a57381a!important;outline:none!important}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e")!important;background-position:right 12px center!important;background-repeat:no-repeat!important;background-size:16px!important;padding-right:40px!important;cursor:pointer!important}input[type=checkbox]{appearance:none;width:20px!important;height:20px!important;border:2px solid var(--border-color)!important;border-radius:4px!important;background:var(--surface-bg)!important;margin-right:10px!important;position:relative!important;cursor:pointer!important;transition:all .3s ease!important;vertical-align:middle!important;flex-shrink:0!important}input[type=checkbox]:checked{background:var(--accent-green)!important;border-color:var(--accent-green)!important}input[type=checkbox]:checked:after{content:"✓"!important;position:absolute!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;color:#fff!important;font-weight:700!important;font-size:14px!important}input[type=checkbox]:hover{border-color:var(--accent-green)!important;box-shadow:0 0 0 2px #2a57381a!important}input[type=radio]{appearance:none;width:20px!important;height:20px!important;border:2px solid var(--border-color)!important;border-radius:50%!important;background:var(--surface-bg)!important;margin-right:10px!important;position:relative!important;cursor:pointer!important;transition:all .3s ease!important;vertical-align:middle!important;flex-shrink:0!important}input[type=radio]:checked{border-color:var(--accent-green)!important;background:var(--accent-green)!important}input[type=radio]:checked:after{content:""!important;position:absolute!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;width:8px!important;height:8px!important;border-radius:50%!important;background:#fff!important}input[type=radio]:hover{border-color:var(--accent-green)!important;box-shadow:0 0 0 2px #2a57381a!important}label{display:flex!important;align-items:center!important;gap:8px!important;margin:8px 0!important;cursor:pointer!important;color:var(--body-text)!important;font-weight:500!important;line-height:1.4!important}form h2,form h3{color:var(--header-text)!important;margin:2rem 0 1rem!important;padding-bottom:.5rem!important;border-bottom:1px solid var(--border-color)!important}form h2:first-child,form h3:first-child{margin-top:0!important}form>div,form>fieldset{margin:1.5rem 0!important}form fieldset{border:1px solid var(--border-color)!important;border-radius:8px!important;padding:1rem!important;background:var(--surface-alt)!important}form legend{color:var(--header-text)!important;font-weight:600!important;padding:0 .5rem!important}form ul,form ol,.form-content ul,.form-content ol,form .markdown-content ul,form .markdown-content ol{list-style:none!important;padding-left:0!important;margin:0!important}form li,.form-content li,form .markdown-content li{margin-bottom:.75rem!important;display:flex!important;align-items:center!important;min-height:44px!important}.form-options{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}.form-option{display:flex;align-items:center;cursor:pointer;user-select:none}.appointments-table,table{width:100%;border-collapse:collapse;background:var(--surface-bg);border-radius:8px;overflow:hidden;box-shadow:0 1px 3px var(--shadow-light)}.appointments-table th,.appointments-table td,table th,table td{padding:16px;text-align:left;border-bottom:1px solid var(--border-color)}.appointments-table th,table th{background:var(--surface-alt);font-weight:600;color:var(--header-text);text-transform:uppercase;font-size:13px;letter-spacing:.5px}.appointments-table tr:last-child td,table tr:last-child td{border-bottom:none}.appointments-table tr:hover,table tbody tr:hover{background:var(--surface-alt)}@media(max-width:768px){:root{--content-padding: 10px;--content-width: 100%}body{background:var(--surface-bg)}header{min-height:auto;padding:1rem 0;background-color:var(--surface-bg)}header div{flex-direction:column;gap:.5rem;text-align:center;padding:0 var(--content-padding);width:100%;max-width:none;border-left:none;border-right:none;background-color:var(--surface-bg)}header div span{padding-left:0;text-align:center;font-size:clamp(1rem,4vw,1.25rem)}header aside{flex-direction:column;gap:.25rem;padding:0;text-align:center;font-size:clamp(.7rem,2vw,.8rem)}header aside img{width:50px;height:50px;margin:0 auto}nav{min-height:60px;background-color:var(--surface-bg)}nav>div{position:relative;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-left:none;border-right:none;min-height:60px;padding:10px 15px;width:100%;max-width:100%}.nav-toggle{position:absolute;opacity:0;pointer-events:none}.nav-toggle-label{position:relative!important;display:flex!important;visibility:visible!important;opacity:1!important;left:auto!important;top:auto!important;height:24px;width:30px;cursor:pointer;z-index:1001;order:3;align-items:center;justify-content:center}.hamburger{position:relative;background:#2c3e50;width:100%;height:3px;border-radius:2px;transition:all .3s ease;display:block}.hamburger:before,.hamburger:after{content:"";position:absolute;left:0;background:var(--header-text);width:100%;height:3px;border-radius:2px;transition:all .3s ease}.hamburger:before{top:-8px}.hamburger:after{bottom:-8px}.nav-toggle:checked+.nav-toggle-label .hamburger{background:transparent}.nav-toggle:checked+.nav-toggle-label .hamburger:before{top:0;transform:rotate(45deg)}.nav-toggle:checked+.nav-toggle-label .hamburger:after{bottom:0;transform:rotate(-45deg)}nav .nav-links{position:absolute;top:60px;left:0;right:0;background:var(--surface-bg);width:100%;display:flex;flex-direction:column;max-height:0;overflow:hidden;transition:max-height .4s ease-in-out;border-bottom:none;z-index:1000}.nav-toggle:checked~.nav-links{max-height:400px;border-bottom:1px solid var(--border-color)}nav .nav-links a{display:flex;align-items:center;height:50px;min-width:auto;width:100%;border-right:none;border-bottom:1px solid var(--border-color);font-size:1rem;padding:0 20px}nav .nav-links a:last-child{border-bottom:none}nav .nav-actions{display:flex;height:auto;padding:0;order:1;flex:1}.btn-schedule{padding:8px 16px;font-size:.9rem;height:36px}header>*,nav>*,main>*,main:after{width:100%;max-width:100%;border-left:none;border-right:none}footer .footer-content{flex-direction:column;justify-content:center;gap:16px;padding:24px var(--content-padding);border-left:none;border-right:none;text-align:center}footer .separator{display:none}footer .footer-links{flex-wrap:wrap;justify-content:center;gap:1rem}.patient-container,.portal-container{flex-direction:column}.patient-container menu,.portal-container menu{flex:none;padding:15px;border-right:none;border-bottom:var(--grid-border);overflow-x:auto;white-space:nowrap}.patient-container menu a,.portal-container menu a{display:inline-block;margin-right:10px;padding:10px 15px;white-space:nowrap}.patient-container .content,.portal-container .content{padding:15px}form{padding:1rem}input[type=text],input[type=email],input[type=password],input[type=tel],input[type=number],input[type=date],select,textarea{font-size:16px!important;padding:14px 16px!important;min-height:44px!important}button,input[type=submit]{padding:12px 20px;font-size:16px;width:100%;margin-top:1rem}label{padding:8px 0!important;min-height:44px!important}input[type=checkbox],input[type=radio]{width:24px!important;height:24px!important;margin-right:12px!important}.form-options{flex-direction:column;gap:.5rem}.form-option,form label:has(input[type=checkbox]),form label:has(input[type=radio]){display:block;background:var(--surface-bg);border:2px solid var(--border-color);border-radius:25px;padding:16px 24px;margin:0 0 .5rem;cursor:pointer;transition:all .3s ease;font-size:16px;min-height:44px;text-align:center;user-select:none;position:relative;color:var(--body-text);font-weight:500}.form-option input[type=checkbox],.form-option input[type=radio],form label input[type=checkbox],form label input[type=radio]{position:absolute;opacity:0;pointer-events:none;width:0;height:0}.form-option.selected,.form-option:has(input:checked),form label.selected:has(input[type=checkbox]),form label.selected:has(input[type=radio]),form label:has(input:checked){background:var(--accent-green)!important;color:#fff!important;border-color:var(--accent-green)!important;font-weight:600}.form-option:hover,form label:hover:has(input[type=checkbox]),form label:hover:has(input[type=radio]){border-color:var(--accent-green);box-shadow:0 2px 8px #2a573833;transform:translateY(-1px)}.form-option:active,form label:active:has(input[type=checkbox]),form label:active:has(input[type=radio]){transform:translateY(0);box-shadow:0 1px 4px #2a573833}form div[style*=grid-template-columns]{display:flex!important;flex-direction:column!important;gap:.5rem!important}.appointments-table{display:none}}@media(min-width:769px)and (max-width:1024px){:root{--content-width: 100%;--content-padding: 25px}header div,nav>*,main>*,main:after,footer>*{border-left:none;border-right:none}nav .nav-links{overflow-x:auto;-webkit-overflow-scrolling:touch}nav .nav-links a{min-width:120px;font-size:.9rem}.patient-container menu,.portal-container menu{flex:0 0 200px;padding:15px}.patient-container .content,.portal-container .content{padding:15px}}@media(min-width:1025px)and (max-width:1199px){:root{--content-width: 100%;--content-padding: 30px}header>*,nav>*,main>*,main:after,footer>*{border-left:none;border-right:none}}@media(min-width:769px){.nav-toggle,#nav-toggle,input[type=checkbox][id=nav-toggle],.nav-toggle-label,label[for=nav-toggle]{display:none!important;visibility:hidden!important;opacity:0!important;position:fixed!important;left:-9999px!important;top:-9999px!important}}
