/* ================= ADMIN LIST ITEM ================= */

.obj-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #fff;
    padding: 10px 12px;
    margin-bottom: 10px;

    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);

    transition: 0.2s ease;
}

.obj-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* عنوان آیتم */
.obj-title {
    font-size: 0.95rem;
    color: #111;
}

/* اکشن‌ها */
.obj-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* ================= SECTION TITLE ================= */

.section-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: #111;
}

/* ================= TABLE CLEAN ================= */

.table {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    background: #f8f9fa;
    font-weight: 500;
}

/* ================= GLOBAL RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Vazirmatn, sans-serif;
    background: #f5f6f8;
    color: #111;
}

/* ================= HEADER ================= */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #e0bc1b;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* LOGO */

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-area img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.logo-text {
    color: #111;
    font-weight: 400;
    font-size: 1.2rem;
    white-space: nowrap;
}

/* NAV CENTER */

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 18px;
}

.nav-center a {
    text-decoration: none;
    color: #111;
    font-weight: 400;
    position: relative;
    padding: 6px 4px;
}

.nav-center a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: #7d7d7d;
    transition: 0.25s;
}

.nav-center a:hover::after {
    width: 100%;
}

/* NAV ITEM */

.nav-item {
    position: relative;
}

/* DROPDOWN */

.dropdown-menu {
    position: absolute;
    top: 32px;
    right: 0;
    background: #fff;
    min-width: 180px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: none;
    direction: rtl;
    text-align: right;
}


.dropdown-menu a {
    display: block;
    padding: 10px;
    color: #111;
    text-align: right;
}

.dropdown-menu a:hover {
    background: #f3f4f6;
}

/* NAV LEFT */

.nav-left {
    display: flex;
    align-items: center;
}

.nav-left a {
    color: #111;
    text-decoration: none;
}

/* CONTAINER */

.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 16px;
}

/* CARD */

.card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* BUTTON */

.btn {
    background: #e0bc1b;
    color: #111;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
}

/* FOOTER */

footer {
    background: #7d7d7d;
    color: #fff;
    margin-top: 40px;
    padding: 30px;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #e5e5e5;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .nav-center {
        display: none;
    }
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    flex-wrap: wrap; /* خیلی مهم */
    gap: 10px;
}
.nav-center {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.nav-left {
    display: flex;
    align-items: center;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-area img {
    height: 40px;
}
@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-center {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .nav-left {
        width: 100%;
    }

    .nav-item {
        width: 100%;
    }

    .nav-center a,
    .nav-left a {
        display: block;
        padding: 8px 0;
    }

    /* گوگل ترنسلیت */
    .nav-lang {
        width: 100%;
        justify-content: flex-start;
    }
}
/* ===== NAVBAR BASE ===== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    gap: 20px;
    background: #fff;
}

/* لوگو */
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-area img {
    height: 40px;
}

.logo-text {
    font-weight: 600;
    font-size: 16px;
}

/* وسط منو */
.nav-center {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.nav-center a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

/* سمت چپ */
.nav-left {
    display: flex;
    align-items: center;
}

.nav-item {
    position: relative;
}

/* dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 160px;
    display: none;
    flex-direction: column;
    border: 1px solid #eee;
    border-radius: 8px;
    z-index: 999;
}



.dropdown-menu a {
    padding: 8px 12px;
    white-space: nowrap;
}

/* ===== GOOGLE TRANSLATE ===== */
.nav-lang {
    display: flex;
    align-items: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-center {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-left {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-center a {
        width: 100%;
        padding: 6px 0;
    }

    .dropdown-menu {
        position: static;
        border: none;
        padding-left: 10px;
    }
}
.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

/* دسکتاپ - هیچ تغییری */
.nav-center,
.nav-left {
    display: flex;
}

/* موبایل */
@media (max-width: 900px) {

    .menu-toggle {
        display: block;
    }

    .nav-center,
    .nav-left {
        display: none !important;   /* مهم */
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .nav-center.active,
    .nav-left.active {
        display: flex !important;   /* مهم */
    }

    .navbar {
        flex-wrap: wrap;
    }
}
.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

@media (max-width: 900px) {

    .menu-toggle {
        display: block;
    }

    .nav-center,
    .nav-left {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-center.active,
    .nav-left.active {
        display: flex;
    }
}
.menu-toggle {
    display: none;
    font-size: 32px;
    cursor: pointer;
    user-select: none;
    z-index: 1001;
}

/* overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 999;
}

/* وقتی فعال شد */
.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {

    .menu-toggle {
        display: block;
    }

    .nav-center,
    .nav-left {
        position: fixed;
        right: 0;
        top: 0;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 70px 20px;
        gap: 15px;

        transform: translateX(100%);
        transition: 0.3s ease;
        z-index: 1000;
    }

    /* باز شدن */
    .nav-center.active,
    .nav-left.active {
        transform: translateX(0);
    }

    .nav-center a,
    .nav-left a {
        padding: 10px 0;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 10px;
    }
}
.menu-toggle{
    display:none;
    font-size:30px;
    cursor:pointer;
}

@media (max-width:900px){

    .menu-toggle{
        display:block;
    }

    .nav-center,
    .nav-left{
        display:none;
        width:100%;
        flex-direction:column;
        background:white;
    }

    .nav-center.show,
    .nav-left.show{
        display:flex;
    }
}
/* ================= MOBILE NAVBAR ================= */

.menu-toggle{
    display:none;
    font-size:32px;
    cursor:pointer;
    user-select:none;
}

.nav-wrapper{
    display:flex;
    align-items:center;
    flex:1;
    justify-content:space-between;
}

@media (max-width:900px){

header{
    position:relative;
}

.menu-toggle{
    display:block;
}

.nav-wrapper{

    position:absolute;

    top:100%;

    right:0;

    width:100%;

    background:white;

    display:none;

    flex-direction:column;

    padding:15px;

    box-shadow:0 8px 20px rgba(0,0,0,.15);

}

.nav-wrapper.show{

    display:flex;

}

.nav-right{


    flex-direction:column;

    align-items:flex-start;


    width:100%;

    margin-top:15px;

}
.nav-center{

    width:100%;

    flex-direction:column;

    align-items:flex-start;

    gap:8px;

}

.nav-left{

    width:100%;

    margin-top:15px;

}

.nav-center a,

.nav-left a{

    width:100%;

    padding:10px;

}

.dropdown-menu{

    position:static;

    display:none;

    box-shadow:none;

    border:none;

    padding-right:20px;

}


}
.dropdown-menu{
    display:none;
}

.dropdown-menu.show{
    display:block;
}




.nav-item{
    position:relative;
}

.dropdown-menu{
    position:absolute;
    top:100%;
    right:0;

    min-width:220px;

    background:#fff;
    border-radius:10px;
    box-shadow:0 10px 25px rgba(0,0,0,.15);

    display:none;

    z-index:999;
}

.dropdown-menu.show{
    display:block;
}

.dropdown-menu a{
    display:block;
    padding:12px 15px;
    color:#111;
    text-decoration:none;
}

.dropdown-menu a:hover{
    background:#f3f4f6;
}
.nav-item{
    position: relative;
}

.dropdown-menu{
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    z-index: 999;
}

.dropdown-menu.show{
    display: block;
}
.nav-item{
    position: relative;
}

.nav-item:hover > .dropdown-menu{
    display: block;
}

.dropdown-menu{
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    z-index: 999;
}

.dropdown-menu.show{
    display: block;



}

