/* General Styling & Variables */
:root {
    --primary-blue: #1A3C6B;
    --header-blue: #2F599A;
    --sidebar-bg: #FFFFFF;
    --content-bg: #F4F7FC;
    --font-color-dark: #333;
    --font-color-light: #FFFFFF;
    --active-color: #3B82F6;
    --border-color: #E5E7EB;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --whatsapp-green: #25D366;
    --gold: #f4c542;
    --grey-bg: #f8f8f8;
}


/* ====== DARK MODE VARIABLES ====== */
body[data-theme="dark"] {
    --primary-blue: #1E293B;
    --header-blue: #334155;
    --sidebar-bg: #1A233A;
    --content-bg: #111827;
    --font-color-dark: #E5E7EB;
    --font-color-light: #F9FAFB;
    --active-color: #60A5FA;
    --border-color: #374151;
    --grey-bg: #1F2937;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}


body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--content-bg);
    color: var(--font-color-dark);
    overflow: hidden;
    transition: background-color 0.3s, color 0.3s;
}


.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}
#main-content h1{
display: none;
}

/* Header */
.header {
    background-color: var(--header-blue);
    color: var(--font-color-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
}


.header-left {
    display: flex;
    align-items: center;
}


.icon-menu {
    cursor: pointer;
    margin-right: 10px;
    color: white;
    height: 40px;
    width: 40px;
}



.logo {
    width: 70px;
    height: 70px;
    background-color: #fff;
    border-radius: 50%;
    background-image: url('/men/photo/logo.jpg');
    background-size: cover;
    background-position: center;
    margin-left: 50px;
}


.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}


.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}


.user-avatar {
    width: 40px;
    height: 40px;
    background-color: #B0C4DE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.user-info {
    display: flex;
    flex-direction: column;
}


.user-name {
    font-weight: 600;
    font-size: 14px;
}


.user-role {
    font-size: 12px;
    opacity: 0.8;
}


/* Main Content Layout */
.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}


/* Dark Mode Toggle Switch (Unchanged, but optimized) */
/* ====== Switch ====== */
.switch {
    position: relative;
    display: inline-block;
    width: 65px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #000000;
    transition: 0.5s;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    font-size: 16px;
    overflow: hidden;
}

.slider:before {
    content: "";
    position: absolute;
    height: 28px;
    width: 28px;
    left: 3px;
    bottom: 3px;
    background: #000000;
    transition: 0.5s;
    border-radius: 50%;
    z-index: 1;
    /* box-shadow: 0 2px 6px rgba(0,0,0,0.3); */
}

.toggle-label {
    position: relative;
    top: 5px;
    font-size: 25px;
    font-weight: bold;
}

.icon {
    z-index: 2;
    font-size: 16px;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
    line-height: 1;
}

.sun {
    color: #fdd835;
    opacity: 1;
    transform: scale(1);
}

.moon {
    color: #ffffff;
    opacity: 0.5;
    transform: scale(0.75);
}

/* Checked State */
input:checked+.slider {
    background: #e8eaec;
}

input:checked+.slider:before {
    transform: translateX(31px);
}

input:checked+.slider .sun {
    opacity: 0.35;
    transform: scale(0.75);
}

input:checked+.slider .moon {
    opacity: 1;
    transform: scale(1.1);
}




/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    transition: width 0.3s ease, left 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}


.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}


.sidebar-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--font-color-dark);
}


.close-btn {
    display: none;
    /* Hidden by default */
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--font-color-dark);
}


.sidebar.collapsed {
    width: 80px;
}


.sidebar.collapsed .nav-menu span,
.sidebar.collapsed .sidebar-header h3,
.sidebar.collapsed .dark-mode-toggle {
    display: none;
}


.sidebar.collapsed .nav-menu li a {
    justify-content: center;
}


/* Navigation Menu */
.nav-menu {
    flex-grow: 1;
}


.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}


.nav-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: var(--font-color-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    gap: 15px;
    white-space: nowrap;
}


.nav-menu li.active a,
.nav-menu li a:hover {
    background-color: var(--content-bg);
    color: var(--active-color);
}


body[data-theme="light"] .nav-menu li.active a {
    border-left: 4px solid var(--active-color);
    padding-left: 21px;
}


/* Page Content */
.page-content {
    flex-grow: 1;
    padding: 25px;
    overflow-y: auto;
}


/* Welcome Area */
.welcome-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}


.welcome-message {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}


.back-button {
    background-color: var(--primary-blue);
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}


.back-button:hover {
    background-color: var(--header-blue);
}


/* Scrolling Banner */
.scrolling-banner {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    margin-bottom: 25px;
    scrollbar-width: none;
}


.scrolling-banner::-webkit-scrollbar {
    display: none;
}


.banner-item {
    flex-shrink: 0;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.banner-item img {
    height: 100%;
    width: auto;
    display: block;
}


/* Services Section */
.services-category {
    margin-top: 25px;
}


.services-category h3 {
    font-size: 1.2rem;
    /* Slightly larger for better readability */
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 25px;
    /* Increased gap for better spacing */
}


.service-card {
    background-color: var(--sidebar-bg);
    border-radius: 100px;
    /* Softer corners for modern look */
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Deeper shadow */
    transition: all 0.4s ease;
    /* Smoother transition */
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    /* Ensure minimum height to prevent collapsing */
}

.services-grid a {
   
    text-decoration: none;   /* underline हटाने के लिए */
}

.service-card:hover {
    transform: translateY(-8px);
    /* More lift on hover */
    box-shadow: 0 12px 20px rgba(59, 130, 246, 0.3);
    border-color: var(--active-color);
}


.service-card img {
    height: 60px;
    margin-bottom: 15px;
    object-fit: contain;
    transition: transform 0.3s ease;
    /* Added image animation */
    max-width: 100%;
    /* Prevent image overflow */
}


.service-card:hover img {
    transform: scale(1.1);
    /* Zoom on hover */
}


.service-card span {
    font-weight: 500;
    font-size: 14px;
    color: var(--font-color-dark);
    word-wrap: break-word;
    /* Ensure text wraps if too long */
    max-width: 100%;
    /* Prevent text overflow */
}


.badge {
    position: absolute;
    top: 12px;
    right: -35px;
    background: linear-gradient(45deg, #EF4444, #FF6B6B);
    /* Gradient for modern look */
    color: white;
    padding: 3px 40px;
    font-size: 10px;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    /* Added shadow to badge */
}


/* ====== IMPROVED FOOTER STYLES ====== */
footer {
    color: var(--font-color-dark);
    padding: 60px 20px 30px;
    position: relative;
    background: linear-gradient(135deg, var(--grey-bg) 40%, var(--primary-blue) 100%);
    margin-top: 40px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.15);
    /* Slightly more transparent */
    backdrop-filter: blur(15px);
    /* Enhanced blur */
    padding: 40px;
    gap: 25px;
    /* Better spacing */
}


.footer-left {
    flex: 1;
    min-width: 280px;
    text-align: left;
}


.footer-left h2 {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
    color: #16a34a;
}


.footer-left h4 {
    margin: 8px 0;
    font-weight: 400;
    font-size: 18px;
}


body[data-theme="light"] .footer-left h4 {
    color: #111;
}


.footer-left h3 {
    margin-top: 10px;
    color: #c0392b;
    font-weight: 600;
    font-size: 20px;
}


.footer-image {
    flex-shrink: 0;
    text-align: center;
}


.footer-image img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 6px solid var(--gold);
    box-shadow: 0 0 30px rgba(244, 197, 66, 0.8);
    transition: transform 0.5s ease, box-shadow 0.5s ease, filter 0.5s ease;
    /* Added filter transition */
}


.footer-image img:hover {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 0 40px rgba(244, 197, 66, 1);
    filter: brightness(1.2);
    /* Glow effect on hover */
}


.footer-right {
    flex: 1;
    min-width: 280px;
    color: var(--font-color-light);
}


.footer-right p {
    margin: 12px 0;
    font-size: 16px;
}


.footer-right i {
    margin-right: 10px;
    color: var(--gold);
}


.footer-right a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    /* Added color transition */
}


.footer-right a:hover {
    color: var(--gold);
}


.footer-right a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -3px;
    background: var(--gold);
    transition: width 0.3s ease;
}


.footer-right a:hover::after {
    width: 100%;
}


.social-icons {
    margin: 35px 0 15px;
    text-align: center;
}


.social-icons a {
    margin: 0 15px;
    font-size: 26px;
    padding: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    color: var(--font-color-light);
    transition: transform 0.3s, color 0.3s, background 0.3s;
}


.social-icons a:hover {
    transform: scale(1.2);
    color: var(--gold);
    background: rgba(0, 0, 0, 0.3);
}


footer p.copy {
    font-size: 14px;
    margin-top: 10px;
    color: #eee;
    text-align: center;
}


footer p.copy a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}


footer p.copy a:hover {
    color: #fff;
}



/* ====== 7. Floating Buttons (WhatsApp, Scroll to Top) ====== */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 20px;
    background-color: #25d366;
    color: white;
    font-size: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 998;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s;
    display: grid;
    place-items: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe5d;
}

/* Responsive Styles - Further Improved */
@media (max-width: 900px) {
    .footer-main {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .footer-left,
    .footer-right {
        text-align: center;
    }

    .footer-right {
        margin-top: 20px;
        color: var(--font-color-light);
    }

    body[data-theme="light"] .footer-right {
        color: var(--font-color-dark);
    }

    body[data-theme="light"] .footer-right a {
        color: var(--primary-blue);
    }

    .footer-main {
        background: rgba(255, 255, 255, 0.8);
    }

    body[data-theme="dark"] .footer-main {
        background: rgba(17, 24, 39, 0.8);
    }
}


@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -260px;
        z-index: 200;
        height: 100%;
        background: rgba(255, 255, 255, 0.9);
    }

    body[data-theme="dark"] .sidebar {
        background: rgba(26, 35, 58, 0.9);
    }

    .sidebar.open {
        left: 0;
    }

    .close-btn {
        display: block;
    }

    .header-right .user-info {
        display: none;
    }

    .logo {
        width: 50px;
        height: 50px;
        margin-left: 18px;
    }

    .toggle-label {
        position: relative;
        top: 5px;
        font-size: 25px;
        font-weight: bold;
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns for mobile */
        gap: 20px;
        /* Better spacing to avoid sticking */
    }

    .service-card {
        padding: 15px;
        min-height: 100px;
        /* Adjusted min-height for better fit */
        box-sizing: border-box;
        /* Ensure padding is included in width/height */
    }

    .service-card img {
        height: 50px;
        margin-bottom: 10px;
        max-width: 80%;
        /* Scale down if needed to prevent overflow */
    }

    .service-card span {
        font-size: 12px;
        word-break: break-word;
        /* Improved text wrapping */
    }

    .badge {
        font-size: 9px;
        padding: 2px 30px;
        top: 10px;
        right: -30px;
        width: fit-content;
        /* Prevent badge from causing card overflow */
    }

    .page-content {
        margin-left: 0 !important;
        padding: 15px;
        background: rgba(244, 247, 252, 0.95);
    }

    body[data-theme="dark"] .page-content {
        background: rgba(17, 24, 39, 0.95);
    }

    .welcome-message {
        font-size: 16px;
    }

    .banner-item {
        height: 80px;
    }
}


@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .service-card {
        padding: 19px;
        min-height: 90px;
    }

    .service-card img {
        height: 45px;
        max-width: 80%;
    }

    .service-card span {
        font-size: 13px;
    }

    .header {
        padding: 5px 29px;
    }

    .logo {
        width: 45px;
        height: 45px;
        margin-left: 20px;
    }

    .icon-menu {
        margin: 1px;
        height: 30px;
        width: 30px;
    }

    .toggle-label {
        position: relative;
        top: 5px;
        font-size: 25px;
        font-weight: bold;
        display: none;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
    }

    .scrolling-banner {
        gap: 15px;
    }

    .banner-item {
        height: 70px;
    }

    .footer-image img {
        width: 150px;
        height: 150px;
    }

    .footer-left h2 {
        font-size: 24px;
        text-align: center;
    }

    .footer-left h3 {
        font-size: 16px;
        text-align: center;
    }

    .footer-right p {
        font-size: 14px;
        text-align: center;
    }

    .social-icons a {
        font-size: 20px;
        margin: 0 10px;
    }

    body[data-theme="dark"] {
        --font-color-dark: #E5E7EB;
    }
}


@media (max-width: 320px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .service-card {
        padding: 10px;
        min-height: 80px;
    }

    .service-card img {
        height: 35px;
        max-width: 60%;
    }

    .service-card span {
        font-size: 10px;
    }

    .page-content {
        padding: 10px;
    }

    .welcome-container {
        flex-direction: column;
        align-items: flex-start;
    }
}