/* =====================================================
   Caawiye Platform — Main Stylesheet v1.1
   ===================================================== */
:root{
  --teal:#0D9488;--teal-dark:#0f766e;--teal-light:#CCFBF1;--teal-xlight:#F0FDFA;
  --navy:#0F172A;--slate:#475569;--light-gray:#F8FAFC;--border:#E2E8F0;--white:#FFFFFF;
  --success:#16A34A;--warning:#D97706;--danger:#DC2626;
  --shadow-sm:0 1px 3px rgba(0,0,0,.08);--shadow-md:0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:0 8px 32px rgba(13,148,136,.15);--radius:12px;--radius-lg:20px;
}
*{box-sizing:border-box}
body{font-family:'Plus Jakarta Sans',sans-serif;color:var(--navy);background:#fff;margin:0}
a{text-decoration:none;color:var(--teal)}a:hover{color:var(--teal-dark)}
/* TOPBAR */
.topbar{background:var(--teal-dark);color:rgba(255,255,255,.85);font-size:.8rem;padding:7px 0}
.topbar-link{color:rgba(255,255,255,.7);font-size:.8rem;font-weight:600}
.topbar-link.active,.topbar-link:hover{color:#fff}
/* NAVBAR */
.caawiye-nav{background:var(--teal);padding:14px 0;box-shadow:0 2px 12px rgba(13,148,136,.3)}
.navbar-brand{font-size:1.5rem;font-weight:800;color:#fff!important;letter-spacing:-.5px}
.caawiye-nav .nav-link{color:rgba(255,255,255,.85)!important;font-weight:500;border-radius:8px;padding:6px 14px!important;transition:all .2s}
.caawiye-nav .nav-link:hover,.caawiye-nav .nav-link.active{color:#fff!important;background:rgba(255,255,255,.15)}
/* BUTTONS */
.btn-teal{background:var(--teal);color:#fff;border:none;border-radius:10px;font-weight:600}
.btn-teal:hover{background:var(--teal-dark);color:#fff}
.btn-outline-teal{border:2px solid var(--teal);color:var(--teal);border-radius:10px;font-weight:600;background:transparent}
.btn-outline-teal:hover{background:var(--teal);color:#fff}
.btn{border-radius:10px;font-weight:600}
/* HERO */
.hero-section{background:linear-gradient(135deg,var(--teal-dark) 0%,var(--teal) 50%,#14B8A6 100%);color:#fff;padding:100px 0 80px;position:relative;overflow:hidden}
.hero-section::before{content:'';position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/svg%3E")}
.hero-title{font-size:clamp(2rem,5vw,3.5rem);font-weight:800;line-height:1.15}
.hero-sub{font-size:1.15rem;opacity:.9;max-width:540px}
.hero-badge{background:rgba(255,255,255,.2);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.3);border-radius:50px;padding:6px 16px;font-size:.85rem;display:inline-flex;align-items:center;gap:8px;margin-bottom:20px}
.hero-img-wrap{position:relative}.hero-img-wrap img{border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);max-height:420px;object-fit:cover;width:100%}
/* STATS */
.stats-bar{background:#fff;border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);padding:28px 32px;margin-top:-48px;position:relative;z-index:10}
.stat-item{text-align:center}
.stat-number{font-size:2rem;font-weight:800;color:var(--teal);line-height:1}
.stat-label{font-size:.8rem;color:var(--slate);font-weight:500;margin-top:4px}
/* SECTION */
.section-pad{padding:80px 0}
.section-label{font-size:.8rem;font-weight:700;color:var(--teal);text-transform:uppercase;letter-spacing:1.5px}
.section-title{font-size:clamp(1.6rem,3vw,2.4rem);font-weight:800;line-height:1.2}
.section-sub{font-size:1.05rem;color:var(--slate);max-width:560px}
/* CARDS */
.service-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:28px 24px;transition:all .3s;height:100%}
.service-card:hover{border-color:var(--teal);box-shadow:var(--shadow-lg);transform:translateY(-4px)}
.service-icon{width:56px;height:56px;background:var(--teal-xlight);border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:1.6rem;margin-bottom:16px}
.hospital-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:all .3s;height:100%}
.hospital-card:hover{box-shadow:var(--shadow-lg);transform:translateY(-4px)}
.hospital-card-img{height:160px;object-fit:cover;width:100%;background:var(--teal-light)}
.hospital-card-body{padding:20px}
.badge-featured{background:var(--teal);color:#fff;font-size:.7rem;padding:3px 10px;border-radius:50px}
/* HOW IT WORKS */
.hiw-bg{background:var(--teal-xlight)}
.hiw-step{text-align:center;padding:20px}
.hiw-number{width:56px;height:56px;background:var(--teal);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.3rem;font-weight:800;margin:0 auto 16px}
/* AUTH */
.auth-wrap{min-height:100vh;display:flex}
.auth-left{background:linear-gradient(160deg,var(--teal-dark),var(--teal));flex:1;display:flex;flex-direction:column;justify-content:center;padding:60px;color:#fff}
.auth-right{flex:1;display:flex;align-items:center;justify-content:center;padding:40px;background:var(--light-gray)}
.auth-card{background:#fff;border-radius:var(--radius-lg);box-shadow:var(--shadow-md);padding:44px 40px;width:100%;max-width:460px}
.auth-logo{font-size:1.8rem;font-weight:800;color:var(--teal);margin-bottom:8px}
.form-label{font-weight:600;font-size:.88rem;color:var(--slate)}
.form-control,.form-select{border-radius:10px;border:1.5px solid var(--border);padding:10px 14px;font-size:.95rem}
.form-control:focus,.form-select:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(13,148,136,.12)}
.input-group-text{border-radius:10px 0 0 10px;border:1.5px solid var(--border);background:var(--light-gray)}
.role-card{border:2px solid var(--border);border-radius:var(--radius);padding:16px;cursor:pointer;transition:all .2s;text-align:center}
.role-card:hover,.role-card.selected{border-color:var(--teal);background:var(--teal-xlight)}
.role-card .role-icon{font-size:2rem;margin-bottom:8px}
/* DASHBOARD */
.dashboard-sidebar{width:260px;height:100vh;background:var(--navy);color:#fff;position:fixed;top:0;left:0;z-index:100;display:flex;flex-direction:column;transition:transform .3s}
.sidebar-logo{padding:22px 20px;font-size:1.3rem;font-weight:800;color:#fff;border-bottom:1px solid rgba(255,255,255,.08);display:flex;align-items:center;gap:10px}
.sidebar-nav{flex:1;padding:16px 12px;overflow-y:auto;-webkit-overflow-scrolling:touch}
.sidebar-nav::-webkit-scrollbar{width:5px}
.sidebar-nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.15);border-radius:10px}
.sidebar-nav::-webkit-scrollbar-track{background:transparent}
.sidebar-link{display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:10px;color:rgba(255,255,255,.65);font-weight:500;font-size:.92rem;transition:all .2s;margin-bottom:4px}
.sidebar-link:hover,.sidebar-link.active{background:rgba(255,255,255,.1);color:#fff}
.sidebar-link.active{background:var(--teal);color:#fff}
.sidebar-link i{font-size:1.1rem;width:20px}
.sidebar-section-label{font-size:.7rem;text-transform:uppercase;letter-spacing:1.5px;color:rgba(255,255,255,.3);padding:14px 14px 4px;font-weight:600}
.sidebar-user{padding:16px 20px;border-top:1px solid rgba(255,255,255,.08);display:flex;align-items:center;gap:12px}
.sidebar-avatar{width:38px;height:38px;border-radius:50%;background:var(--teal);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.9rem;flex-shrink:0}
.dashboard-main{margin-left:260px;min-height:100vh;background:var(--light-gray)}
.dash-topbar{background:#fff;padding:14px 28px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:50;box-shadow:var(--shadow-sm)}
.dash-content{padding:28px}
/* STAT CARDS */
.stat-card{background:#fff;border-radius:var(--radius);padding:24px;border:1px solid var(--border);transition:box-shadow .2s}
.stat-card:hover{box-shadow:var(--shadow-md)}
.stat-card .icon-wrap{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:1.4rem}
.stat-card .stat-val{font-size:1.8rem;font-weight:800;line-height:1}
.stat-card .stat-lbl{font-size:.82rem;color:var(--slate);margin-top:4px}
/* DATA TABLE */
.data-table{background:#fff;border-radius:var(--radius);border:1px solid var(--border);overflow:hidden}
.data-table table{margin:0}
.data-table thead th{background:var(--light-gray);font-weight:600;font-size:.82rem;text-transform:uppercase;letter-spacing:.5px;color:var(--slate);padding:12px 16px;border-bottom:1px solid var(--border)}
.data-table tbody td{padding:13px 16px;vertical-align:middle;border-bottom:1px solid var(--border);font-size:.9rem}
.data-table tbody tr:last-child td{border-bottom:none}
.data-table tbody tr:hover td{background:var(--teal-xlight)}
/* BADGES */
.status-badge{padding:4px 12px;border-radius:50px;font-size:.75rem;font-weight:600;display:inline-block}
.status-active{background:#DCFCE7;color:#15803D}
.status-pending{background:#FEF3C7;color:#92400E}
.status-inactive,.status-suspended{background:#FEE2E2;color:#B91C1C}
.status-confirmed{background:#DBEAFE;color:#1D4ED8}
.status-completed{background:#DCFCE7;color:#15803D}
.status-cancelled{background:#F1F5F9;color:#64748B}
.status-in_progress{background:#E9D5FF;color:#6D28D9}
/* FORMS */
.form-section{background:#fff;border-radius:var(--radius);border:1px solid var(--border);padding:24px;margin-bottom:20px}
.form-section-title{font-weight:700;font-size:1rem;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:8px}
/* MODAL OVERLAY */
.modal-overlay{display:none;position:fixed;inset:0;background:rgba(15,23,42,.5);z-index:200;align-items:center;justify-content:center}
.modal-overlay.show{display:flex}
.modal-box{background:#fff;border-radius:var(--radius-lg);padding:32px;max-width:480px;width:90%;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,.2)}
/* AI CHAT */
.ai-chat-fab{position:fixed;bottom:24px;right:24px;width:56px;height:56px;background:var(--teal);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 20px rgba(13,148,136,.4);z-index:999;transition:transform .2s;border:none}
.ai-chat-fab:hover{transform:scale(1.1)}
.ai-chat-widget{position:fixed;bottom:24px;right:24px;width:340px;height:480px;background:#fff;border-radius:var(--radius-lg);box-shadow:0 8px 40px rgba(0,0,0,.18);z-index:1000;flex-direction:column;overflow:hidden;display:none}
.ai-chat-header{background:var(--teal);color:#fff;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;font-weight:600}
.ai-chat-messages{flex:1;padding:16px;overflow-y:auto;display:flex;flex-direction:column;gap:12px;background:#f8fafc}
.ai-msg.user{align-self:flex-end}.ai-msg.assistant{align-self:flex-start}
.msg-bubble{max-width:240px;padding:10px 14px;border-radius:14px;font-size:.88rem;line-height:1.5}
.ai-msg.user .msg-bubble{background:var(--teal);color:#fff;border-radius:14px 14px 4px 14px}
.ai-msg.assistant .msg-bubble{background:#fff;color:var(--navy);border:1px solid var(--border);border-radius:14px 14px 14px 4px}
.ai-chat-input{padding:12px;border-top:1px solid var(--border);display:flex;gap:8px;background:#fff}
.ai-chat-input input{flex:1;border:1.5px solid var(--border);border-radius:10px;padding:8px 12px;font-size:.88rem;outline:none;font-family:inherit}
.ai-chat-input input:focus{border-color:var(--teal)}
.ai-chat-input button{background:var(--teal);color:#fff;border:none;border-radius:10px;width:38px;height:38px;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0}
.typing-dots span{display:inline-block;width:6px;height:6px;background:var(--teal);border-radius:50%;margin:0 2px;animation:bounce 1.2s infinite}
.typing-dots span:nth-child(2){animation-delay:.2s}.typing-dots span:nth-child(3){animation-delay:.4s}
@keyframes bounce{0%,80%,100%{transform:translateY(0)}40%{transform:translateY(-6px)}}
/* FOOTER */
.caawiye-footer{background:var(--navy);color:rgba(255,255,255,.7)}
.footer-brand{font-size:1.5rem;font-weight:800;color:#fff}
.footer-heading{color:#fff;font-weight:700;font-size:.85rem;text-transform:uppercase;letter-spacing:1px;margin-bottom:16px}
.footer-links{list-style:none;padding:0}.footer-links li{margin-bottom:10px;font-size:.9rem}
.footer-links a{color:rgba(255,255,255,.6);transition:color .2s}.footer-links a:hover{color:#fff}
.social-icon{width:36px;height:36px;background:rgba(255,255,255,.1);border-radius:8px;display:inline-flex;align-items:center;justify-content:center;color:rgba(255,255,255,.7);transition:all .2s}
.social-icon:hover{background:var(--teal);color:#fff}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding:20px 0;display:flex;align-items:center;justify-content:space-between;font-size:.85rem;flex-wrap:wrap;gap:12px}
.footer-bottom a{color:rgba(255,255,255,.5)}.footer-bottom a:hover{color:#fff}
/* ANNOUNCEMENT */
.announcement-card{background:#fff;border-radius:0 var(--radius) var(--radius) 0;padding:20px;border:1px solid var(--border);border-left:4px solid var(--teal)}
.announcement-type{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:1px}
.type-news{color:var(--teal)}.type-event{color:#7C3AED}.type-offer{color:var(--success)}.type-alert{color:var(--danger)}
/* PAGE HEADER */
.page-header{background:linear-gradient(135deg,var(--teal-dark),var(--teal));padding:52px 0 40px;color:#fff}
.page-header h1{font-weight:800;font-size:clamp(1.8rem,4vw,2.6rem)}
.page-header p{opacity:.85;margin:8px 0 0;font-size:1rem}
/* PROFILE AVATAR */
.profile-avatar-lg{width:80px;height:80px;border-radius:50%;background:var(--teal);display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:800;color:#fff;flex-shrink:0}
/* ALERT BANNER */
.alert-caawiye{border-radius:var(--radius);padding:14px 18px;font-size:.9rem;border:1px solid;display:flex;align-items:flex-start;gap:10px}
.alert-caawiye.info{background:#DBEAFE;border-color:#93C5FD;color:#1E40AF}
.alert-caawiye.warning{background:#FEF3C7;border-color:#FDE68A;color:#92400E}
.alert-caawiye.success{background:#DCFCE7;border-color:#86EFAC;color:#15803D}
/* UTILITY */
.text-teal{color:var(--teal)!important}.bg-teal{background:var(--teal)!important}
.fw-800{font-weight:800!important}.rounded-xl{border-radius:var(--radius)!important}
.shadow-teal{box-shadow:var(--shadow-lg)!important}
.card-hover{transition:all .3s}.card-hover:hover{box-shadow:var(--shadow-lg);transform:translateY(-3px)}
/* RESPONSIVE */
@media(max-width:992px){
  .dashboard-sidebar{transform:translateX(-100%);width:280px;max-width:80vw;height:100dvh;box-shadow:4px 0 24px rgba(0,0,0,.3)}
  .dashboard-sidebar.open{transform:translateX(0)}
  .dashboard-main{margin-left:0}.auth-left{display:none}.auth-right{flex:1}
  .stats-bar{margin-top:0;border-radius:var(--radius)}
}
@media(min-width:993px){
  .dashboard-sidebar{height:100dvh}
}
.sidebar-nav{-webkit-overflow-scrolling:touch}
@media(max-width:576px){
  .hero-section{padding:60px 0 40px}
  .ai-chat-widget{width:calc(100vw - 32px);right:16px;bottom:16px}
  .auth-card{padding:28px 20px}.dash-content{padding:16px}
  .dash-topbar{padding:12px 16px}
}
