/* LifeKey CSS v2.0 — with Home Page */
#lk-app *{box-sizing:border-box;margin:0;padding:0;font-family:Arial,sans-serif}
.lk-app{border:1px solid #e0e0e0;border-radius:12px;overflow:hidden;background:#fff;min-height:500px}

/* ═══ HOME NAV ═══ */
.lk-home-nav{display:flex;align-items:center;justify-content:space-between;padding:14px 28px;background:#fff;border-bottom:1px solid #e8e8e8;position:sticky;top:0;z-index:10}
.lk-home-brand{font-size:20px;font-weight:800;color:#1a7f5a}
.lk-home-nav-links{display:flex;align-items:center;gap:20px}
.lk-home-nav-links a{font-size:13px;color:#555;text-decoration:none;font-weight:500}
.lk-home-nav-links a:hover{color:#1a7f5a}
.lk-btn-nav{background:#1a7f5a;color:#fff;border:none;padding:9px 18px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer}

/* ═══ HERO ═══ */
.lk-hero{background:linear-gradient(135deg,#e8f5f0 0%,#e6f1fb 60%,#fdf3e3 100%);padding:52px 28px 40px;text-align:center}
.lk-hero-badge{display:inline-block;background:#1a7f5a;color:#fff;font-size:11px;font-weight:600;padding:5px 14px;border-radius:20px;margin-bottom:16px;letter-spacing:.5px}
.lk-hero-title{font-size:36px;font-weight:800;color:#1a1a1a;line-height:1.2;margin-bottom:12px}
.lk-hero-title span{color:#1a7f5a;font-size:28px}
.lk-hero-sub{font-size:15px;color:#555;max-width:560px;margin:0 auto 24px;line-height:1.7}
.lk-hero-btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-bottom:32px}
.lk-btn-hero-primary{background:#1a7f5a;color:#fff;border:none;padding:12px 24px;border-radius:10px;font-size:14px;font-weight:700;cursor:pointer;transition:.15s}
.lk-btn-hero-primary:hover{background:#155f44}
.lk-btn-hero-outline{background:#fff;color:#1a7f5a;border:2px solid #1a7f5a;padding:11px 24px;border-radius:10px;font-size:14px;font-weight:700;cursor:pointer}
.lk-hero-stats{display:flex;gap:24px;justify-content:center;flex-wrap:wrap;margin-top:8px}
.lk-hero-stat{display:flex;flex-direction:column;align-items:center;gap:4px}
.lk-hero-stat span{font-size:28px}
.lk-hero-stat b{font-size:12px;font-weight:700;color:#222}
.lk-hero-stat small{font-size:10px;color:#888}

/* ═══ PASSWORD BANNER ═══ */
.lk-pass-banner{background:#1a7f5a;color:#fff;padding:16px 28px}
.lk-pass-banner-inner{display:flex;align-items:center;gap:16px;max-width:900px;margin:0 auto;flex-wrap:wrap}
.lk-pass-icon{font-size:28px;flex-shrink:0}
.lk-pass-banner b{font-size:15px}
.lk-pass-banner small{font-size:12px;opacity:.85}

/* ═══ SECTIONS ═══ */
.lk-home-section{padding:48px 28px}
.lk-how-section{background:#f8fffe}
.lk-section-head{text-align:center;margin-bottom:32px}
.lk-section-badge{display:inline-block;background:#e8f5f0;color:#1a7f5a;font-size:11px;font-weight:600;padding:4px 14px;border-radius:20px;margin-bottom:10px}
.lk-section-head h2{font-size:26px;font-weight:800;color:#1a1a1a;margin-bottom:8px}
.lk-section-head p{font-size:14px;color:#666}

/* ═══ FEATURES GRID ═══ */
.lk-features-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;max-width:900px;margin:0 auto}
.lk-feat-card{background:#fff;border:1px solid #e8e8e8;border-radius:12px;padding:20px;transition:.15s}
.lk-feat-card:hover{box-shadow:0 4px 16px rgba(0,0,0,.08);transform:translateY(-2px)}
.lk-feat-icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:24px;margin-bottom:12px}
.lk-feat-card h3{font-size:14px;font-weight:700;color:#222;margin-bottom:10px}
.lk-feat-card ul{list-style:none;padding:0}
.lk-feat-card ul li{font-size:12px;color:#555;padding:3px 0;padding-left:14px;position:relative}
.lk-feat-card ul li::before{content:'✓';position:absolute;left:0;color:#1a7f5a;font-weight:700}

/* ═══ HOW IT WORKS ═══ */
.lk-how-steps{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;max-width:800px;margin:0 auto}
.lk-how-step{text-align:center;background:#fff;border:1px solid #e8e8e8;border-radius:12px;padding:20px 16px;min-width:140px}
.lk-step-num{width:24px;height:24px;border-radius:50%;background:#1a7f5a;color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;margin:0 auto 8px}
.lk-step-icon{font-size:28px;margin-bottom:8px}
.lk-how-step h4{font-size:13px;font-weight:700;color:#222;margin-bottom:4px}
.lk-how-step p{font-size:11px;color:#777}
.lk-how-arrow{font-size:20px;color:#1a7f5a;font-weight:700}

/* ═══ MENU OVERVIEW ═══ */
.lk-menu-overview{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;max-width:900px;margin:0 auto}
.lk-menu-group{background:#f8fffe;border:1px solid #e0f0ea;border-radius:12px;padding:16px}
.lk-menu-group-title{font-size:13px;font-weight:700;color:#1a7f5a;margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid #e0f0ea}
.lk-menu-item{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#333;padding:6px 0;border-bottom:1px solid #f0f0f0}
.lk-menu-item:last-child{border:none}
.lk-menu-item span{font-size:10px;color:#999}

/* ═══ FOOTER ═══ */
.lk-home-footer{background:#1a1a2e;color:#fff;text-align:center;padding:32px 20px}
.lk-footer-logo{font-size:22px;font-weight:800;margin-bottom:8px}
.lk-home-footer p{font-size:13px;opacity:.7}

/* ═══ LOGIN ═══ */
.lk-login-wrap{min-height:500px;background:linear-gradient(135deg,#e8f5f0,#e6f1fb);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 20px}
.lk-back-home{background:none;border:none;color:#1a7f5a;font-size:13px;font-weight:600;cursor:pointer;margin-bottom:16px;align-self:flex-start}
.lk-login-box{background:#fff;border-radius:16px;padding:32px 28px;width:100%;max-width:380px;box-shadow:0 4px 24px rgba(0,0,0,.08)}
.lk-logo{font-size:26px;font-weight:800;color:#1a7f5a;text-align:center;margin-bottom:4px}
.lk-logo span{font-size:24px}
.lk-tagline{font-size:12px;color:#888;text-align:center;margin-bottom:16px}
.lk-pass-info-box{background:#e8f5f0;border:1px solid #9FE1CB;border-radius:8px;padding:10px 12px;font-size:12px;color:#0f6e56;margin-bottom:16px;line-height:1.6}
.lk-login-box label{display:block;font-size:12px;color:#555;margin-bottom:4px;font-weight:500}
.lk-login-box input{width:100%;padding:11px 14px;border:1px solid #ddd;border-radius:8px;font-size:14px;margin-bottom:12px}
.lk-login-box input:focus{outline:none;border-color:#1a7f5a}
.lk-msg{font-size:12px;color:#c0392b;margin-top:8px;min-height:18px}

/* ═══ MAIN APP ═══ */
#lk-main{display:flex;min-height:580px}
.lk-sidebar{width:200px;min-width:200px;background:#1a7f5a;display:flex;flex-direction:column}
.lk-logo-sm{color:#fff;font-size:14px;font-weight:700;padding:14px;border-bottom:1px solid rgba(255,255,255,.15)}
.lk-nav{flex:1;padding:6px 0;overflow-y:auto}
.lk-nav-group{font-size:9px;text-transform:uppercase;letter-spacing:.8px;color:rgba(255,255,255,.5);padding:10px 12px 3px;font-weight:600}
.lk-nav-item{display:block;padding:8px 12px;font-size:12px;color:rgba(255,255,255,.82);cursor:pointer;text-decoration:none;border-left:3px solid transparent;transition:.12s}
.lk-nav-item:hover{background:rgba(255,255,255,.12);color:#fff}
.lk-nav-item.active{background:rgba(255,255,255,.18);color:#fff;border-left-color:#fff;font-weight:600}
.lk-submenu{display:none;background:rgba(0,0,0,.15);padding:2px 0}
.lk-sub-item{display:block;padding:7px 12px 7px 22px;font-size:11px;color:rgba(255,255,255,.75);cursor:pointer;text-decoration:none;transition:.12s}
.lk-sub-item:hover{color:#fff;background:rgba(255,255,255,.1)}
.lk-sub-item.active{color:#fff;font-weight:600}
.lk-logout-btn{margin:10px;padding:8px;background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.25);border-radius:8px;font-size:12px;cursor:pointer}
.lk-content-wrap{flex:1;display:flex;flex-direction:column;overflow:hidden}
.lk-topbar{padding:11px 16px;background:#fff;border-bottom:1px solid #e8e8e8;display:flex;align-items:center;justify-content:space-between}
.lk-topbar h2{font-size:14px;font-weight:700;color:#222}
.lk-topbar-meta{font-size:11px;color:#888;margin-top:2px}
.lk-content{flex:1;overflow-y:auto;padding:14px}
.lk-page{animation:lkFade .2s ease}
@keyframes lkFade{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}

/* ═══ STATS ═══ */
.lk-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:12px}
.lk-stat{background:#fff;border:1px solid #e8e8e8;border-radius:10px;padding:11px 12px}
.lk-stat-label{font-size:10px;color:#888;margin-bottom:4px}
.lk-stat-val{font-size:20px;font-weight:700;color:#1a7f5a}
.lk-stat-amber .lk-stat-val{color:#e67e22}
.lk-stat-blue .lk-stat-val{color:#2563eb}
.lk-stat-red .lk-stat-val{color:#c0392b}

/* ═══ CARDS ═══ */
.lk-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.lk-card{background:#fff;border:1px solid #e8e8e8;border-radius:10px;padding:13px 14px}
.lk-card h3{font-size:13px;font-weight:700;color:#333;margin-bottom:10px;padding-bottom:7px;border-bottom:1px solid #f0f0f0}
.lk-card-wide{grid-column:1/-1}
.lk-card-red{border-color:#f5c4c4}
.lk-center{text-align:center}

/* ═══ FORM ═══ */
.lk-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.lk-form-grid label{display:flex;flex-direction:column;gap:4px;font-size:11px;color:#555;font-weight:500}
.lk-form-grid input,.lk-form-grid select{padding:8px 10px;border:1px solid #ddd;border-radius:6px;font-size:13px;color:#333}
.lk-form-grid input:focus,.lk-form-grid select:focus{outline:none;border-color:#1a7f5a}
.lk-full{grid-column:1/-1}

/* ═══ BUTTONS ═══ */
.lk-btn{padding:9px 16px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;border:none;transition:.12s}
.lk-btn-primary{background:#1a7f5a;color:#fff}
.lk-btn-primary:hover{background:#155f44}
.lk-btn-link{background:none;color:#1a7f5a;font-weight:500;padding:6px 0;font-size:12px}
.lk-btn-sm{padding:5px 10px;font-size:11px;border-radius:6px;border:1px solid #ddd;background:#fff;cursor:pointer;font-weight:500;color:#333}
.lk-btn-sm.lk-btn-primary{background:#1a7f5a;color:#fff;border:none}
.lk-btn-sm.lk-btn-red{background:#c0392b;color:#fff;border:none}
.lk-sos-btn{background:#c0392b;color:#fff;border:none;padding:7px 12px;border-radius:8px;font-size:11px;font-weight:600;cursor:pointer}
.lk-sos-big{width:100%;background:#c0392b;color:#fff;border:none;padding:14px;border-radius:8px;font-size:15px;font-weight:700;cursor:pointer;margin-bottom:6px}

/* ═══ ROWS ═══ */
.lk-item-row{display:flex;align-items:center;justify-content:space-between;padding:7px 0;border-bottom:1px solid #f5f5f5;font-size:12px}
.lk-item-row:last-child{border:none}
.lk-item-name{font-weight:600;color:#222}
.lk-item-hint{color:#888;font-size:11px;margin-top:1px}
.lk-item-actions{display:flex;gap:5px;margin-left:8px;flex-shrink:0}
.lk-pill{display:inline-flex;align-items:center;padding:3px 9px;border-radius:20px;font-size:10px;font-weight:600}
.lk-pill-green{background:#e8f5f0;color:#0f6e56}
.lk-pill-amber{background:#fdf3e3;color:#854f0b}
.lk-pill-red{background:#fcebeb;color:#a32d2d}
.lk-pill-blue{background:#e6f1fb;color:#185fa5}

/* ═══ CHAT ═══ */
.lk-chat-wrap{display:flex;flex-direction:column}
.lk-chat-msgs{overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:10px;background:#f8fffe;border:1px solid #e0e0e0;border-radius:10px;margin-bottom:10px;min-height:340px;max-height:380px}
.lk-msg{max-width:82%;padding:10px 14px;border-radius:12px;font-size:13px;line-height:1.6}
.lk-msg-user{background:#1a7f5a;color:#fff;align-self:flex-end;border-bottom-right-radius:3px}
.lk-msg-ai{background:#fff;color:#333;align-self:flex-start;border:1px solid #e0e0e0;border-bottom-left-radius:3px}
.lk-ai-label{font-size:10px;font-weight:700;color:#1a7f5a;margin-bottom:4px}
.lk-chat-input-row{display:flex;gap:8px}
.lk-chat-input-row input{flex:1;padding:10px 14px;border:1px solid #ddd;border-radius:20px;font-size:13px}
.lk-chat-input-row input:focus{outline:none;border-color:#1a7f5a}
.lk-typing span{display:inline-block;width:7px;height:7px;border-radius:50%;background:#ccc;margin:0 2px;animation:lkBounce .8s infinite}
.lk-typing span:nth-child(2){animation-delay:.15s}
.lk-typing span:nth-child(3){animation-delay:.3s}
@keyframes lkBounce{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-5px)}}

/* ═══ MISC ═══ */
.lk-empty{font-size:12px;color:#aaa;padding:14px 0;text-align:center}
.lk-inline-msg{font-size:11px;margin-left:10px;color:#1a7f5a}
.lk-ai-badge{background:#1a7f5a;color:#fff;font-size:9px;padding:2px 7px;border-radius:10px;margin-left:5px}
.lk-file-row{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #f0f0f0;font-size:12px}
.lk-file-icon{font-size:18px}
.lk-file-info{flex:1}
.lk-file-name{font-weight:600;color:#222}
.lk-file-meta{font-size:11px;color:#888}
.lk-doc-card{background:#fff;border:1px solid #e0e0e0;border-radius:10px;padding:13px;margin-bottom:10px}
.lk-doc-avatar{width:40px;height:40px;border-radius:50%;background:#e8f5f0;color:#0f6e56;font-size:14px;font-weight:700;display:flex;align-items:center;justify-content:center}

@media(max-width:640px){
  .lk-features-grid{grid-template-columns:1fr 1fr}
  .lk-menu-overview{grid-template-columns:1fr 1fr}
  .lk-how-arrow{display:none}
  .lk-sidebar{width:48px;min-width:48px}
  .lk-nav-group{display:none}
  .lk-nav-item{font-size:16px;padding:10px 0;text-align:center}
  .lk-logo-sm{font-size:18px;text-align:center;padding:12px 4px}
  .lk-stats{grid-template-columns:1fr 1fr}
  .lk-cards{grid-template-columns:1fr}
  .lk-form-grid{grid-template-columns:1fr}
  .lk-full{grid-column:1}
}
