:root {
    --bg-footer: #ffcc00;
    --text-color: #2c2a4a;
    --dark-color: #35307b;
    --menu-color-mobile: #fff;
    --menu-color-desk: #000;
}


[data-theme="dark"] {
    --bg-color: #212529;
    --text-color: #f8f9fa;
}

.menu-icon {
    padding: 8px;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* رنگ‌های پایه و hover هماهنگ */
.menu-icon.dashboard {
    background: #e0e7ff;
    color: #3730a3;
}

.menu-item:hover .menu-icon.dashboard {
    background: #3730a3;
    color: #fff;
}

.menu-icon.athletes {
    background: #d1fae5;
    color: #065f46;
}

.menu-item:hover .menu-icon.athletes {
    background: #065f46;
    color: #fff;
}

.menu-icon.movements {
    background: #ffedd5;
    color: #c2410c;
}

.menu-item:hover .menu-icon.movements {
    background: #c2410c;
    color: #fff;
}

.menu-icon.requests {
    background: #fee2e2;
    color: #b91c1c;
}

.menu-item:hover .menu-icon.requests {
    background: #b91c1c;
    color: #fff;
}

.menu-icon.training {
    background: #dcfce7;
    color: #166534;
}

.menu-item:hover .menu-icon.training {
    background: #166534;
    color: #fff;
}

.menu-icon.food {
    background: #fce7f3;
    color: #9d174d;
}

.menu-item:hover .menu-icon.food {
    background: #9d174d;
    color: #fff;
}

.menu-icon.reports {
    background: #e0f2fe;
    color: #075985;
}

.menu-item:hover .menu-icon.reports {
    background: #075985;
    color: #fff;
}

.menu-icon.tickets {
    background: #fef3c7;
    color: #92400e;
}

.menu-item:hover .menu-icon.tickets {
    background: #92400e;
    color: #fff;
}

.menu-icon.messages {
    background: #d1fae5;
    color: #065f46;
}

.menu-item:hover .menu-icon.messages {
    background: #065f46;
    color: #fff;
}

.menu-icon.settings {
    background: #e5e7eb;
    color: #1f2937;
}

.menu-item:hover .menu-icon.settings {
    background: #1f2937;
    color: #fff;
}


.ck-powered-by {
    display: none !important;
}

.ck-blurred.ck.ck-content.ck-editor__editable.ck-rounded-corners.ck-editor__editable_inline {
    min-height: 200px;
}

.ck-editor__editable_inline {
    min-height: 200px;
    border-radius: 8px;
    border-color: #ccc;
}


body.loading {
    visibility: hidden;
}


/*.portlet-title {*/
/*    border-radius: 80px !important;*/
/*    background-color: #7f69c7 !important;*/
/*    min-height: 41px;*/
/*    margin-bottom: 20px;*/
/*    padding-top: 20px;*/
/*    padding-bottom: 20px;*/
/*    padding-right: 20px;*/
/*    color: #fff;*/
/*}*/
/*.portlet-title {*/
/*    !* border-radius: 80px !important; *!*/
/*    background-color: #7f69c7 !important;*/
/*    min-height: 41px;*/
/*    margin-bottom: 20px;*/
/*    padding-top: 10px;*/
/*    padding-bottom: 10px;*/
/*    padding-left: 10px;*/
/*    color: #fff;*/
/*}*/


/*.input-underline {*/
/*    border: none;*/
/*    border-bottom: 1px dashed #999;*/
/*    background-color: transparent;*/
/*    border-radius: 0;*/
/*    padding: 4px 2px;*/
/*    width: 100%;*/
/*    outline: none;*/
/*    font-size: 15px;*/
/*    transition: border-color 0.3s ease;*/
/*}*/

/*.input-underline:focus {*/
/*    border-bottom: 1px solid #000;*/
/*    background-color: transparent;*/
/*    box-shadow: none;*/
/*}*/

/*.select2-container--default.select2-container--focus.input-underline .select2-selection--single,*/
/*.select2-container--default.input-underline .select2-selection--single {*/
/*    border: none;*/
/*    border-bottom: 1px dotted #999;*/
/*    border-radius: 0;*/
/*    background-color: transparent;*/
/*    box-shadow: none;*/
/*    padding: 6px 0;*/
/*}*/

/*.select2-container--default.input-underline .select2-selection--multiple {*/
/*    border: none;*/
/*    border-bottom: 1px dotted #999;*/
/*    border-radius: 0;*/
/*    background-color: transparent;*/
/*    box-shadow: none;*/
/*    min-height: 36px;*/
/*    padding: 6px 0 0 0;*/
/*}*/

.container-p-y {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-container {
    flex: 1;
}

/****
mobile bottom sidebar menu
 */

/* پیشفرض: منوی موبایل مخفی */
.bottom-nav {
    display: none;
}


@media (max-width: 768px) and (min-width: 50px) {
.portlet-title {
	border-radius: 8px;
	color: #1b1c1e;
	font-size: 13px !important;
	background-color: #fff;
	margin-bottom: 2px;
	box-shadow: 1px 1px 1px #ccc;
}
.portlet-title h4{
    margin-bottom:0px !important;
}

    .set-menu-color {
        color: var(--menu-color-mobile);
    }

    .container-p-y {
        padding-top: 4.5rem !important;
    }

    .logout-mobile-sidebar {
        color: #d30d16;
        display: flex;
        align-items: center;
        /* margin: 0 auto; */

    }

    /* حالت باز سایدبار */
    /* حالت عادی سایدبار */
    .layout-menu {
        width: 260px; /* عرض سایدبار */
        transition: width 0.3s ease;
        overflow: hidden;
    }

    /* حالت جمع‌شده */
    .layout-menu.collapsed {
        width: 0;
    }


    #layout-navbar {
        transition: background-color 0.3s ease;
        background-color: transparent; /* رنگ اولیه */
    }

    #layout-navbar.scrolled {
        background-color: #2c2a4a !important; /* رنگ پس‌زمینه بعد از اسکرول */
    }

    #layout-navbar {
        position: fixed; /* ثابت بالای صفحه */
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030; /* بالاتر از بقیه المان‌ها */
        transition: background-color 0.3s ease;
        background-color: #2c2a4a !important;
    }

    /* وقتی اسکرول شد، رنگ بک‌گراند عوض می‌شود */
    #layout-navbar.navbar-elevated {
        /*background-color: #e3e3e3 !important;*/
    }

    #navbar-collapse {
        display: none !important;
    }

    .dashboard-icon {
        display: none;
    }

    .bottom-nav {
        display: none;
        position: fixed;
        bottom: 0;
        width: 100%;
        background-color: #2c2a4a;
        padding: 10px 0 18px;
        display: flex;
        justify-content: space-around;
        box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.3);
        z-index: 9999;
        /*font-family: 'Vazir', sans-serif;*/
    }

    .nav-item {
        color: #bbb;
        text-decoration: none;
        font-size: 18px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 18%;
        transition: color 0.3s ease;
        user-select: none;
        position: relative;
    }

    .nav-item .label {
        font-size: 11px;
        margin-top: 4px;
        white-space: nowrap;
    }

    .nav-item:hover,
    .nav-item.active {
        color: #ffcc00;
    }

    .nav-item.home {
        background-color: var(--bg-footer);
        color: var(--text-color);
        width: 60px;
        height: 60px;
        border-radius: 50%;
        margin-top: -30px;
        box-shadow: 0 4px 12px rgba(255, 204, 0, 0.6);
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .nav-item.home .label {
        margin-top: 2px;
        font-weight: 600;
    }

    .nav-item.home:hover,
    .nav-item.home.active {
        background-color: #e6b800;
        color: #2c2a4a;
    }

    .bottom-nav i {
        font-size: 22px;
    }
}

@media (min-width: 769px) {

    .portlet-title {
        background-color: #e1dfdf !important;
        min-height: 41px;
        padding: 15px 20px;
        border-radius: 8px;
        /*box-shadow: 0 2px 6px rgba(0,0,0,0.1);*/
        color: #212529;
        font-size: 1.3rem;
        font-weight: 700;
        user-select: none;
        transition: background-color 0.3s ease;
        margin-bottom: 20px;
    }

    .set-menu-color {
        color: var(--menu-color-desk);
    }

    .bottom-nav {
        display: none;
    }

    /*.desktop-menu {*/
    /*    display: block; !* یا flex بسته به طراحی *!*/
    /*}*/
}




/* ======================== */
/* موبایل */
/* ======================== */
@media (max-width: 767.98px) {

    /****
dashboard mobile style
 */
    /* استایل مشترک برای کارت‌ها */
    .card {
        border-radius: 12px;
        padding: 20px 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: box-shadow 0.3s ease, transform 0.3s ease;
    }

    .card:hover {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        transform: translateY(-5px);
    }

    .card-dashboard i {
        display: block;
        margin: 0 auto 15px;
        transition: color 0.3s ease;
    }
    .sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px;
        background-color: #2c2a4a;
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .app-brand {
        display: none;
    }

    .mobile-card-neutral {
        background-color: #fdfdfd;
        /*color: #fff;*/
        box-shadow: none;
        border: 1px solid #2c2a4a;
    }

    .mobile-card-neutral i {
        font-size: 2.5rem;
        color: #2c2a4a;
        opacity: 0.85;
    }

    .mobile-card-neutral a, .mobile-card-neutral span {
        font-size: 13px;
        color: #2c2a4a;
        font-weight: 500;
        text-decoration: none;
    }

    /*.mobile-card-neutral a,*/
    /*.mobile-card-neutral span {*/
    /*    font-size: 13px;*/
    /*    color: #fff;*/
    /*    font-weight: 500;*/
    /*    text-decoration: none;*/
    /*}*/
    .mobile-card-neutral a:hover {
        text-decoration: underline;
        color: #ffd600; /* زرد ملایم برای جذابیت */
    }
}

/* ======================== */
/* دسکتاپ */
/* ======================== */
@media (min-width: 768px) {
    .card.card-dashboard.mobile-card-neutral.text-center {
        padding: 20px 0;
    }
    .image-logo-mobile {
        display: none;
    }

    .sidebar-header {
        display: none;
    }

    .mobile-card-neutral {
        background-color: #f8f9fa;
        color: #212529;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .mobile-card-neutral i {
        font-size: 3.5rem;
        color: #5a4d8e; /* رنگ بنفش ملایم */
        opacity: 1;
    }

    .mobile-card-neutral a,
    .mobile-card-neutral span {
        font-size: 1.3rem;
        font-weight: 600;
        color: #212529;
    }

    .mobile-card-neutral a:hover {
        color: #7b59c9; /* بنفش روشن‌تر */
        text-decoration: none;
    }
}


.sidebar-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-right: 8px;
}

.sidebar-username {
    flex: 1;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* حالت عادی سایدبار */

.container-fluid-app {
    align-items: flex-start !important;
}

.ms-3-app {
    margin-right: 1rem !important;
    margin-top: -2%;
}

.btn-dark {
    background-color: var(--dark-color);
}







.card-dashboard {
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    background: #fff;
}

.card-dashboard:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

 /*مخصوص حالت موبایل*/
.mobile-card-neutral {
    padding: 20px 10px;
}

/* آیکون‌ها */
.card-dashboard i {
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
}

/*!* متن کارت *!*/
.card-dashboard span {
    display: block;
    font-size: 15px;
    color: #333;
}

/* رنگ‌بندی پیش‌فرض برای کارت‌های خنثی */
.card-dashboard a,
.card-dashboard a:visited {
    color: inherit;
    text-decoration: none;
}

.request-count {
	font-size: 14px;
	border-radius: 14px;
	border: 1px solid #d22a2a;
	background-color: red;
}

