@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes progress{0%{left:-100%}to{left:200%}}.loader-overlay{z-index:99999;color:#1e293b;background-color:#f8fafc;flex-direction:column;justify-content:center;align-items:center;width:100vw;height:100vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;display:flex;position:fixed;top:0;left:0}.loader-bg-decoration{pointer-events:none;background:linear-gradient(135deg,#eef2ff80,#fffc,#faf5ff80);width:100%;height:100%;position:absolute;top:0;left:0}.spin-icon{animation:1s linear infinite spin}.pulse-text{animation:2s cubic-bezier(.4,0,.6,1) infinite pulse}.simple-loader{z-index:10;flex-direction:column;align-items:center;gap:16px;display:flex;position:relative}.icon-wrapper-simple{background:#fff;border:1px solid #e0e7ff;border-radius:50%;padding:16px;box-shadow:0 4px 6px -1px #0000001a}.loader-card{z-index:10;text-align:center;background:#fff;border:1px solid #f1f5f9;border-radius:16px;width:90%;max-width:450px;animation:.6s ease-out forwards slideUp;position:relative;overflow:hidden;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a}.card-top-accent{background:linear-gradient(90deg,#6366f1,#a855f7,#ec4899);width:100%;height:6px}.card-content{padding:32px}.card-icon-area{justify-content:center;margin-bottom:24px;display:flex;position:relative}.card-icon-bg{filter:blur(24px);opacity:.15;background-color:#6366f1;border-radius:50%;position:absolute;inset:0}.card-icon-box{color:#4f46e5;background:#fff;border:1px solid #f3f4f6;border-radius:16px;padding:16px;position:relative;box-shadow:0 1px 3px #0000000d}.coffee-badge{color:#c2410c;background-color:#ffedd5;border:2px solid #fff;border-radius:50%;padding:4px;display:flex;position:absolute;top:-8px;right:-8px}.loader-title{color:#111827;margin-bottom:8px;font-size:1.25rem;font-weight:700}.loader-desc{color:#64748b;margin-bottom:16px;font-size:.875rem;line-height:1.5}.timer-badge{color:#4338ca;background-color:#eef2ff;border-radius:8px;align-items:center;gap:8px;margin-bottom:24px;padding:6px 12px;font-size:.75rem;font-weight:700;display:inline-flex}.progress-labels{text-transform:uppercase;letter-spacing:.05em;color:#94a3b8;justify-content:space-between;margin-bottom:8px;font-size:10px;font-weight:600;display:flex}.progress-track{background-color:#f1f5f9;border-radius:9999px;width:100%;height:8px;position:relative;overflow:hidden}.progress-bar{background-color:#4f46e5;border-radius:9999px;width:40%;animation:1.5s linear infinite progress;position:absolute;top:0;bottom:0}.loader-footer{background-color:#f8fafc;border-top:1px solid #f1f5f9;padding:12px}.footer-text{color:#94a3b8;margin:0;font-size:.75rem}.reload-btn{color:#fff;cursor:pointer;background-color:#1e293b;border:none;border-radius:12px;justify-content:center;align-items:center;gap:8px;width:100%;padding:12px;font-size:1rem;font-weight:500;transition:background .2s;display:flex}.reload-btn:hover{background-color:#0f172a}.calendar-card{border-radius:12px;max-width:800px;min-height:100vh;margin:0 10% 0 25%;padding:24px;box-shadow:0 4px 20px #0000000d}.calendar-header{align-items:start;gap:16px;margin-bottom:24px;display:flex}.calendar-icon{background:linear-gradient(135deg,#4f46e5,#6366f1);border-radius:10px;justify-content:center;align-items:center;width:48px;height:48px;display:flex}.calendar-icon-inner{color:#fff;width:24px;height:24px}.calendar-header-text h3{color:#111;margin-bottom:4px;font-size:1.25rem;font-weight:700}.calendar-header-text p{color:#555;font-size:.9rem}.calendar-info-box{background:#f9fafb;border-radius:8px;margin-bottom:20px;padding:16px}.info-icon{color:#4f46e5;width:20px;height:20px;margin-top:3px}.info-title{margin-bottom:6px;font-weight:600}.info-list{color:#666;font-size:.85rem;line-height:1.4}.calendar-setup h4{margin-bottom:8px;font-weight:600}.calendar-steps ol{color:#666;font-size:.9rem;line-height:1.5}.connect-btn{width:100%;margin-top:12px}.loader{border:2px solid #fff;border-top-color:#0000;border-radius:50%;width:16px;height:16px;margin-right:6px;animation:.6s linear infinite spin}.calendar-note{color:#777;justify-content:center;align-items:center;gap:4px;margin-top:8px;font-size:.75rem;display:flex}.note-icon{width:14px;height:14px}.calendar-connected{margin-top:8px}.calendar-success{background:#ecfdf5;border:1px solid #a7f3d0;border-radius:8px;align-items:center;gap:10px;padding:12px;display:flex}.success-icon{color:#059669;width:24px;height:24px}.success-title{color:#111;font-weight:600}.calendar-status>div{background:#f3f4f6;border-radius:6px;justify-content:space-between;margin-top:8px;padding:10px 14px;display:flex}.status-active{color:#059669;font-weight:600}.calendar-actions{gap:12px;margin-top:12px;display:flex}.developer-guide{margin-top:20px}.developer-guide summary{cursor:pointer;color:#555;font-size:.9rem;font-weight:500}.guide-content{color:#444;background:#f9fafb;border-radius:8px;margin-top:8px;padding:12px;font-size:.8rem}.guide-content pre{background:#fff;border-radius:6px;margin-bottom:8px;padding:8px;font-size:.75rem;overflow-x:auto}.btn-icon{color:#fff;cursor:pointer;float:right;background:linear-gradient(135deg,#265ae0,#10b981);border:none;border-radius:8px;margin-bottom:1rem;padding:.4rem .9rem;font-size:.85rem;transition:all .3s;box-shadow:0 3px 8px #10b9814d}.btn-icon:hover{background:linear-gradient(135deg,#1e4dd8,#0d9668);transform:translateY(-1px);box-shadow:0 5px 12px #10b98166}.dashboard{color:#222;max-width:1000px;margin:auto;padding:2rem;font-family:Poppins,sans-serif}.dashboard-header{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#fff9;border:1px solid #ffffff4d;border-radius:14px;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding:1.5rem 2rem;transition:all .3s;display:flex;box-shadow:0 4px 10px #2b6ef21a}.dashboard-header:hover{transform:translateY(-2px);box-shadow:0 6px 15px #2b6ef226}.dashboard-header h1{color:#2b6ef2;letter-spacing:.5px;margin:0;font-size:1.8rem;font-weight:700}.dashboard-header p{color:#555;flex-grow:1;margin-left:10px;font-size:1rem}.add-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#265ae0,#10b981);border:none;border-radius:10px;padding:.6rem 1.3rem;font-size:.95rem;font-weight:500;transition:all .3s;box-shadow:0 3px 8px #2b6ef24d}.stats-container{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.2rem;margin-bottom:2rem;display:grid}.stat-card{text-align:center;background:linear-gradient(90deg,#f9f9f9,#e8f5e9);border-radius:14px;padding:1.2rem;transition:all .3s;box-shadow:0 2px 8px #0000000d}.stat-card:hover{transform:translateY(-3px);box-shadow:0 6px 12px #00000014}.stat-value{color:#2b6ef2;font-size:2rem;font-weight:700}.schedule-header{margin-bottom:1.5rem}.schedule-container .dose-card{background:#fff;border-radius:20px;justify-content:space-between;align-items:center;margin-bottom:.8rem;padding:.9rem 1.2rem;transition:all .3s;display:flex;box-shadow:0 2px 6px #0000000d}.dose-card:hover{transform:translateY(-2px);box-shadow:0 5px 10px #00000014}.dose-card.taken{border-left:10px solid #4caf50}.dose-card.delayed{border-left:10px solid #ff9800}.dose-card.missed{border-left:10px solid #f44336}.status-tag{color:#fff;background:#4caf50;border-radius:6px;padding:.35rem .7rem;font-size:.85rem}.date-navigation{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#fff9;border-radius:12px;justify-content:space-between;align-items:center;gap:1rem;margin-top:1rem;padding:1rem;display:flex;box-shadow:0 2px 8px #0000000d}.nav-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#265ae0,#10b981);border:none;border-radius:8px;align-items:center;gap:.5rem;padding:.6rem 1rem;font-size:.9rem;font-weight:500;transition:all .3s;display:flex;box-shadow:0 2px 6px #2b6ef24d}.nav-btn:hover:not(:disabled){background:linear-gradient(135deg,#1e4dd8,#0d9668);transform:translateY(-1px);box-shadow:0 4px 10px #2b6ef266}.nav-btn:disabled{opacity:.5;cursor:not-allowed}.current-date{text-align:center;flex:1}.current-date p{color:#2b6ef2;margin:0 0 .5rem;font-size:1.1rem;font-weight:600}.today-btn{color:#fff;cursor:pointer;background:#10b981;border:none;border-radius:6px;padding:.4rem .8rem;font-size:.85rem;transition:all .3s}.today-btn:hover{background:#0d9668;transform:translateY(-1px)}.no-medications{text-align:center;color:#888;padding:2rem;font-size:1rem;font-style:italic}.recent-container{background:#fff;border-radius:14px;margin-top:1.5rem;padding:1.2rem;box-shadow:0 3px 8px #0000000a}.activity-item{border-bottom:1px solid #eee;padding:.6rem 0}.activity-item:last-child{border-bottom:none}.activity-day{color:#888;font-size:.85rem}.ai-container{text-align:center;background:#e3e6e6;border-radius:14px;margin-top:2rem;padding:1.2rem}.ai-container input{border:1px solid #cbc1c1;border-radius:10px;outline:none;width:70%;padding:.6rem;font-size:.95rem}.ai-container input:focus{border-color:#2b6ef2;box-shadow:0 0 0 3px #2b6ef226}.ai-container button{color:#fff;cursor:pointer;background:linear-gradient(135deg,#265ae0,#10b981);border:none;border-radius:10px;margin-left:12px;padding:.6rem 1.2rem;transition:all .3s}.ai-container button:hover{background:#1e4dd8}.ai-response{background:linear-gradient(135deg,#1e4dd8,#0d9668);border-radius:10px;margin-top:1.2rem;padding:1rem;box-shadow:0 2px 6px #0000000a}.index-container{color:#1e293b;scroll-behavior:smooth;background:linear-gradient(#f9fbff 0%,#eef4ff 100%);min-height:100vh;font-family:Inter,sans-serif}.nav-bar{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);z-index:100;background:#ffffffb3;border-bottom:1px solid #e5e7eb99;transition:all .3s;position:sticky;top:0}.nav-bar:hover{box-shadow:0 4px 25px #00000014}.nav-container{justify-content:space-between;align-items:center;max-width:1200px;margin:0 auto;padding:1rem 2rem;display:flex}.nav-logo{align-items:center;gap:.6rem;display:flex}.logo-icon{color:#fff;background:linear-gradient(135deg,#3b82f6,#06b6d4);border-radius:.75rem;justify-content:center;align-items:center;width:2.4rem;height:2.4rem;display:flex;box-shadow:0 4px 12px #3b82f64d}.nav-logo h1{color:#1e3a8a;letter-spacing:-.5px;font-size:1.4rem;font-weight:700}.nav-buttons{align-items:center;gap:1rem;display:flex}.hero-section{text-align:left;padding:6rem 2rem;position:relative;overflow:hidden}.hero-gradient{z-index:0;background:radial-gradient(circle at 0 0,#dbeafe 10%,#0000 60%);position:absolute;inset:0}.hero-container{z-index:1;align-items:center;gap:3rem;max-width:1200px;margin:auto;display:grid;position:relative}@media (min-width:1024px){.hero-container{grid-template-columns:1.1fr .9fr}}.hero-text h2{color:#0f172a;margin-bottom:1rem;font-size:3.5rem;font-weight:800;line-height:1.1}.hero-text p{color:#475569;max-width:600px;margin-bottom:2.5rem;font-size:1.2rem}.hero-buttons{flex-wrap:wrap;gap:1.25rem;display:flex}.hero-badges{color:#64748b;align-items:center;gap:1.25rem;margin-top:2rem;font-size:.9rem;display:flex}.badge-dot{background:#3b82f6;border-radius:50%;width:.6rem;height:.6rem;margin-right:.3rem;display:inline-block}.hero-image img{border-radius:1.5rem;width:100%;transition:transform .6s;box-shadow:0 20px 45px #2563eb26}.hero-image img:hover{transform:scale(1.03)}.features-section{background:#fff;padding:6rem 2rem}.features-header{text-align:center;margin-bottom:4rem}.features-header h2{color:#0f172a;font-size:2.5rem;font-weight:800}.features-header p{color:#475569;font-size:1.1rem}.features-grid{grid-template-columns:1fr;gap:2rem;max-width:1200px;margin:auto;display:grid}@media (min-width:768px){.features-grid{grid-template-columns:repeat(2,1fr)}}@media (min-width:1024px){.features-grid{grid-template-columns:repeat(3,1fr)}}.feature-card{text-align:center;background:linear-gradient(#fff 0%,#f8fafc 100%);border-radius:1rem;padding:2rem;transition:all .3s;box-shadow:0 8px 28px #0000000d}.feature-card:hover{transform:translateY(-6px);box-shadow:0 16px 40px #00000014}.feature-icon{color:#fff;background:linear-gradient(135deg,#3b82f6,#06b6d4);border-radius:.75rem;justify-content:center;align-items:center;width:3rem;height:3rem;margin:0 auto 1rem;display:flex;box-shadow:0 4px 12px #3b82f64d}.cta-section{color:#fff;text-align:center;background:linear-gradient(135deg,#3b82f6,#06b6d4);border-radius:1rem;max-width:1200px;margin:6rem auto;padding:6rem 2rem}.cta-container h2{margin-bottom:1rem;font-size:2.5rem;font-weight:800}.cta-container p{opacity:.9;margin-bottom:2.5rem;font-size:1.1rem}.cta-buttons{flex-wrap:wrap;justify-content:center;gap:1rem;display:flex}.cta-buttons button{color:#0f172a;background:#fff;border-radius:.75rem;padding:.9rem 2rem;font-weight:600;transition:all .3s}.cta-buttons button:hover{background:#f1f5f9;transform:translateY(-3px)}.footer{text-align:center;background:#f8fafc;border-top:1px solid #e2e8f0;padding:2rem 0}.footer-bottom p{color:#64748b;font-size:.9rem}.login-wrapper button{color:#fff;cursor:pointer;background:linear-gradient(135deg,#265ae0,#10b981);border:none;border-radius:10px;outline:none;padding:.5rem 1.2rem;font-size:.9rem;font-weight:600;transition:all .3s;box-shadow:0 4px 12px #265ae04d}.login-wrapper button:hover{background:linear-gradient(135deg,#1e40af,#059669);transform:translateY(-2px);box-shadow:0 8px 20px #10b98166}.login-wrapper button:active{transform:scale(.9)}.login-wrapper{justify-content:center;align-items:center;display:inline-flex}.nav-links button{color:#fff;cursor:pointer;background:linear-gradient(135deg,#265ae0,#10b981);border:none;border-radius:8px;outline:none;padding:.4rem .9rem;font-size:.95rem;font-weight:600;transition:all .3s;box-shadow:0 4px 12px #265ae04d}.nav-links .nav-link{color:#e0e6ee;border-radius:.5rem;padding:.4rem .8rem;font-size:.95rem;font-weight:600;transition:background .3s,color .3s}.nav-links .nav-link:hover{color:#3730a3;background:#e0e7ff}.nav-links .nav-link:active{transform:scale(.95)}.nav-links{align-items:center;gap:1.5rem;display:flex}.medications-container{background-color:var(--background);min-height:100vh}.medications-header{border-bottom:1px solid var(--border);background-color:var(--card);box-shadow:var(--shadow-soft)}.header-inner{justify-content:space-between;align-items:center;max-width:1200px;margin:auto;padding:1rem;display:flex}.header-title{align-items:center;gap:.75rem;display:flex}.header-icon{background:var(--gradient-primary);border-radius:.5rem;justify-content:center;align-items:center;width:2.5rem;height:2.5rem;display:flex}.header-text{color:var(--foreground);font-size:1.5rem;font-weight:700}.medications-main{max-width:1200px;margin:auto;padding:2rem 1rem}.medications-grid{grid-template-columns:1fr;gap:2rem;display:grid}@media (min-width:1024px){.medications-grid{grid-template-columns:1fr 1fr}}.add-card{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background-color:#f8f3f3;border:1px solid #6366f126;border-radius:12px;padding:2rem;transition:all .3s;position:sticky;top:2rem;box-shadow:0 4px 12px #00000014}.add-card:hover{box-shadow:0 6px 16px #0000001f}.add-header{align-items:center;gap:.75rem;margin-bottom:2rem;display:flex}.add-icon{background:linear-gradient(135deg,#265ae0,#10b981);border-radius:.75rem;justify-content:center;align-items:center;width:2.5rem;height:2.5rem;display:flex;box-shadow:0 4px 12px #10b9814d}.add-title{color:var(--foreground);font-size:1.25rem;font-weight:600}.add-form .form-group{margin-bottom:1.5rem}.add-form label{color:var(--foreground);margin-bottom:.5rem;font-size:.875rem;font-weight:500;display:block}.add-form input{border:2px solid var(--border);width:100%;color:var(--foreground);background-color:#f5f5f5;border-radius:8px;padding:.75rem 1rem;font-size:.875rem;transition:all .2s;box-shadow:0 1px 3px #0000001a}.add-form .select-input{border:2px solid var(--border);width:106%;min-width:200px;color:var(--foreground);background-color:#f5f5f5;border-radius:8px;padding:.75rem 1rem;font-size:.875rem;transition:all .2s;box-shadow:0 1px 3px #0000001a}.add-form input:focus,.add-form .select-input:focus{border-color:#04053f;outline:none;transform:translateY(-1px);box-shadow:0 0 0 3px #6366f11a,0 1px 3px #0000001a}.add-form input:hover,.add-form .select-input:hover{border-color:var(--muted-foreground);background-color:#acaeaf}.add-form input::placeholder{color:var(--muted-foreground);opacity:.7}.timing-input-group{align-items:center;gap:8px;width:106%;margin-bottom:8px;display:flex}.timing-input-group input{flex:1;min-width:0;max-width:100%;margin-bottom:0}.add-btn{color:#fff;background:linear-gradient(135deg,#265ae0,#10b981);border:none;border-radius:8px;width:100%;margin-top:1.5rem;padding:.75rem 1.5rem;font-size:.875rem;font-weight:600;transition:all .2s;box-shadow:0 4px 12px #6366f14d}.add-btn:hover{background:linear-gradient(135deg,#5855eb 0%,#7c3aed 100%);transform:translateY(-2px);box-shadow:0 6px 20px #6366f166}.add-btn:active{transform:translateY(0);box-shadow:0 2px 8px #6366f14d}.add-form button[type=button]{border:2px solid var(--border);color:var(--foreground);background-color:#0000;border-radius:6px;margin-top:.5rem;padding:.5rem 1rem;font-size:.75rem;font-weight:500;transition:all .2s}.add-form button[type=button]:hover{background-color:#6366f10d;border-color:#6366f1;transform:translateY(-1px)}.timing-input-group button{color:#ef4444;background-color:#0000;border:2px solid #ef4444;border-radius:6px;flex-shrink:0;width:32px;height:32px;transition:all .2s}.timing-input-group button:hover{color:#fff;background-color:#ef4444;transform:scale(1.05)}.medications-header button{border:2px solid var(--border);color:var(--foreground);background-color:#0000;border-radius:6px;padding:.5rem 1rem;font-weight:500;transition:all .2s}.medications-header button:hover{border-color:var(--foreground);background-color:var(--muted);transform:translateY(-1px)}.list-container{background-color:#f7efef;border-radius:15px;flex-direction:column;display:flex}.list-title{background:linear-gradient(90deg,#0c0c17,#111014,#110d0f);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;margin:0;padding:1rem 0;font-size:1.5rem;font-weight:700;display:inline-block}.empty-card{text-align:center;box-shadow:var(--shadow-soft);background:linear-gradient(135deg,#ffffff0d 0%,#ffffff05 100%);border:1px solid #ffffff1a;border-radius:12px;padding:3rem 1rem}.empty-icon{width:3rem;height:3rem;color:var(--muted-foreground);margin:0 auto 1rem}.empty-title{color:var(--foreground);margin-bottom:.5rem;font-size:1.25rem;font-weight:600}.empty-text{color:var(--muted-foreground)}.med-card{box-shadow:var(--shadow-soft);background:linear-gradient(135deg,#edeeef 0%,#b9bfc3 100%);border:1px solid #6366f133;border-radius:12px;max-width:100%;margin-bottom:.05rem;padding:1rem;transition:all .3s;animation:.4s forwards fadeIn}.med-card:hover{background:linear-gradient(135deg,#ddd6fe 0%,#b3b6c0 100%);border-color:#f5f5fa66;transform:translateY(-2px);box-shadow:0 8px 25px #00000026}.med-item{justify-content:space-between;align-items:flex-start;display:flex}.med-left{align-items:flex-start;gap:1rem;display:flex}.med-icon{background:linear-gradient(135deg,#265ae0,#10b981);border-radius:.75rem;justify-content:center;align-items:center;width:3rem;height:3rem;display:flex;box-shadow:0 4px 12px #10b9814d}.med-name{color:var(--foreground);margin-bottom:.5rem;font-size:1.25rem;font-weight:700}.med-details{color:var(--muted-foreground);font-size:.875rem;line-height:1.4}.med-details p{margin-bottom:.25rem}.med-details b{color:var(--foreground);font-weight:600}.med-actions{gap:.5rem;display:flex}.med-actions button{border:2px solid var(--border);background-color:#0000;border-radius:6px;width:36px;height:36px;transition:all .2s}.med-actions button:hover{border-color:var(--foreground);background-color:var(--muted);transform:scale(1.05)}.med-actions button:last-child:hover{color:#ef4444;background-color:#ef44441a;border-color:#ef4444}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media (max-width:768px){.medications-main{padding:1rem}.add-card{padding:1.5rem;position:relative;top:0}.med-card{padding:1rem}.med-item{flex-direction:column;gap:1rem}.med-actions{align-self:flex-end}.timing-input-group,.add-form .select-input{width:100%}}@media (max-width:480px){.add-card{padding:1rem}.header-text{font-size:1.25rem}.add-title{color:#3f8c72;font-size:1.1rem}}button:focus-visible,input:focus-visible,select:focus-visible{outline-offset:2px;outline:2px solid #6366f1}.calendar-btn{color:#fff;cursor:pointer;float:right;background:linear-gradient(135deg,#265ae0,#10b981);border:none;border-radius:8px;margin-bottom:1rem;padding:.4rem .9rem;font-size:.85rem;transition:all .3s;box-shadow:0 3px 8px #10b9814d}.calendar-btn:hover{background:linear-gradient(135deg,#1e4dd8,#0d9668);transform:translateY(-1px);box-shadow:0 5px 12px #10b98166}@layer base{@apply bg-background text-foreground;body{background-image:url(/background-ligh.png);background-position:50%;background-size:cover;background-attachment:fixed;transition:background .5s}.dark body{background-image:none;background-color:hsl(var(--background))}}
