:root {
    --bg: #fffaff;
    --spin-bg: #f9f9f9;
    --spinner: #ccc;
    --text: #303030;
    --header-bg: #1e1b18;
    --sub: #fffaff;
    --nav: #3e92cc;
    --item: #d8315b;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
[data-theme="dark"] {
    --bg: #252525;
    --spin-bg: #202020;
    --spinner: #999;
    --text: #f9f9f9;
    --header-bg: #1e1b18;
    --sub: #fffaff;
    --nav: #3e92cc;
    --item:#d8315b;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}
@font-face {
    font-family: IranSans;
    src: url(../fonts/IRANSans.ttf);
}
@font-face {
    font-family: IRANSansBold;
    src: url(../fonts/IRANSansBold.ttf);
}
@font-face {
    font-family: Sahel;
    src: url(../fonts/Sahel.ttf);
}
@font-face {
    font-family: SahelBold;
    src: url(../fonts/Sahel-Bold.ttf);
}
@font-face {
    font-family: SahelBlack;
    src: url(../fonts/Sahel-Black.ttf);
}
* {
    padding: 0;
    margin: 0;
    font-family: IRANSansBold;
    direction: rtl;
}
html , body {
    background-color: var(--bg);
}
body {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
#loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: var(--spin-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spinner {
    width: 30px;
    height: 30px;
    border: 2px solid var(--spinner);
    border-top: 2px solid var(--text);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
header {
    background-color: var(--header-bg);
    width: 100%;
    height: 70px;
    box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.35);
}
#theme-toggle , .logout {
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    /* line-height: 0; */
}
#theme-toggle:hover , .logout:hover {
    transform: scale(1.1);
}
.logout {
    display: inline-block;
    line-height: 0;
    padding-bottom: 4px;
}
header h1 {
    font-size: 22px;
    padding: 15px;
    color: var(--sub);
}
.big {
    grid-column: span 4;
    display: flex;
    justify-content: space-between;
}
.third {
    grid-column: span 3;
}
.forth {
    grid-column: span 1;
}
ul {
    list-style-type: none;
    padding: 5px 30px;
    width: 200px;
    margin: auto;
}
li {
    padding: 20px 30px;
    margin-top: 20px;
    width: 100%;
    background-color: rgba(62, 146, 204, 0.95);
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow);
}
li:hover {
    background-color: var(--nav);
    transform: scale(1.01);
}
li img {
    display: inline-block;
    vertical-align: middle;
    padding-left: 8px;
}
/* a li {
    width: 100%;
    background-color: var(--nav);
    border: none;
    border-radius: 15px;
} */
a {
    text-decoration: none;
    color: #fff;
}
.items {
    display: flex;
    flex-flow: row wrap;
    /* justify-content: space-evenly; */
    gap: 25px;
    padding-top: 25px;
    /* flex: 0 0 25%; */
    /* row-gap: 25px; */
}
.item {
    position: relative;
    width: 220px;
    height: 220px;
    background-color: rgba(216, 49, 91, 0.95);
    /* margin: 25px; */
    /* margin-top: 25px; */
    border: none;
    border-radius: 15px;
    white-space: nowrap;
    color: #fff;
    box-shadow: var(--shadow);
    text-align: center;
}
.item:hover {
    background-color: var(--item);
    transform: scale(1.01);
}
.item div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.item img {
    padding-bottom: 10px;
}


/* invoices */
table {
    width: 500px;
    text-align: center;
}
th {
    white-space: nowrap;
}

/* order */
label {
    color: var(--text);
}
input , select {
    outline: none;
    padding: 15px;
    width: 250px;
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow);
}
input[type=submit] {
    background-color: rgba(216, 49, 91, 0.9);
    color: #fff;
}
input[type=submit]:hover {
    background-color: #d8315b;
}