/* ---------- GENEL DÜZEN ---------- */
.dashboard-main {
    display: flex;
    gap: 28px;
    width: 100%;
    min-height: 650px;
    padding: 40px 0 0 0;
    font-family: 'AvantGardeTR', Arial, Helvetica, sans-serif;
    margin: 0 auto 28px auto;
    text-align: center;
    max-width: 1480px
}

/* ---------- YAN MENÜ (MASAÜSTÜ) ---------- */
.dashboard-sidebar {
    min-width: 245px;
    background: #f4f4f4;
    border-radius: 16px;
    padding: 32px 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 38px;
    align-items: stretch;
}

.dashboard-sidebar ul {
    list-style: none;
    padding: 0 0 0 0;
    margin: 0 0 16px 0;
}
.dashboard-sidebar li:not(.has-sub,.submenu>li) {
    font-size: 19px;
    color: #191919;
    padding: 16px 24px 16px 34px;
    border-radius: 10px 20px 20px 10px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'AvantGardeTR', Arial, Helvetica, sans-serif;
    cursor: pointer;
    transition: background .15s, color .12s;
}
.dashboard-sidebar li.active,
.dashboard-sidebar li:hover {
    background: #e5dfd7;
    color: #e27924;
}
.dashboard-sidebar li i {
    font-size: 22px;
    color: #e27924;
}
.dashboard-plans {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 10px;
    padding: 0 24px;
}
.dashboard-plan {
    background: #e27924;
    color: #fff;
    border: none;
    border-radius: 10px 20px 20px 10px;
    font-size: 16px;
    font-family: 'AvantGardeTRDemiBold', 'AvantGardeTR', Arial, sans-serif;
    padding: 10px 14px 9px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background .14s, box-shadow .16s;
    box-shadow: 0 1px 8px 0 rgba(226,121,36,0.06);
}
.dashboard-plan.business {
    background: #d7a063;
}
.dashboard-plan i {
    font-size: 20px;
}

/* ---------- ÜSTTE SCROLLABLE MENÜ (TABLET/MOBİL) ---------- */
.dashboard-topmenu-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 18px;
    position: relative;
    background: #f4f4f4;
    border-radius: 18px;
    padding: 0 0 6px 0;
    display: none; /* Tablet/mobilde block, masaüstünde none */
}
.dashboard-topmenu {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    padding: 0 10px;
    margin: 0;
    list-style: none;
    min-width: 540px;
}
.dashboard-topmenu li {
    white-space: nowrap;
    font-size: 17px;
    color: #191919;
    background: #f4f4f4;
    border-radius: 18px;
    padding: 13px 27px 13px 23px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background .13s, color .14s;
    min-width: 115px;
    font-family: 'AvantGardeTR', Arial, sans-serif;
    border: none;
}
.dashboard-topmenu li.active,
.dashboard-topmenu li:hover {
    background: #e5dfd7;
    color: #e27924;
}
.dashboard-topmenu li i {
    font-size: 20px;
    color: #e27924;
}
.dashboard-topmenu-scroll-arrow {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #e27924;
    opacity: .55;
    pointer-events: none;
    display: none; /* Scroll olduğunda display:block yapılacak */
}
/* Scrollbarı gizle (isteğe bağlı) */
.dashboard-topmenu-scroll::-webkit-scrollbar { height: 0; display: none; }
.dashboard-topmenu-scroll { scrollbar-width: none; }

@media (max-width: 1200px) {
    .dashboard-sidebar { display: none; }
    .dashboard-topmenu-scroll { display: block; }
}

@media (min-width: 1201px) {
    .dashboard-topmenu-scroll { display: none; }
    .dashboard-sidebar { display: flex; }
}

/* ---------- ANA İÇERİK ALANI ---------- */
.dashboard-content {
    flex: 1 1 0%;
    background: #f4f4f4;
    border-radius: 16px;
    padding: 32px 26px 28px 26px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
}
.dashboard-content-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 15px;
}
.dashboard-content-title {
    font-size: 19px;
    color: #666;
    font-family: 'AvantGardeTR', Arial, Helvetica, sans-serif;
    font-weight: 500;
}
.dashboard-content-filters {
    display: flex;
    gap: 8px;
}
.dashboard-filter {
    font-size: 14px;
    color: #191919;
    background: #fff;
    border-radius: 12px;
    border: 1.8px solid #191919;
    padding: 6px 16px 6px 16px;
    font-family: 'AvantGardeTR', Arial, Helvetica, sans-serif;
    font-weight: 400;
    cursor: pointer;
    transition: background .13s, color .14s, border .14s;
    outline: none;
}
.dashboard-filter.active,
.dashboard-filter:hover {
    background: #191919;
    color: #fff;
    border-color: #191919;
}
.dashboard-filter.orange {
    border-color: #e27924;
    color: #e27924;
}
.dashboard-filter.orange:hover,
.dashboard-filter.orange.active {
    background: #e27924;
    color: #fff;
}

/* ---------- KART GRİD ---------- */
.dashboard-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 10px;
}
.dashboard-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 18px 0 rgba(50,50,50,.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: box-shadow .18s, transform .18s;
}
.dashboard-card:hover {
    box-shadow: 0 10px 36px 0 rgba(226,121,36,.10);
    transform: translateY(-5px) scale(1.015);
}
.dashboard-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}
.dashboard-card-body {
    background: #5b5b5b;
    color: #fff;
    border-radius: 0 0 18px 18px;
    padding: 18px 16px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    min-height: 110px;
}
.dashboard-card-title {
    font-family: 'AvantGardeTRDemiBold', 'AvantGardeTR', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}
.dashboard-card-desc {
    font-size: 13px;
    color: #e7e7e7;
    font-family: 'AvantGardeTR', Arial, sans-serif;
    font-weight: 400;
    margin-bottom: 7px;
}
.dashboard-card-btn {
    background: #e27924;
    color: #fff;
    font-size: 15px;
    font-family: 'AvantGardeTRDemiBold', 'AvantGardeTR', Arial, sans-serif;
    border: none;
    border-radius: 12px;
    padding: 7px 0;
    width: 100%;
    cursor: pointer;
    transition: background .16s;
    margin-top: 3px;
}
.dashboard-card-btn:hover {
    background: #d1660f;
}

/* ---------- CHAT BUTTON ---------- */
.dashboard-chat-btn {
    position: fixed;
    right: 48px;
    bottom: 44px;
    background: #e27924;
    border: none;
    border-radius: 50%;
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 8px 24px 0 rgba(226,121,36,.13);
    z-index: 1200;
    transition: background .14s, box-shadow .15s;
}
.dashboard-chat-btn:hover { background: #191919; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1300px) {
    .dashboard-main { flex-direction: column; gap: 14px; }
    .dashboard-content { padding: 13px 3vw 18px 3vw; }
    .dashboard-card-grid { grid-template-columns: repeat(2, 1fr);}
}
@media (max-width: 900px) {
    .dashboard-card-grid { grid-template-columns: 1fr;}
    .dashboard-main { padding: 12px 0 0 0;}
    .dashboard-chat-btn { right: 8vw; bottom: 16vw; width: 38px; height: 38px; font-size: 21px;}
}
@media (max-width: 700px) {
    .dashboard-content { padding: 8px 2vw 12px 2vw; }
    .dashboard-content-title { font-size: 15px;}
}


/* Mobil / Tablet menü düzeni */
@media (max-width: 1200px) {
    .dashboard-topmenu-scroll {
        display: block;
        padding: 6px 0;
        background: #f4f4f4;
        border-radius: 12px;
        overflow-x: auto;
        white-space: nowrap;
    }
    .dashboard-topmenu {
        display: inline-flex;
        gap: 10px;
        padding: 0 10px;
    }
    .dashboard-topmenu li {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 18px;
        background: #fff;
        border-radius: 20px;
        flex-shrink: 0;
        font-size: 15px;
    }
    .dashboard-topmenu li.active {
        background: #e5dfd7;
        color: #e27924;
    }
    .dashboard-topmenu li i {
        font-size: 18px;
        color: #e27924;
    }
}
/* ===== Sidebar açılır menü (Tüm Araçlar) ===== */
.dashboard-sidebar .has-sub { margin-bottom: 6px;    font-size: 19px;
    color: #191919; }
.dashboard-sidebar .has-sub .sub-toggle{
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    border: 0; border-radius: 10px 20px 20px 10px;
    padding: 14px 16px 14px 22px;
    font: inherit; cursor: pointer;
    text-align: left;

}
.dashboard-sidebar .has-sub .sub-toggle i.fa-toolbox{ color: #e27924;margin-left: 13px;margin-right: 7px; }
.dashboard-sidebar .has-sub .caret{
    transition: transform .18s ease;
    color:#e27924; opacity:.9;
    margin-left: 13px;
}

/* kapalı/açık durumunda caret */
.dashboard-sidebar .has-sub.open .caret{ transform: rotate(-180deg); }

/* Alt menü listesi */
.dashboard-sidebar .has-sub .submenu{
    list-style: none; margin: 6px 0 0 0; padding: 6px 0 0 6px;
    max-height: 0; overflow: hidden;
    transition: max-height .24s ease, opacity .18s ease;
    opacity: 0;
}
.dashboard-sidebar .has-sub.open .submenu{
    max-height: 480px; /* yeterince büyük bir değer */
    opacity: 1;
}

/* Alt satırlar */
.dashboard-sidebar .has-sub .submenu li a{
    display:block;
    padding: 9px 14px 9px 16px;
    margin: 2px 8px;
    font-size: 15px;
    color:#191919;
    border-radius: 8px 14px 14px 8px;
    background: transparent;
    transition: background .15s, color .15s;
    font-size: 19px;
    color: #191919;
}
.dashboard-sidebar .has-sub .submenu li a:hover{
    background:#f1ece5;
    color:#e27924;
}

/* Aktif alt link (isteğe bağlı class="current") */
.dashboard-sidebar .has-sub .submenu li a.current{
    background:#f1ece5;
    color:#e27924; font-weight:600;
}

/* Sidebar ile uyum: hover/active stiller bozulmasın */
.dashboard-sidebar li a{ display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit; }
.submenu {
    display: none;
    list-style: none;
    padding-left: 20px; /* Soldan boşluk */
    margin: 0;
}

.submenu li {
    text-align: left; /* Sağa yaslanmasın */
    padding: 5px 0;
}

.submenu li a {
    display: block;
    color: inherit;
    text-decoration: none;
}