﻿@font-face {
    font-family: 'byekan';
    src: url('../font/byekan.ttf') format('truetype');
}

* {
    font-family: 'byekan';
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

header {
    background: #2d3748;
    color: white;
    padding: 1rem;
    text-align: center;
}

/*==============================================================================================*/
#notification {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1002;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.notificationBox {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    padding: 40px;
    background-color: #f4f4f4;
    border: 2px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-radius: 8px;
}

.titleElement {
    padding: 10px;
    font-size: 16px;
}

.notifiButton {
    margin: 10px;
    padding: 10px;
    font-size: 12px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    margin-right: 25px;
}

#yesButton {
    background-color: #0a0;
    color: white;
    width: 70px;
}

#noButton {
    background-color: #f02;
    color: white;
    width: 70px;
}

#opsButton {
    background-color: deepskyblue;
    color: white;
}



/*Loding Indicator*/
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
     
}

.loadingIndicator {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: auto;
    position: relative;
    top: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
         
    }

    100% {
        transform: rotate(360deg);
    }
}



/*==========================================special Style====================================================*/
a {
    cursor: pointer;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

th {
    text-align: center;
    text-decoration-color: #222;
    background-color: #eee;
}

table select {
    border: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.05); /* نیمه شفاف */
    z-index: 1000; /* زیر Popup ولی بالاتر از سایر المان‌ها */
    display: none;
}

.box {
    width: 400px;
    height: 350px;
    border-radius: 5px;
    background-color: #065;
    color: #fff;
    display: none; /* Initially hidden */
    text-align: center;
    line-height: 15px;
    position: absolute;
    z-index: 1001;
    padding: 20px;
    font-size: 12px !important;
    float: none;
    top: 30%;
    left: 30%;
    /* border:1px solid #bbb;*/
}


.show {
    display: block;
}

.nav-link {
    color: #000 !important;
}

    .nav-link:hover {
        color: #aaa !important;
    }
/* استایل پنجره کشویی */
.popup {
    position: fixed;
    top: 0;
    left: -400px; /* مقدار اولیه بیرون از صفحه */
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    transition: left 0.4s ease-in-out;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 1003;
}

    .popup.active {
        left: 0; /* ورود به صفحه */
    }

/* دکمه بستن */
.close-btn {
    background: red;
    color: white;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 4px;
}

    .close-btn:hover {
        background: darkred;
    }


.nav-link{
    color:#fff !important;
}