

@font-face{
    font-family: "PINAR-DS1-BLACK";
    src: url("assets/fonts/FontPinar/PINAR-DS1-BLACK.TTF") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display:swap;
}
@font-face{
    font-family: "PINAR-DS1-BOLD";
    src: url("assets/fonts/FontPinar/PINAR-DS1-BOLD.TTF") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display:swap;
}
@font-face{
    font-family: "PINAR-DS1-EXTRABOLD";
    src: url("assets/fonts/FontPinar/PINAR-DS1-EXTRABOLD.TTF") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display:swap;
}
@font-face{
    font-family: "PINAR-DS1-LIGHT";
    src: url("assets/fonts/FontPinar/PINAR-DS1-LIGHT.TTF") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display:swap;
}
@font-face{
    font-family: "PINAR-DS1-MEDIUM";
    src: url("assets/fonts/FontPinar/PINAR-DS1-MEDIUM.TTF") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display:swap;
}
@font-face{
    font-family: "PINAR-DS1-REGULAR";
    src: url("assets/fonts/FontPinar/PINAR-DS1-REGULAR.TTF") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display:swap;
}
@font-face{
    font-family: "PINAR-DS1-SEMIBOLD";
    src: url("assets/fonts/FontPinar/PINAR-DS1-SEMIBOLD.TTF") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display:swap;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"PINAR-DS1-LIGHT",sans-serif;
}

body{
    display:flex;
    background:#f4f6fb;
    color:#1f2937;
    height:100vh;
    direction:rtl;
}

/* SIDEBAR */

.sidebar{
    width:240px;
    background:#111827;
    color:white;
    padding:25px 15px;
    display:flex;
    flex-direction:column;
}

.logo{
    display:flex;
    align-items:center;
    gap:10px;
    padding:20px;
    font-weight:700;
    font-size:18px;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.logo img{
    width:34px;
    height:34px;
    border-radius:8px;
}


.sidebar nav{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.sidebar button{
    background:transparent;
    border:none;
    padding:12px 14px;
    color:#cbd5e1;
    text-align:right;
    border-radius:8px;
    cursor:pointer;
    font-size:14px;
    transition:all .2s;
}

.sidebar button:hover{
    background:#1f2937;
    color:white;
}

.sidebar button.active{
    background:linear-gradient(135deg,#4c6fff,#6b8cff);
    color:white;
}

/* MAIN */

.main{
    flex:1;
    display:flex;
    flex-direction:column;
}

/* TOPBAR */

.topbar{
    height:65px;
    background:white;
    border-bottom:1px solid #e5e7eb;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 25px;
    box-shadow:0 2px 10px rgba(0,0,0,0.03);
}

.topbar h2{
    font-weight:600;
}

.profile{
    display:flex;
    align-items:center;
    gap:15px;
}

.profile img{
    width:36px;
    height:36px;
    border-radius:50%;
}

/* CONTENT */

#content{
    padding:30px;
    overflow:auto;
}

/* CARDS */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin-bottom:25px;
}

.card{
    background:white;
    padding:22px;
    border-radius:12px;
    box-shadow:0 8px 20px rgba(0,0,0,0.04);
    transition:.25s;
}

.card:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.card h3{
    font-size:14px;
    color:#6b7280;
    margin-bottom:8px;
}

.card p{
    font-size:26px;
    font-weight:700;
    color:#111827;
}

/* TABLE */

table{
    width:100%;
    border-collapse:collapse;
    background:white;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,0.04);
}

th{
    background:#f9fafb;
    font-weight:600;
    font-size:13px;
    color:#6b7280;
}

th,td{
    padding:14px;
    border-bottom:1px solid #eee;
    text-align:right;
}

tr:hover{
    background:#fafafa;
}

/* GRID */

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:20px;
}

.product{
    background:white;
    padding:18px;
    border-radius:12px;
    box-shadow:0 6px 16px rgba(0,0,0,0.04);
    text-align:center;
    transition:.25s;
}

.product:hover{
    transform:translateY(-4px);
}

/* BUTTON */

button{
    background:linear-gradient(135deg,#4c6fff,#6b8cff);
    border:none;
    color:white;
    padding:9px 16px;
    border-radius:8px;
    cursor:pointer;
    font-size:14px;
    transition:.2s;
}

button:hover{
    opacity:.9;
}

/* INPUT */

input,textarea{
    width:100%;
    padding:10px;
    margin:8px 0;
    border:1px solid #e5e7eb;
    border-radius:8px;
    outline:none;
    font-size:14px;
}

input:focus,
textarea:focus{
    border-color:#4c6fff;
}

/* CHAT */

.chat{
    background:white;
    height:400px;
    overflow:auto;
    padding:18px;
    border-radius:12px;
    box-shadow:0 6px 16px rgba(0,0,0,0.04);
    margin-bottom:12px;
}

.message{
    padding:10px 14px;
    margin:8px 0;
    border-radius:10px;
    max-width:65%;
    font-size:14px;
}

.me{
    background:#4c6fff;
    color:white;
    margin-right:auto;
}

.them{
    background:#f1f5f9;
}

/* PROGRESS */

progress{
    width:100%;
    height:10px;
    border-radius:6px;
    overflow:hidden;
}

progress::-webkit-progress-bar{
    background:#e5e7eb;
}

progress::-webkit-progress-value{
    background:linear-gradient(90deg,#4c6fff,#6b8cff);
}

/* DARK MODE */

.dark{
    background:#0f172a;
    color:white;
}

.dark .topbar,
.dark .card,
.dark table,
.dark .chat,
.dark .product{
    background:#1e293b;
    color:white;
}

.dark th{
    background:#1e293b;
}
/* MENU BUTTON */
/*.menu{*/
/*    padding:10px;*/
/*}*/
.menu{
    padding:12px;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.menu button,
.menu-title{
    width:100%;
    background:none;
    border:none;
    color:#d1d5db;
    text-align:right;
    padding:12px 14px;
    border-radius:8px;
    cursor:pointer;
    font-size:14px;
    transition:.2s;
    display:flex;
    justify-content:space-between;
    align-items:center;
}
.menu button:hover,
.menu-title:hover{
    background:rgba(255,255,255,.08);
    color:#fff;
}

.submenu{
    max-height:0;
    overflow:hidden;
    transition:.3s;
    padding-right:10px;
}

.submenu button{
    font-size:13px;
    color:#9ca3af;
    padding:10px 12px;
}

.submenu button:hover{
    color:#fff;
}


.menu-group.open .submenu{
    max-height:200px;
}

.arrow{
    font-size:12px;
    opacity:.7;
}

.menu-btn{
    display:none;
    background:none;
    color:#111;
    font-size:22px;
    border:none;
    cursor:pointer;
}

/* TABLET */

@media (max-width:1000px){

    .sidebar{
        width:200px;
    }
    .sidebar{
        transition: right .3s ease;
    }

    .menu-btn{
        font-size:24px;
    }

    .cards{
        grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    }

}

/* MOBILE */

@media (max-width:768px){

    body{
        flex-direction:column;
    }

    /* sidebar mobile */

    .sidebar{
        position:fixed;
        right:-260px;
        top:0;
        height:100%;
        z-index:1000;
        transition: right .3s ease;
    }

    .sidebar.open{
        right:0;
    }

    /* menu button */

    .menu-btn{
        display:block;
        font-size:24px;
    }

    /* content */

    .main{
        width:100%;
    }

    #content{
        padding:20px;
    }

    /* cards mobile */

    .cards{
        grid-template-columns:1fr;
    }

    /* grid */

    .grid{
        grid-template-columns:1fr;
    }

    /* table scroll */

    table{
        display:block;
        overflow-x:auto;
    }

    /* chat */

    .chat{
        height:300px;
    }

}

/* SMALL MOBILE */

@media (max-width:480px){

    .topbar{
        padding:0 15px;
    }

    .card{
        padding:16px;
    }

    button{
        /*width:100%;*/
    }

}


