:root {
    --primary-color: #1e70b3;
    --secondary-color: #111111;
    --accent-color: #FFD166;
    --background-color: #F1FFFa;
    --light-color: #F6F7FB;
    --btn-color: #559bd4;
    --card-color: #FFFFFF;
    --text-color: #333333;
    --success-color: #06D6A0;
    --warning-color: #EF476F;
    --font-main: 'Nunito', sans-serif;
    --font-fun: 'Comic Neue', cursive;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--secondary-color);
}

/*  Header */
nav {
    position: absolute;
}


/* .dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 999;
} */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 30px;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 999;
    transition: top 0.3s ease;
}

.premium-offer-banner.active+nav .dashboard-header {
    top: 30px;
}

.header-left .sidebar-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: gap 0.3s ease;
}

.sidebar.collapsed .logo {
    gap: 0;
    justify-content: center;
}

header .logo i {
    font-size: 48px;
    color: var(--primary-color);
    /* min-width: 24px; */
}

.logo-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.sidebar.collapsed .logo-text {
    opacity: 0;
    width: 0;
}

.logo-text h2 {
    font-size: 18px;
    margin: 0;
    font-weight: 900;
    white-space: nowrap;
}

.logo-text span {
    color: var(--primary-color);
}

.logo-subtitle {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 2px;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--light-color);
    color: var(--dark-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    position: fixed;
    left: 0;
    top: 125px;
    bottom: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-right: 1px solid #e0e0e0;
}

.premium-offer-banner.active~.container .sidebar {
    top: 140px;
}

.premium-offer-banner:not(.active)~.container .dashboard-header {
    top: 0;
}

.premium-offer-banner:not(.active)~.container .sidebar {
    top: 80px;
}

/* .sidebar {
    width: 260px;
    background-color: var(--light-color);
    color: var(--dark-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    position: fixed;
    left: 0;
    top: 100px;
    bottom: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-right: 1px solid #e0e0e0;

} */

.sidebar.collapsed {
    width: 70px;
}

.sidebar-nav {
    padding: 20px 0;
    overflow-y: auto;
    position: relative;
    height: calc(100vh - 110px);
    overflow: hidden;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    white-space: nowrap;
}

.sidebar-nav a:hover,
.sidebar-nav li.active a {
    background-color: rgba(79, 195, 161, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.sidebar-nav i {
    width: 24px;
    min-width: 24px;
    margin-right: 15px;
    font-size: 18px;
    text-align: center;
    transition: margin 0.3s ease;
    color: var(--primary-color);
}

.sidebar.collapsed .sidebar-nav i {
    margin-right: 0;
    margin-left: 3px;
}

.nav-text {
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    font-weight: 500;
}

.sidebar.collapsed .nav-text {
    opacity: 0;
    transform: translateX(-10px);
    width: 0;
}

/* Logo in header */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    font-size: 28px;
    color: var(--primary-color);
}

.logo-text h2 {
    font-size: 28px;
    margin: 0;
    font-weight: 900;
    white-space: nowrap;
}

.logo-text span {
    color: var(--primary-color);
}

.logo-subtitle {
    font-size: 17px;
    opacity: 0.8;
    margin-top: 2px;
    display: block;
}

/* Sidebar toggle button */
.sidebar-toggle {
    border: none;
    background: var(--primary-color);
    color: var(--light-color);
    font-size: 16px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    transform: scale(1.05);
}

.sidebar-toggle.active {
    transform: rotate(180deg);
}

/* Notification Container */
.notification-container {
    position: relative;
}

.notification-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--dark-color);
    cursor: pointer;
    position: relative;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.notification-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.notification-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--primary-color);
    color: var(--light-color);
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* User Profile Dropdown */
.user-profile-dropdown {
    position: relative;
}

.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.user-profile-trigger:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.profile-image-container {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.user-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-arrow {
    font-size: 12px;
    color: var(--dark-color);
    transition: transform 0.3s ease;
}

.user-profile-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1001;
    border: 1px solid #e0e0e0;
}

.user-profile-menu.active {
    display: block;
}

.menu-header {
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.menu-profile-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.menu-profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-user-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.menu-user-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.menu-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 10px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--dark-color);
    text-decoration: none;
    transition: background 0.3s ease;
}

.menu-item:hover {
    background-color: rgba(79, 195, 161, 0.1);
}

.menu-item i {
    width: 20px;
    color: var(--primary-color);
}

.logout-menu-item {
    color: var(--warning-color);
}

.logout-menu-item:hover {
    background-color: rgba(231, 76, 60, 0.1);
}

/* Main content area */
.main-content {
    margin-left: 260px;
    margin-top: 70px;
    padding: 10px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: calc(100vh - 70px);
}

.sidebar.collapsed~.main-content {
    margin-left: 70px;
}

/* Mobile overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.mobile-overlay.active {
    display: block;
}

/* Badge styling */
.badge {
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: auto;
    min-width: 20px;
    text-align: center;
    font-weight: 600;
}

.sidebar.collapsed .badge {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    padding: 2px 6px;
}

/* Sidebar state indicator */
.sidebar-state {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 10px;
    border-top: 1px solid #e0e0e0;
}

.toggle-state-btn {
    background: var(--primary-color);
    border: none;
    color: var(--light-color);
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.toggle-state-btn:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.sidebar.collapsed .toggle-state-btn i {
    transform: rotate(180deg);
}

.tooltip {
    position: absolute;
    left: calc(100% + 15px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
    pointer-events: none;
    font-weight: 500;
}

.tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 6px 6px 0;
    border-style: solid;
    border-color: transparent rgba(0, 0, 0, 0.9) transparent transparent;
}

.sidebar.collapsed .sidebar-nav a:hover .tooltip {
    opacity: 1;
    visibility: visible;
}


.recommend-btn {
    position: fixed;
    right: -30px;
    top: 60%;

    transform: rotate(-90deg);
    width: fit-content;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    text-align: center;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
    border-radius: 4px;
    border: none;
    background: var(--warning-color);
    z-index: 999;
    color: var(--light-color);
    cursor: pointer;
    transition: all 0.3s;
}

.recommend-btn:hover {
    scale: 1.1;
}

.recommend-btn span {
    padding-left: 5px;
    border-left: 1px solid var(--light-color);
}

.recommend-btn i {
    padding: 5px;
}


.recommend-container {
    /* display: none; */
    opacity: 0;
    visibility: hidden;
    width: fit-content;
    max-width: 550px;
    height: fit-content;
    /* max-height: 600px; */
    max-height: max-content;
    background: var(--card-color);
    border: 2px solid var(--text-color);
    text-align: center;
    padding: 5px 8px;
    padding-bottom: 20px;
    border-radius: 15px;
    /* margin: 20px 0; */
    /* font-size: 20px; */
    font-weight: 700;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 9999999;
    transition: opacity 0.25s ease, transform 0.25s ease;

}

.recommend-container.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.recommend-close {
    position: absolute;
    right: 15px;
    top: 10px;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    background: var(--primary-color);
    color: var(--light-color);
}

.recommend-container .tag {
    font-size: 20px;
    font-weight: 700;
    padding: 0px 0.4rem;

}

.recommend-like-nmbr ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center;
}

.recommend-like-nmbr ul li {
    list-style: none;
    display: flex;
    gap: 20px;
}

.recommend-like-nmbr .feedback-count {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    align-content: center;
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-main);
    background: transparent;
    transition: all 0.3s;
}

.recommend-like-nmbr .feedback-count.active {
    border-radius: 7px;
    background: var(--primary-color);
}

.recommend-like-nmbr .feedback-count:hover {
    scale: 1.1;
}

.recommend-like-display {
    display: flex;
    font-size: 20px;
    justify-content: space-between;
}

.write-recommend {
    text-align: start;
    height: fit-content;
    padding: 5px;
}

.write-recommend h5 {
    font-size: 1.5rem;
    margin: 0 !important;
}

.write-recommend input,
.write-recommend textarea {
    width: 100%;
    height: 40px;
    min-height: 40px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-main);
    outline: 1px var(--secondary-color);

}

.write-recommend textarea {
    max-width: 500px;
    max-height: 150px;
    min-width: 300px;
}


.write-recommend input::placeholder {
    font-size: 1.2rem;
}

.submit-recommend-cont {
    display: flex;
    justify-content: space-between;
}

.submit-recommend-cont button {
    width: 87%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.submit-recommend-cont .recommend-file {
    background: var(--primary-color);
    font-size: 20px;
    color: var(--light-color);
    padding: 15px;
    cursor: pointer;
    width: 12%;
    border-radius: 5px;
}

.recommend-file input {
    display: none;
}

@media (max-width:1024px) {
    .dashboard-header {
        padding: 0 20px;

    }

    .sidebar {
        transform: translateX(-100%);
        top: 70px;
        transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar.active {
        transform: translateX(0);
    }



    .main-content {
        margin-left: 0;
        padding: 20px 0px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {


    .header-right {
        gap: 15px;
    }

    .logo-text {
        display: none;
    }

    .recommend-container {
        width: 95%;
        max-width: 100%;
        padding: 10px;
        border-radius: 12px;
    }

    .recommend-container .tag {
        font-size: 16px;
    }

    .recommend-close {
        right: 10px;
        top: 8px;
        font-size: 14px;
    }

    .recommend-like-nmbr ul li {
        gap: 12px;
    }

    .recommend-like-nmbr .feedback-count {
        height: 42px;
        width: 42px;
        font-size: 16px;
    }

    .recommend-like-display {
        font-size: 16px;
        gap: 10px;
    }


    .write-recommend h5 {
        font-size: 1.2rem;
    }

    .write-recommend input,
    .write-recommend textarea {
        font-size: 0.95rem;
        width: 95%;
        height: 38px;
    }

    .write-recommend textarea {
        min-width: 95%;
        max-width: 95%;
        max-height: 120px;
    }

    .submit-recommend-cont {
        flex-direction: column;
        gap: 10px;
    }

    .submit-recommend-cont button,
    .submit-recommend-cont .recommend-file {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        text-align: center;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        left: -260px;
        top: 80px;
        z-index: 1001;
    }

    .sidebar.active {
        left: 0;
        top: 80px;
    }

    .main-content {
        margin-left: 0;
    }

    .premium-offer-banner {
        padding: 10px 15px;
        font-size: 14px;
    }

    .premium-offer-banner .head {
        font-size: 14px;
    }

    .premium-offer-banner .countdown {
        font-size: 14px;
        padding: 3px 6px;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 10px 20px;
        height: 70px;
    }

    .premium-offer-banner.active~.container .dashboard-header {
        top: 30px;
    }

    .premium-offer-banner {
        padding: 8px 10px;
    }

    .premium-offer-banner .head {
        font-size: 12px;
    }

    .premium-offer-banner .countdown {
        font-size: 12px;
    }

    .main-content {
        padding: 15px;
    }
}