# Redesigned `css/style.css`

```css
:root {
    --bg: #07090d;
    --bg-secondary: #0c1118;
    --panel: rgba(15, 23, 42, 0.88);
    --panel-solid: #111827;
    --card: rgba(17, 24, 39, 0.82);
    --card-hover: rgba(30, 41, 59, 0.92);
    --text: #f8fafc;
    --muted: #b6c4d6;
    --primary: #22d3ee;
    --primary-2: #38bdf8;
    --success: #22c55e;
    --danger: #ef4444;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    --radius: 18px;
}

.home-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.home-logo img {
    width: 120px;   /* adjust size */
    height: auto;
    object-fit: contain;
}


    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    color: var(--text);
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.018) 0 5px,
            transparent 5px 14px
        ),
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.08), transparent 40%),
        linear-gradient(180deg, var(--bg), var(--bg-secondary));
    min-height: 100vh;
}



.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(2, 8, 23, 0.88);
    backdrop-filter: blur(14px);
    border-right: 1px solid rgba(34, 211, 238, 0.08);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    height: 100vh;
}

.logo img {
    width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar ul li {
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    color: #dbeafe;
    font-weight: 600;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.sidebar ul li:hover {
    background: rgba(34, 211, 238, 0.08);
    border-color: rgba(34, 211, 238, 0.12);
    transform: translateX(4px);
    color: #fff;
}

.bottom-section {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bottom-section button,
.logout {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.bottom-section button:hover,
.logout:hover {
    background: rgba(34, 211, 238, 0.08);
    border-color: rgba(34, 211, 238, 0.2);
}

.logout {
    color: #fca5a5;
}

/* Main */
.main {
    flex: 1;
    padding: 36px;
    overflow-y: auto;
}

.main h1 {
    margin-top: 0;
    font-size: 2.2rem;
    font-weight: 800;
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeInUp 0.45s ease;
}

/* Grid */
.dashboard-grid,
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* Cards */
.card,
.chat-card,
.chat-sidebar {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover,
.chat-card:hover,
.chat-sidebar:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.15);
}

.card h2,
.card h3,
.chat-sidebar h3 {
    margin-top: 0;
    color: var(--primary);
    font-weight: 700;
}

.card p,
.card li,
.contact-details p,
.about-content p {
    color: #dfe7f2;
    line-height: 1.7;
}

/* Buttons */
.card-btn,
button,
.chat-sidebar button {
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(90deg, var(--primary-2), var(--primary));
    color: #001018;
    box-shadow: 0 10px 25px rgba(34, 211, 238, 0.2);
    transition: all 0.25s ease;
}

.card-btn:hover,
button:hover,
.chat-sidebar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(34, 211, 238, 0.28);
}

/* Inputs */
textarea,
input,
select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: all 0.25s ease;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

textarea:focus,
input:focus,
select:focus {
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

/* Chat */
.chat-main {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.chat-card {
    flex: 2;
}

.chat-sidebar {
    flex: 1;
    min-width: 260px;
    max-height: 520px;
    overflow-y: auto;
}

.chat-container {
    height: 360px;
    overflow-y: auto;
    background: rgba(2, 8, 23, 0.55);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
}

.user-msg,
.bot-msg {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 14px;
    margin: 8px 0;
    max-width: 80%;
    line-height: 1.6;
}

.user-msg {
    background: linear-gradient(90deg, #0284c7, #06b6d4);
    color: white;
}

.bot-msg {
    background: rgba(255,255,255,0.08);
    color: var(--text);
}

input.chat-input {
    flex: 1;
}

/* Progress */
.progress-bar {
    width: 100%;
    height: 14px;
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 12px;
}

.progress-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--success), var(--primary-2));
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
    transition: width 1s ease;
}

/* Emergency */
.emergency-window {
    padding: 28px;
}

.emergency-title {
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.emergency-contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    margin-bottom: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.08);
    font-size: 1.8rem;
}

.contact-details {
    flex: 1;
}

.contact-details h3 {
    margin: 0 0 6px;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.emergency-call-btn,
.whatsapp-btn {
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.emergency-call-btn {
    background: #16a34a;
}

.whatsapp-btn {
    background: #25d366;
}

/* About */
.about-main-card {
    grid-column: span 2;
}

.about-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.about-logo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-2), var(--success));
    font-size: 2rem;
}

.about-subtitle {
    color: var(--muted);
}

/* Misc */
.rating span {
    cursor: pointer;
    font-size: 20px;
    color: #64748b;
}

.rating span:hover {
    color: gold;
}

canvas {
    width: 100% !important;
    height: 250px !important;
    display: block;
}

.main::-webkit-scrollbar,
.chat-container::-webkit-scrollbar,
.chat-sidebar::-webkit-scrollbar {
    width: 8px;
}

.main::-webkit-scrollbar-thumb,
.chat-container::-webkit-scrollbar-thumb,
.chat-sidebar::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, 0.25);
    border-radius: 999px;
}

/* Theme Support */
.light-mode {
    background: #f8fafc;
    color: #0f172a;
}

.light-mode .sidebar {
    background: rgba(255, 255, 255, 0.95);
}

.light-mode .card,
.light-mode .chat-card,
.light-mode .chat-sidebar {
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
}

.light-mode .card p,
.light-mode .card li,
.light-mode .about-content p,
.light-mode .contact-details p {
    color: #334155;
}

/* Animations */
.fade-in {
    animation: fadeInUp 0.6s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .about-main-card {
        grid-column: span 1;
    }

    .about-header,
    .emergency-contact-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-actions {
        width: 100%;
        flex-direction: row;
    }

    .contact-actions a {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 16px;
    }

    .sidebar ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .sidebar ul li {
        text-align: center;
        font-size: 0.9rem;
        padding: 10px;
    }

    .bottom-section {
        flex-direction: row;
    }

    .main {
        padding: 20px;
    }

    .dashboard-grid,
    .cards {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .chat-main {
        flex-direction: column;
    }

    .chat-container {
        height: 300px;
    }

    #chatForm {
        display: flex;
        gap: 8px;
    }

    canvas {
        height: 220px !important;
    }
}

@media (max-width: 480px) {
    .sidebar ul {
        grid-template-columns: 1fr;
    }

    .main h1 {
        font-size: 1.8rem;
    }

    .card,
    .chat-card,
    .chat-sidebar {
        padding: 18px;
    }

    .bottom-section {
        flex-direction: column;
    }
}

/* Hide mobile nav on desktop */
.mobile-nav {
    display: none;
}

/* Horizontal scroll bar */
.mobile-scroll {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 16px; /* 🔥 extra right padding fixes cutoff */
    white-space: nowrap;
    background: rgba(2, 8, 23, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08);

    -webkit-overflow-scrolling: touch;
    scroll-padding-right: 40px; /* 🔥 ensures last buttons fully reachable */
}


/* Each tab */
.nav-item {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    color: #e2e8f0;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.nav-item:hover {
    background: rgba(34, 211, 238, 0.15);
    transform: scale(1.05);
}

/* 📱 Mobile ONLY */
@media (max-width: 768px) {
    .mobile-nav {
        display: block;
        position: sticky;
        top: 0;
        z-index: 999;
    }

    /* hide sidebar on mobile */
    .sidebar {
        display: none;
    }

    .main {
        padding-top: 60px;
    }

	@media (max-width: 768px) {
    .mobile-nav {
        display: block;
        position: sticky;
        top: 0;
        z-index: 999;
    }

    .sidebar {
        display: none;
    }

    .main {
        padding-top: 60px;
    }

    .home-logo img {
        width: 108px;
    }
}
}
}

/* =========================
   IMPROVE READABILITY OF INTRO / HELPER TEXT
   (subtle darker grey, NOT full white)
========================= */

/* Card paragraph text slightly darker for readability */
.card p {
    color: #cbd5e1; /* slightly darker than current dfe7f2 */
}

/* Make first instructional/intro text in sections slightly stronger */
.card p:first-of-type {
    color: #b6c4d6;
}

/* Specifically improve “instruction-style” sections like Home, Admin, Resources */
#home .card p,
#admin .card p,
#resources .card p,
#dashboard .card p {
    color: #cbd5e1;
}

/* Optional: slightly stronger emphasis for key instructional lines */
.card p strong {
    color: #e2e8f0;
}

/
* =========================
   HOME SECTION REDESIGN
   RED / BLACK / GREY THEME
========================= */

.home-animated {
    position: relative;
    overflow: hidden;
    padding-top: 10px;
}

/* Animated dark gradient background */
.home-animated::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 0, 60, 0.18), transparent 45%),
                radial-gradient(circle at bottom right, rgba(120, 120, 120, 0.12), transparent 50%),
                linear-gradient(180deg, #050507, #0a0a0f);
    z-index: 0;
    animation: bgPulse 8s ease-in-out infinite;
}

/* Ensure content stays above background */
.home-animated > * {
    position: relative;
    z-index: 1;
}

/* Subtle pulsing background movement */
@keyframes bgPulse {
    0%, 100% {
        filter: brightness(1);
        transform: scale(1);
    }
    50% {
        filter: brightness(1.08);
        transform: scale(1.02);
    }
}

/* Logo greeting effect */
#home h1 {
    font-size: 2.3rem;
    font-weight: 800;
    background: linear-gradient(90deg, #ff003c, #ffffff, #6b7280);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGlow 4s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Cards: glass + red accent */
.home-card {
    background: rgba(10, 10, 15, 0.75);
    border: 1px solid rgba(255, 0, 60, 0.15);
    box-shadow: 0 10px 35px rgba(0,0,0,0.6);
    transition: all 0.3s ease;
    backdrop-filter: blur(14px);
}

/* Hover animation */
.home-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 0, 60, 0.35);
    box-shadow: 0 18px 55px rgba(255, 0, 60, 0.12);
}

/* Accent title styling */
.home-card h3 {
    color: #ff003c;
    letter-spacing: 0.5px;
}

/* Slightly improved readability */
.home-card p {
    color: #cbd5e1;
}

/* Glowing red pulse border effect */
.glow-red {
    position: relative;
}

.glow-red::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,0,60,0.4), transparent);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: borderMove 3s linear infinite;
}

@keyframes borderMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Smooth entrance animation upgrade */
.fade-in {
    animation: fadeInUp 0.8s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* ==========================================
   PROGRESS TRACKER REDESIGN
   High Visibility Progress Bars + Readable Text
========================================== */

#progress h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 28px;
    background: linear-gradient(90deg, #22d3ee, #38bdf8, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(34, 211, 238, 0.18);
}

/* Special card styling for Progress section */
#progress .card {
    background: linear-gradient(
        145deg,
        rgba(8, 15, 30, 0.95),
        rgba(17, 24, 39, 0.92)
    );
    border: 1px solid rgba(34, 211, 238, 0.12);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

/* Top accent glow */
#progress .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #22d3ee, #38bdf8, #22c55e);
    opacity: 0.9;
}

/* Hover effect */
#progress .card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.22);
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.55),
        0 0 25px rgba(34, 211, 238, 0.08);
}

/* Card titles */
#progress .card h3 {
    color: #22d3ee;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

/* Readable text */
#progress .card p {
    color: #f1f5f9;
    font-size: 0.98rem;
    line-height: 1.8;
    margin: 8px 0;
}

/* Highlight labels */
#progress .card strong {
    color: #ffffff;
    font-weight: 800;
}

/* ==========================================
   PROGRESS BAR
========================================== */

#progress .progress-bar {
    width: 100%;
    height: 20px;
    margin-top: 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.45),
        0 0 12px rgba(34, 211, 238, 0.06);
}

/* Bright animated fill */
#progress .progress-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        #22c55e 0%,
        #22d3ee 45%,
        #38bdf8 100%
    );
    background-size: 200% 100%;
    box-shadow:
        0 0 18px rgba(34, 211, 238, 0.45),
        0 0 28px rgba(34, 197, 94, 0.28);
    animation:
        progressGlow 2.5s linear infinite,
        progressFill 1.5s ease forwards;
}

/* Moving shine */
#progress .progress-fill::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    animation: shineMove 2s linear infinite;
}

/* Percentage text */
#progress .progress-bar + p {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

/* ==========================================
   CHART CARD
========================================== */

#progress canvas {
    margin-top: 12px;
    border-radius: 12px;
    background: rgba(2, 8, 23, 0.35);
    padding: 10px;
}

/* ==========================================
   ANIMATIONS
========================================== */

@keyframes progressGlow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

@keyframes progressFill {
    from {
        opacity: 0.6;
    }
    to {
        opacity: 1;
    }
}

@keyframes shineMove {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 768px) {
    #progress h1 {
        font-size: 2rem;
    }

    #progress .card {
        padding: 20px;
    }

    #progress .progress-bar {
        height: 18px;
    }

    #progress .card p {
        font-size: 0.95rem;
    }
}

/* ================= SIDEBAR FIX (HIDDEN SCROLLBAR + HOVER REVEAL) ================= */

.sidebar {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;

    /* Firefox scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

/* Default (HIDE scrollbar visually) */
.sidebar::-webkit-scrollbar {
    width: 4px;
    background: transparent;
}

/* Scrollbar track hidden */
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

/* Scrollbar thumb hidden */
.sidebar::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
}

/* SHOW scrollbar ONLY on hover */
.sidebar:hover {
    scrollbar-color: rgba(255,255,255,0.25) transparent;
}

.sidebar:hover::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.25);
}

/* Optional: smoother scroll feel */
.sidebar {
    scroll-behavior: smooth;
}

/* Prevent content cutoff */
.sidebar ul {
    padding-bottom: 100px;
}

/* ================= MOBILE FIX ================= */
@media (max-width: 768px) {
    .sidebar {
        height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar ul {
        padding-bottom: 120px;
    }
}

.mobile-scroll {
    scroll-behavior: smooth;
}
@media (max-width: 768px) {

    .bottom-section {
        display: flex;
        flex-direction: row;
        gap: 12px;
        flex: 0 0 auto;
    }

    .logout,
    .bottom-section button {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

.nav-item,
.bottom-section button,
.logout {
    flex: 0 0 auto;   /* 🔥 prevents shrinking */
    min-width: max-content;
}

/* ================= CRISIS MODE ================= */
body.crisis-active {
    background: #140000 !important;
    filter: saturate(0.8);
}

body.crisis-active .progress-fill {
    background: #ff2b2b !important;
}

.crisis-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.crisis-box {
    background: #1a0000;
    border: 2px solid #ff3b3b;
    padding: 25px;
    max-width: 400px;
    border-radius: 12px;
    color: white;
    text-align: center;
}

.crisis-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.btn-red {
    background: #ff3b3b;
    padding: 10px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
}

.btn-call {
    background: #22c55e;
    padding: 10px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
}

.btn-skip {
    background: #444;
    padding: 10px;
    color: white;
    border: none;
    border-radius: 8px;
}