
  /* Trigger Image */
  #sathiTriggerDesktop {
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
   
  }
  #sathiTriggerMobile {
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
   
  }

  #sathiTriggerDesktop:hover { opacity: 0.8; transform: scale(1.02); }
  #sathiTriggerMobile:hover { opacity: 0.8; transform: scale(1.02); }

  /* Samadhan Modal Background */
  .samadhan-modal {
    margin-top: 1.2rem;
    display: none; 
    position: fixed; 
    z-index: 100; 
    padding-top: 100px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.73); 
  }

  /* Modal Image Content */
  .samadhan-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 450px;
  }

  /* Caption Text */
  #sathiCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #00d4ff; /* A "Sathi" blue theme */
    padding: 15px 0;
    font-size: 20px;
    font-weight: bold;
  }

  /* Entrance Animation */
  .samadhan-content, #sathiCaption {  
    animation: sathiZoom 0.5s;
  }

  @keyframes sathiZoom {
    from { transform: scale(0.1); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }

  /* Close Button */
  .sathi-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
  }

  .sathi-close:hover { color: #ff9a30; }

  @media only screen and (max-width: 700px){
    .samadhan-content { width: 100%; }
  }

    /* --- CSS VARIABLES --- */
    :root {
        --saffron: #ff9a30;
        --saffron-dark: #e67e22;
        --pale-green: #d2f2d4;
        --dark: #1a1a1a;
        --white: #ffffff;
        --gray-50: #f9fafb;
        --gray-100: #f3f4f6;
        --gray-200: #e5e7eb;
        --gray-300: #d1d5db;
        --gray-400: #9ca3af;
        --gray-500: #6b7280;
        --gray-600: #4b5563;
        --gray-700: #374151;
        --gray-800: #1f2937;
        --gray-900: #111827;
        --font-sans: 'Poppins', sans-serif;
        --font-serif: 'Playfair Display', serif;
        --nav-height: 70px;
        --slogan-height: 42px;
        --mobile-topbar-height: 56px;
        --bottom-nav-height: 64px;
        --surface: #ffffff;
        --primary: var(--saffron);
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* --- RESET & BASE --- */
    * { 
        box-sizing: border-box; 
        margin: 0; 
        padding: 0; 
    }
    
    body {
        font-family: var(--font-sans);
        background-color: var(--gray-50);
        color: var(--gray-800);
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    a { 
        text-decoration: none; 
        color: inherit; 
        transition: var(--transition); 
    }
    
    ul { list-style: none; }
    
    .container { 
        width: 100%; 
        max-width: 1200px; 
        margin: 0 auto; 
        padding: 0 0; 
    }

    /* --- DESKTOP NAVBAR --- */
   /* --- 1. Main Sidebar Container --- */
.sidebar-cont {
    position: fixed;
    top: 70px;
    left: 0;
    height: 100vh;        /* Full Viewport Height */
    width: 60px;          /* Compact width (icons only) */
    background: white;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    
    /* Flexbox Layout for Height Responsiveness */
    display: flex;
    flex-direction: column; /* Stack items vertically */
    padding-top: 10px;
    
    /* Scrollbar Logic: If screen is too short, allow scrolling */
    overflow-y: auto;     
    overflow-x: hidden;
    
    /* Smooth Animation */
    transition: width 0.3s ease; 
    z-index: 1000;
}

/* Hide scrollbar visually but keep functionality */
.sidebar-cont::-webkit-scrollbar {
    width: 0px;  
    background: transparent; 
}

/* --- 2. Hover Effect (Desktop Only) --- */
@media (min-width: 769px) {
    .sidebar-cont:hover {
        width: 250px; /* Expand on hover */
    }
    
    .sidebar-cont:hover .link-name {
        opacity: 1;   /* Show text */
        transition-delay: 0.1s;
    }
}

/* --- 3. Link Styling --- */
.nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 15px 0;      /* Fixed padding, not percentage */
    transition: background 0.2s;
    white-space: nowrap;  /* Prevents text wrap */
    flex-shrink: 0;       /* Prevents icons from squishing on short screens */
}

.nav-link:hover {
    background-color: #f0f0f0;
    color: var(--primary);
}

.nav-link i {
    font-size: 1.5rem;
    min-width: 60px;      /* Center icon in closed sidebar */
    text-align: center;
}

.link-name {
    font-size: 1rem;
    margin-left: 10px;
    opacity: 0;           /* Hidden by default */
    transition: opacity 0.2s;
}

/* 1. The Container: Relative positioning is key here */
.profile-menu-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    padding-bottom: 10px; /* Adds a small invisible bridge so the menu doesn't close when moving mouse down */
}

/* Style the image to look clickable */
.profile-trigger-img {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 50%; /* Optional: Makes image circular */
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.profile-menu-container:hover .profile-trigger-img {
    border-color: #ddd; /* subtle highlight on hover */
}

/* 2. The Dropdown Box (Hidden by default) */
.profile-dropdown-box {
    display: none; /* Hidden */
    position: absolute;
    right: 0; /* Aligns to the right side of the image */
    top: 100%; /* Pushes it directly below the container */
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 4px;
    overflow: hidden;
}

/* 3. The Hover Trigger */
/* When hovering the container, show the box */
.profile-menu-container:hover .profile-dropdown-box {
    display: block;
}

/* 4. The Links inside the dropdown */
.profile-dropdown-link {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background-color 0.2s;
}

/* Hover effect for links */
.profile-dropdown-link:hover {
    background-color: #f1f1f1;
    color: #000;
}
/* --- 4. Mobile Responsiveness (Small Screens) --- */
@media (max-width: 768px) {
    .sidebar-cont {
        /* Move sidebar to the bottom of the screen */
        bottom: 0;
        top: auto;        /* Unset top */
        width: 100%;      /* Full width */
        height: 60px;     /* Fixed height for bottom bar */
        flex-direction: row; /* Horizontal layout */
        justify-content: space-around; /* Spread icons evenly */
        padding-top: 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }

    /* Disable the hover-expand effect on mobile */
    .sidebar-cont:hover {
        width: 100%;
    }

    /* Hide text names on mobile completely */
    .link-name {
        display: none; 
    }
    
    /* Adjust icons for horizontal bar */
    .nav-link {
        padding: 0;
        height: 100%;
        flex-direction: column;
        justify-content: center;
    }
    
    .nav-link i {
        min-width: auto; /* Remove fixed width constraints */
        font-size: 1.4rem;
    }
}
    .navbar {
        display: flex;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        border-bottom: 1px solid var(--gray-200);
        height: var(--nav-height);
        box-shadow: var(--shadow-sm);
        transition: var(--transition);
    }
    
    .navbar.scrolled {
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid var(--gray-200);
    }
    
    .nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        width: 100%;
        padding: 0 10px;
    }

    .nav-logo {
        display: flex;
        align-items: center;
    }
    
    .nav-logo a {
        font-weight: 700;
        font-size: 1.1rem;
       
        color: var(--dark);
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .nav-logo a:hover {
        color: var(--primary);
    }
    
    .nav-logo a img {
        height: 40px;
        width: auto;
    }
    .primary-color{
        color: var(--primary);
    }
    .nav-search {
        flex: 1;
        max-width: 450px;
        margin: 0 20px;
        position: relative;
    }
    
    .nav-search input {
        width: 100%;
        padding: 10px 15px 10px 40px;
        border-radius: 25px;
        border: 1px solid var(--gray-300);
        background: var(--gray-50);
        font-size: 0.9rem;
        transition: var(--transition);
    }
    
    .nav-search input:focus {
        outline: none;
        border-color: var(--primary);
        background: var(--white);
        box-shadow: 0 0 0 3px rgba(255, 154, 48, 0.1);
    }
    
    .nav-search::before {
        content: "🔍";
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--gray-400);
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .nav-create {
        background: linear-gradient(135deg, var(--primary), var(--saffron-dark));
        color: white;
        border: none;
        padding: 10px 18px;
        border-radius: 25px;
        font-weight: 600;
        cursor: pointer;
        font-size: 0.9rem;
        box-shadow: var(--shadow-sm);
        transition: var(--transition);
        position: relative;
        overflow: hidden;
    }
    
    .nav-create::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: 0.5s;
    }
    
    .nav-create:hover::before {
        left: 100%;
    }
    
    .nav-create:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .nav-notification {
        position: relative;
        font-size: 1.5rem;
        color: var(--gray-600);
        cursor: pointer;
        padding: 8px;
        border-radius: 50%;
        transition: var(--transition);
    }
    
    .nav-notification:hover {
        background: var(--gray-100);
        color: var(--primary);
    }
    
    .nav-notification .dot {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 10px;
        height: 10px;
        background: #ef4444;
        border-radius: 50%;
        border: 2px solid white;
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
        }
        70% {
            box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
        }
    }

    .nav-profile {
        position: relative;
    }
    
    .nav-profile img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--gray-200);
        cursor: pointer;
        transition: var(--transition);
    }
    
    .nav-profile img:hover {
        border-color: var(--primary);
        transform: scale(1.05);
    }
    
  

    

    /* --- MOBILE TOP BAR --- */
    .mobile-topbar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: var(--mobile-topbar-height);
        background: white;
        padding: 0 15px;
        align-items: center;
        justify-content: space-between;
        box-shadow: var(--shadow-md);
        z-index: 1001;
    }
    
    .mobile-logo {
        font-weight: 700;
        font-size: 1.1rem;
        color: var(--dark);
        display: flex;
    }
    .sathi-text{
        color: var(--primary);
    }
    .menu-btn, .mobile-notification {
        font-size: 1.5rem;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--primary);
        padding: 8px;
        border-radius: 50%;
        transition: var(--transition);
    }
    
    .menu-btn:hover, .mobile-notification:hover {
        background: var(--gray-100);
        color: var(--primary);
    }

    /* --- BOTTOM NAV BAR (MOBILE) --- */
    .bottom-nav {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: var(--bottom-nav-height);
        background: white;
        border-top: 1px solid var(--gray-200);
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    }
    
    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 0.7rem;
        color: var(--gray-500);
        font-weight: 500;
        padding: 5px;
        transition: var(--transition);
        position: relative;
    }
    
    .nav-item ion-icon {
        font-size: 1.5rem;
        margin-bottom: 2px;
    }
    
    .nav-item.active {
        color: var(--primary);
    }
    
    .nav-item:not(.create-btn):hover {
        color: var(--primary);
    }
    
    .nav-item.active::after {
        content: "";
        position: absolute;
        top: -5px;
        width: 4px;
        height: 4px;
        background: var(--primary);
        border-radius: 50%;
    }
    
    .create-btn {
        background: linear-gradient(135deg, var(--primary), var(--saffron-dark));
        color: white;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        transform: translateY(-14px);
        box-shadow: var(--shadow-lg);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .create-btn ion-icon {
        font-size: 1.8rem;
        margin-bottom: 0;
    }
    
    .create-btn:hover {
        transform: translateY(-16px);
        box-shadow: var(--shadow-xl);
    }

    /* --- FOOTER --- */
    .app-footer {
        margin-left: 3.8rem;
        background: linear-gradient(to bottom, var(--gray-900), var(--gray-800));
        color: white;
        padding: 10px 8px 10px;
        position: relative;
        overflow: hidden;
    }
    
    .app-footer::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(to right, var(--primary), var(--saffron-dark));
    }
    
    .footer-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
        color: var(--primary);
        position: relative;
        padding-bottom: 10px;
    }
    
    .footer-section h3::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 2px;
        background: var(--primary);
    }
    
    .footer-section p {
        color: var(--gray-400);
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links a {
        color: var(--gray-400);
        font-size: 0.9rem;
        transition: var(--transition);
        position: relative;
        padding-left: 15px;
    }
    
    .footer-links a::before {
        content: "→";
        position: absolute;
        left: 0;
        transition: var(--transition);
    }
    
    .footer-links a:hover {
        color: var(--primary);
        padding-left: 20px;
    }
    
    .footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 20px;
        border-top: 1px solid var(--gray-700);
        color: var(--gray-400);
        font-size: 0.9rem;
    }
    
    .social-links {
        display: flex;
        gap: 15px;
    }
    
    .social-links a {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--gray-700);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }
    
    .social-links a:hover {
        background: var(--primary);
        transform: translateY(-3px);
    }

    /* --- MAIN CONTENT --- */
    .app-content {
     margin-left: 3.8rem;
        min-height: calc(100vh - var(--nav-height) - var(--slogan-height) - 60px);
        padding: 20px 0;
    }

    /* --- RESPONSIVE LOGIC --- */
    @media (max-width: 768px) {
        .navbar, .app-footer {
            display: none;
        }
        
        .mobile-topbar, .bottom-nav {
            display: flex;
        }
        
        .app-content {
            margin-left:0;
            margin-top: var(--mobile-topbar-height);
            margin-bottom: var(--bottom-nav-height);
            min-height: calc(100vh - var(--mobile-topbar-height) - var(--bottom-nav-height));
            padding: 15px 0;
        }
    }

    
