﻿:root {
    /* رنگ‌های اصلی */
    --color-primary: #2962FF; /* آبی کبالت */
    --color-primary-light: #E3EDFF; /* آبی خیلی کم‌رنگ برای بک‌گراند یا هاور */
    --color-primary-dark: #0039CB; /* آبی تیره‌تر (مناسب برای متن یا حالت فعال) */

    --color-secondary: #FFC940; /* زرد خردلی */
    --color-secondary-light: #FFF3D1; /* زرد خیلی کم‌رنگ */
    --color-secondary-dark: #D8A600; /* زرد پررنگ‌تر (مناسب آیکون یا هشدار مثبت) */


    --color-danger: #E53935; /* قرمز متعادل */
    --color-danger-light: #FFEBEE; /* خیلی کم‌رنگ (برای بک‌گراند هشدارها) */
    --color-danger-dark: #B71C1C; /* قرمز تیره برای تاکید */


    --color-success: #43A047; /* سبز ملایم و قابل اعتماد */
    --color-success-light: #E8F5E9; /* سبز خیلی کم‌رنگ (بک‌گراند موفقیت) */
    --color-success-dark: #1B5E20; /* سبز تیره برای تاکید یا آیکون */




    --font-main: vazir;
    font-size: 16px; /* این یعنی 1rem = 16px */

    --font-size-nomal: --btn-radius: 8px;
    --btn-padding: 0.6em 1.2em;
    --btn-font: 14px;
    --btn-transition: 0.25s ease-in-out;
    --btn-radius: 8px;
}

@media (max-width: 768px) {
    :root {
        font-size: 15px;
    }
}


@font-face {
    font-family: vazir;
    src: url('https://plugin.dorweb.ir/font/Vazir-Regular-FD.woff');
}


*,
*::before,
*::after {
    box-sizing: border-box;
}

a{
    text-decoration:none;
    color:#000;
}

body {
    font-family: var(--font-main);
    direction:rtl;
    background-color:#eee;
    padding:0px;
    margin:0px;
}

img{
    max-width:100%;
}


h2 {
    padding: 0px;
    margin: 0px;
    font-size: 1.2rem;
}



.center{
    text-align:center!important;
}

.right {
    text-align:right !important;
}

.left{
    text-align:left !important;
}

table{
    width:100%;
}

.w50{
    width:50%;
}


.page-main {
    width: 800px;
    max-width:100%;
    margin:auto;
    padding:10px;
}


.page-top {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.page-top h1
{
    margin:0px;
    padding:0px;
    font-size:1.25rem;
    font-weight:bold;
    color:var(--color-primary-dark);
}

    .page-top .menu-icon-box
    {
        background-color:var(--color-primary-dark);
        width:30px;
        display:inline-block;
        height:30px;
        border-radius:50%;
        color:#FFF;
        text-align:center;
        line-height:33px;
    }


.menu-box-bg {
    z-index:499 ;
    position: fixed;
    top: 0px;
    right:0px;
    left: 0px;
    bottom: 0px;
    background-color: rgba(0,0,0,0.65);
    display:none;
    transition-duration:0.5s;
}


.menu-box
{
    z-index:500;
    position:fixed;
    top:0px;
    left:0px;
    bottom:0px;
    padding:20px;
    width:80vw;
    background-color:#fff;
    transition-duration:0.5s;
    transform:translateX(-100%);
}
    .menu-box a.menu {
        text-decoration: none;
        width: 100%;
        display: inline-block;
        background-color: #ededed;
        margin-bottom: 5px;
        line-height: 30px;
        border-radius: var(--btn-radius);
        color:var(--color-primary-dark)
    }

    .menu-box a.menu .fa-solid {
        text-decoration: none;
        width: 30px;
        height: 30px;
        display: inline-block;
        background-color: var(--color-primary);
        margin-left: 10px;
        line-height: 30px;
        text-align: center;
        color: #fff;
        border-top-right-radius: var(--btn-radius);
        border-bottom-right-radius: var(--btn-radius);
    }

    .default-page {
    position: fixed;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    background-color: var(--color-primary);
    display: flex;
    overflow: auto;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.default-page .box
{
    width:500px;
    max-width:100%;
}




 


.box {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    line-height:175%;
}

    .box:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        /*transform: translateY(-2px);*/
    }

    .box h1{
        color:var(--color-primary-dark);
        padding:0px;
        margin:0px;
        margin-bottom:1rem;
        font-size:1.5rem;
    }

    .box h1 .fa-solid {
        background-color:var(--color-primary-dark);
        color: #ffff;
        padding: 0px;
        margin: 0px;
        font-size: 1rem;
        width:30px;
        height:30px;
        line-height:30px;
        text-align:center;
        border-radius:50%;
        margin-left:10px;
    }

.desc-box {
    background-color: var(--color-primary-light);
    border-right: 5px solid var(--color-primary-dark);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    padding: 1.5rem;
    text-align:justify;
    line-height:150%;
    font-size:0.85rem;
    margin-top: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    line-height: 175%;
}

.desc-box ul
{
    margin:0px;
    padding:0px 10px;
}

.item-box {
    border: 1px dashed #ccc;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    line-height: 175%;
}



select,
input[type=text],
input[type="number"]
{
    width: 100%;
    margin-bottom: 0.75rem; /* فاصله بالا و پایین 12px */
    padding: 0.6rem 0.9rem;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: var(--font-main);
}

    input[type=text]:focus
    input[type="number"]:focus{
        border-color: var(--color-primary); /* مثلاً آبی کبالت */
        box-shadow: 0 0 0 3px var(--color-primary-light); /* سایه ملایم هنگام فوکوس */
    }



/* برای مرورگرهای Chrome، Safari، Edge */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* برای Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}


select option {
    font-family: Tahoma;
    font-size: 1rem;
}









input[type=button],
.btn-primary,
.btn-secondary {
    background-color: var(--color-primary);
    color: white;
    padding: var(--btn-padding);
    font-family: var(--font-main);
    font-size: var(--btn-font);
    border: none;
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: background-color var(--btn-transition), transform var(--btn-transition);
    min-width: 100px;
}

        input[type=button]:hover,
        .btn-primary:hover,
        .btn-secondary:hover {
            background-color: var(--color-primary-dark);
            transform: translateY(-1px);
        }

        input[type=button]:active,
        .btn-primary:active,
        .btn-secondary:active {
            transform: scale(0.97);
        }


.btn-secondary {
    background-color: var(--color-secondary);
    color: black;
}

    .btn-secondary:hover {
        background-color: var(--color-secondary-dark);
    }


    input[type=button]:disabled,
    .btn-primary:disabled,
    .btn-secondary:disabled {
        background-color: #e0e0e0; /* خاکستری روشن */
        color: #a0a0a0; /* متن کم‌رنگ */
        cursor: not-allowed; /* نمایش اشاره‌گر غیرفعال */
        transform: none !important; /* جلوگیری از حرکت */
        box-shadow: none;
        opacity: 0.7;
    }


    label
    {
        font-weight:bold;
        margin-top:5px;
        display: inline-block;
    }
label:after {
    content:" : ";
}


        label[for] {
            font-weight: normal !important;
            margin-top: 0px;
            margin-right:5px;
            width: calc(50% - 30px);
        }
        label.c1 {
            width: calc(100% - 30px);
        }
        label.c2
        {
            width:calc(50% - 30px);
        }
        label.c3 {
            width: calc(33.33% - 30px);
        }
        label.c4 {
            width: calc(25% - 30px);
        }
        label[for]:after {
            content: "" !important;
        }


.alert-success,
.alert-error {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    margin: 0.5rem 0px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: var(--color-success-light);
    color: var(--color-success-dark);
    border-color: var(--color-success);
}

.alert-error {
    background-color: var(--color-danger-light);
    color: var(--color-danger-dark);
    border-color: var(--color-danger);
}

.currency
{
    color:green;
    font-weight:bold;
}

.currency-n {
    color: #cc0000;
    font-weight: bold;
}

.img-profile{
    width:100px;
    height:100px;
    border-radius:50%;
}

.img-select {
    border: 1px solid #ccc;
    width: 200px;
    max-width: 100%;
    min-height: 200px;
    margin: 0.75rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.row-2,
.row-3 {
    display: flex;
    flex-wrap:wrap;
}


.row-2 .col{
    width:50%;
}

    .row-3 .col {
        width: 33.33%;
    }


.row {
    display: flex;
    flex-wrap: wrap;
    width:calc(100% + 10px);
}

.col-1{
    width:calc(25% - 10px);
    margin-left: 5px;
}

.col-2 {
    width:calc(50% - 10px);
    margin-left: 5px;
}

.col-3 {
    width: calc(75% - 10px);
    margin-left: 5px;
}
.col-4 {
    width: calc(100% - 10px);
    margin-left: 5px;
}


@media screen and (max-width: 600px) {
    .col-1 {
        width: 50%;
    }

    .col-2 {
        width: 100%;
    }

    .col-3 {
        width: 100%;
    }

    .col-4 {
        width: 100%;
    }
}


.t{
    background-color:blue;
}
