@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}


 #sidebar {
    background: #2c3e50;
    height: 100vh;
    width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    right: 0;
    padding: 20px;
    transition: all 0.3s ease;
    z-index: 1000;
}

#sidebar:hover {
    width: 320px;
}

#info {
    width: 100%;
    height: 80px;
    background-color: #34495e;
    border-radius: 15px;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    gap: 15px;
}


#user-text {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: right;
    margin: 0;
}



#info img {
    height: 60px;
    margin-left: 20px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

#info img:hover {
    transform: scale(1.1);
}



.section-title {
    color: #ecf0f1;
    font-size: 18px;
    margin: 15px 0;
    padding-bottom: 5px;
    border-bottom: 2px solid #ecf0f1;
    font-weight: bold;
}


.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-list li {
    margin: 10px 0;
}

.menu-list a {
    color: #f1f1ec;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 10px 20px;
    background-color: #36A2EB;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    text-align: right;
}

.menu-list a:hover {
    background-color: #4bb1f5;
}

#main-content, #logs-content {
    margin-right: 320px;
    padding: 20px;
}



#password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 18px;
    text-align: center;
    width: 350px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-bottom: 4px solid #36A2EB;
}

#password-input {
    padding: 12px;
    margin: 15px 0;
    width: 85%;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

#password-input:focus {
    outline: none;
    border-color: #36A2EB;
    box-shadow: 0 0 5px rgba(54, 162, 235, 0.3);
}

#submit-password {
    padding: 12px 24px;
    background-color: #36A2EB;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

#submit-password:hover {
    background-color: #4bb1f5;
    transform: translateY(-3px);
}

#close-modal {
    background-color: transparent;
    border: none;
    color: #ff5e57;
    font-size: 30px;
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

#close-modal:hover {
    color: #ff7772;
    transform: scale(1.1);
}

#calculator {
    margin: 50px auto;
    margin-right: 35%; 
    margin-top: 15vh;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    text-align: center;
    direction: rtl;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s ease;
    border-bottom: 4px solid #FFCE56;
}

#calculator h2 {
    font-size: 30px;
    margin-bottom: 25px;
    color: #2c3e50;
    font-weight: bold;
}

#barcode {
    margin: 0 auto 30px auto;
    display: block;
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.button-group button {
    padding: 12px 28px;
    background-color: #36A2EB;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.button-group button:hover {
    background-color: #4bb1f5;
    transform: translateY(-3px);
}

#print {
    padding: 12px 28px;
    background-color: #FFCE56;
    border: none;
    border-radius: 10px;
    color: rgb(0, 0, 0);
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

#print:hover {
    background-color: #FFB84D;
    transform: translateY(-3px);
}

@media print {
    #sidebar, #menu, #info {
        display: none;
    }
    #calculator {
        display: block;  
    }
}
