/* Dashboard Page Styles */
#dashboard-page {
    background-color: #f8faf9;
}

/* Mobil panel menü tetikleyicisi — sade beyaz kart, yeşil aksan */
.dash-menu-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e6eaef;
    border-radius: 14px;
    padding: 10px 14px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    transition: box-shadow .18s ease, border-color .18s ease, transform .12s ease;
}

.dash-menu-trigger:hover {
    border-color: #cfe9df;
    box-shadow: 0 5px 18px rgba(2, 142, 101, 0.12);
}

.dash-menu-trigger:active {
    transform: scale(.99);
}

.dash-menu-trigger .dmt-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(135deg, #028e65, #04a878);
    color: #fff;
    font-size: .95rem;
}

.dash-menu-trigger .dmt-label {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    flex: 1;
    min-width: 0;
}

.dash-menu-trigger .dmt-title {
    font-weight: 700;
    font-size: .9rem;
    color: #1e293b;
}

.dash-menu-trigger .dmt-sub {
    font-size: .72rem;
    color: #94a3b8;
}

.dash-menu-trigger .dmt-arrow {
    color: #cbd5e1;
    font-size: .8rem;
    flex-shrink: 0;
    transition: transform .18s ease;
}

.dash-menu-trigger:hover .dmt-arrow {
    transform: translateX(2px);
    color: #028e65;
}

#dashboard-page .dash-sidebar {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    position: sticky;
    top: 100px;
    min-height: 750px;
    /* Match messages container height */
    display: flex;
    flex-direction: column;
}

#dashboard-page .dash-user-profile {
    text-align: center;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

#dashboard-page .dash-user-profile h5,
#dashboard-page .dash-user-profile h6 {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

#dashboard-page .dash-avatar-main {
    width: 80px;
    height: 80px;
    background: var(--soft-green);
    color: var(--primary-green);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.22rem;
    margin: 0 auto 15px;
}

#dashboard-page .dash-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: #718096;
    font-weight: 600;
    border-radius: 15px;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

#dashboard-page .dash-nav .nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

#dashboard-page .dash-nav .nav-link:hover {
    background: #f8faf9;
    color: var(--primary-green);
    transform: translateX(5px);
}

/* style.css'teki ".nav-link:hover i { color: var(--primary-color) }" ikonu hover'da
   sabit yeşile boyuyor; aktif link arka planı da yeşil olduğu için ikon görünmez
   oluyordu. İkon her zaman linkin rengini izlesin: aktif linkte beyaz, diğerinde yeşil. */
#dashboard-page .dash-nav .nav-link:hover i {
    color: inherit;
    transform: none;
}

#dashboard-page .dash-nav .nav-link.active,
#dashboard-page .dash-nav .nav-link.active:hover {
    background: var(--primary-green) !important;
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(2, 142, 101, 0.15);
}

#dashboard-page .dash-nav .nav-link::after {
    display: none !important;
}

/* Logout Style */
#dashboard-page .dash-nav .nav-link.text-danger {
    color: #e53e3e !important;
    margin-top: auto;
    /* Push to bottom */
}

#dashboard-page .dash-nav .nav-link.text-danger:hover {
    background: #fff5f5;
    color: #c53030 !important;
    text-decoration: none !important;
    border: none !important;
}

#dashboard-page .dash-nav .nav-link.text-danger:hover i {
    color: #c53030 !important;
}

#dashboard-page .dash-main-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
}

#dashboard-page .dash-stat-box {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.25s ease;
    height: 100%;
}

#dashboard-page .dash-stat-box:hover {
    border-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 142, 101, 0.08) !important;
}

#dashboard-page .dash-stat-box .icon-circle {
    width: 46px;
    height: 46px;
    min-width: 46px;
    background: var(--soft-green);
    color: var(--primary-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0 !important;
    flex-shrink: 0;
}

#dashboard-page .dash-stat-num {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.1;
    margin-bottom: 2px;
}

#dashboard-page .dash-stat-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.2;
}

#dashboard-page .dash-stat-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-top: 2px;
}

#dashboard-page .badge-membership {
    background: var(--soft-green);
    color: var(--primary-green);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    border: 1px solid rgba(2, 142, 101, 0.1);
}

#dashboard-page .profile-progress-wrap {
    background: #f8faf9;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

#dashboard-page .progress-custom {
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
}

#dashboard-page .progress-bar-custom {
    background: var(--primary-green);
    border-radius: 10px;
}

#dashboard-page .activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

#dashboard-page .activity-item:last-child {
    border-bottom: none;
}

#dashboard-page .activity-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    flex-shrink: 0;
}

#dashboard-page .product-list-item {
    transition: background-color 0.2s ease;
}

#dashboard-page .product-list-item:hover {
    background-color: #f8f9fa;
}

/* Son Aktiviteler akışı (tıklanabilir satırlar) */
#dashboard-page .activity-list.activity-scroll {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}

#dashboard-page .activity-list.activity-scroll::-webkit-scrollbar {
    width: 6px;
}

#dashboard-page .activity-list.activity-scroll::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

#dashboard-page .top-products-scroll {
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}

#dashboard-page .top-products-scroll::-webkit-scrollbar {
    width: 6px;
}

#dashboard-page .top-products-scroll::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

#dashboard-page .activity-item.activity-link {
    align-items: flex-start;
    padding: 14px 10px;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

#dashboard-page .activity-item.activity-link:hover {
    background-color: #f7fafc;
    color: inherit;
}

#dashboard-page .activity-item.activity-link .flex-grow-1 {
    min-width: 0;
}

#dashboard-page .activity-descr {
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Reddedilen ilan gibi olumsuz sonuçlu aktiviteler dikkat çeksin */
#dashboard-page .activity-item.activity-danger {
    background: #fff5f5;
    border-left: 4px solid #dc3545;
    padding-left: 10px;
}

#dashboard-page .activity-item.activity-danger:hover {
    background: #ffecec;
}

#dashboard-page .activity-item.activity-danger .activity-icon {
    background: #fde8ea;
    color: #dc3545;
}

#dashboard-page .activity-item.activity-danger h6 {
    color: #b02a37;
}

#dashboard-page .activity-item.activity-danger .activity-descr {
    color: #842029 !important;
    font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    #dashboard-page {
        padding: 20px 0 !important;
    }

    #dashboard-page .dash-sidebar {
        min-height: auto;
        position: static;
        margin-bottom: 20px;
    }

    #dashboard-page h3 {
        font-size: 1.35rem;
        line-height: 1.3;
    }

    #dashboard-page .dash-stat-box {
        padding: 14px 16px;
        margin-bottom: 0;
    }

    #dashboard-page .dash-main-card {
        padding: 20px;
    }

    .dash-offcanvas {
        border-radius: 0 24px 24px 0 !important;
        width: 300px !important;
    }

    .dash-offcanvas .dash-nav .nav-link {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}

@media (max-width: 575.98px) {
    #dashboard-page .dash-stat-box {
        padding: 12px 14px;
        gap: 10px;
    }

    #dashboard-page .dash-stat-box .icon-circle {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 1.05rem;
        border-radius: 10px;
    }

    #dashboard-page .dash-stat-num {
        font-size: 1.15rem;
    }

    #dashboard-page .dash-stat-title {
        font-size: 0.75rem;
    }
}