@font-face {
    font-family: "vazir";
    src: url("font.ttf") format("truetype");
}

* {
    font-family: "vazir", sans-serif;
}


body {
    font-family: Tahoma, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    direction: rtl; /* برای راست‌چین کردن متن */
}

.container {
    width: 90%;
    margin: auto;
    padding-top: 20px;
}

h1 {
    text-align: center;
}

.login-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

p {
    text-align: center;
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"], input[type="password"],input[type="number"] {
    width: 95%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 2px auto 20px auto;
}

select{
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 2px auto 20px auto;
}

button {
    /*width: 100%;*/
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: inline-block;
}

button:hover {
    background-color: #218838;
}

.error {
    color: red;
    text-align: center;
    margin-bottom: 10px;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}
table td:nth-child(3) {
    font-weight: bold;
    color: #333;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover, .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.form-section{
    width: 30%;
    float: right;
    margin: 10px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 12px;
    background-color: #f9f9f9;
}

.full_form{
    width: 90%;
}

.list-section {
    width: 55%;
    float: right;
    margin: 10px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 12px;
    background-color: #f9f9f9;
}
/*.form-section, .list-section {*/
/*    width: 45%;*/
/*    padding: 16px;*/
/*    background-color: #f8f8f8;*/
/*    border: 1px solid #ddd;*/
/*    border-radius: 12px;*/
/*    box-shadow: 0 2px 4px rgba(0,0,0,0.05);*/
/*}*/

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

.edit-mode .delete-btn {
    display: inline-block;
}

.delete-btn {
    display: none;
    color: red;
    cursor: pointer;
    margin-right: 10px;
}

.edit-icon {
    cursor: pointer;
    color: #666;
}
.edit-icon:hover {
    color: #2196f3;
}

.admin-section-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 20px;
}


/*@media (max-width: 768px) {*/
/*  table, thead, tbody, th, td, tr {*/
/*    display: inline;*/
/*    width: 100%;*/
/*  }*/

/*  thead {*/
/*    display: none;*/
/*  }*/

/*  tr {*/
/*    margin-bottom: 15px;*/
/*    border: 1px solid #ccc;*/
/*    padding: 10px;*/
/*    border-radius: 8px;*/
/*    background-color: #fff;*/
/*  }*/

/*  td {*/
/*    text-align: right;*/
/*    padding-right: 50%;*/
/*    position: relative;*/
/*    border: none;*/
/*    border-bottom: 1px solid #eee;*/
/*  }*/

/*  td::before {*/
/*    content: attr(data-label);*/
/*    position: absolute;*/
/*    right: 10px;*/
/*    font-weight: bold;*/
/*    color: #555;*/
/*  }*/

/*  td:last-child {*/
/*    border-bottom: none;*/
/*  }*/
  
/*  .account-btn {*/
            right: 10px; /* موقعیت گزینه "حساب کاربری" */
/*        }*/
/*}*/
