@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Cairo', sans-serif;
    direction: rtl; 
    text-align: center;
}
.scroll-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%; 
    height: 5px;
    background-color: #2ecc71; 
    z-index: 9999;
    transition: width 0.1s linear;
}
.container {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
}
.perant-one {
    margin: 20px 0;
    background-color: #80808042;
}
.perant-one h1 {
    padding: 5px;
}
.container .perant-two {
    width: 100%;
}
.container .perant-two .div-name,
.container .perant-two .div-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.container .perant-two .div-name > input,
.container .perant-two .div-search > input {
    margin: 5px;
    outline: none;
    background-color: #725f5f17;
    width: 48%;
    border-radius: 6px;
    height: 40px; 
    padding: 10px;
    border: 1px solid transparent; 
    transition: 0.3s;
}
@media (max-width: 767px) {
    .container .perant-two .div-name,
    .container .perant-two .div-search {
        flex-direction: column;
    }
    .container .perant-two .div-name > input,
    .container .perant-two .div-search > input {
        width: 100%;
    }
}
.container .perant-two input:focus {
    border: 1px solid rgb(193, 193, 193);
}
.container .perant-two button#submit {
    display: block; 
    background-color: #2ecc71; 
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s;
    width: 40%;
    padding: 5px;
    margin: 15px auto;
    cursor: pointer;
    border: none;
    border-radius: 6px;
}
.container .perant-two button#submit:hover {
    background-color: #27ae60;
    box-shadow: 0 0 0 4px #5bb78167;
}
.container .perant-table {
    display: flex;
    flex-direction: column;
    margin: 10px 3px;
    padding: 5px;
    gap: 20px;
    overflow-x: auto;
}
.container .perant-table .number {
    font-size: 18px;
    background-color: #eee;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    border-right: 5px solid #2ecc71;
    margin: 20px 0 10px 0;
}
.container .perant-table div.number-two { border-right: 5px solid #5b7fea; }
.container .perant-table div.number-three { border-right: 5px solid #ea5b62; }

.container .perant-table table {
    margin: 20px 0;
    width: 100%;
    border: 1px solid #eee;
    border-collapse: collapse;
    min-width: 800px;
}
table thead { background-color: #333; color: white; }
table th, table td {
    padding: 12px 8px; 
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
}
.update, .delete, .update-two {
    padding: 8px 15px;
    margin: 2px 5px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    font-family: 'Cairo', sans-serif;
    font-weight: bold;
    transition: 0.3s;
}
.update, .update-two { 
    background-color: #2196F3; color: white; 
}
.delete {
    background-color: #f44336; color: white;
}
.update:hover, .update-two:hover, .delete:hover {
    opacity: 0.8;
    transform: scale(1.05);
}
.container .call-btn {
    display: inline-block;
    background-color: #2ecc71;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none; 
    font-size: 13px;
    margin-right: 10px;
}
.up {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: 0.3s;
    opacity: 0; 
    pointer-events: none; 
}
.up::after {
    content: "↑";
    font-size: 20px;
    font-weight: bold;
}
.up.show {
    opacity: 1;
    pointer-events: auto;
}
.up:hover {
    background-color: #0056b3;
    transform: translateY(-5px);
}
.container .label-one, 
.container .label-two {
    width: 75px; 
    display: inline-block;
    border-radius: 6px;
    padding: 5px;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
    color: white;
    font-size: 14px;
    font-weight: bold;
}
.container .label-one {
    background-color: #11ab11b8;
    margin-left: 5px;
}
.container .label-two {
    background-color: #df0d0da6; 
}
.label-one input, 
.label-two input {
    display: none;
}
.label-one:has(input:checked) {
    background-color: #11ab11;
    box-shadow: 0 0 8px #11ab11;
    transform: scale(1.05);
}
.label-two:has(input:checked) {
    background-color: #df0d0d; 
    box-shadow: 0 0 8px #df0d0d;
    transform: scale(1.05);
}