@font-face {
    font-family: 'Waheed';
    src: url('fonts/Waheed.otf') format('opentype'),
         url('fonts/Waheed.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Randhoo';
    src: url('fonts/Randhoo.ttf') format('truetype'),
         url('fonts/Randhoo.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* General Body Styling */
body {
    font-family: 'Randhoo', Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px; /* Added padding to the body */
    direction: rtl; /* Maintain RTL layout */
}

/* Main Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: right; /* Text alignment for RTL */
}

/* Headers */
h1, h2, h3, h4, h5 {
    font-family: 'Waheed', Arial, sans-serif;
    color: #333;
    margin: 0 0 20px;
    text-align: center;
    font-weight: normal;
}

h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
}

/* Links */
a {
    text-decoration: none;
    color: #4CAF50;
}

a:hover {
    color: #45a049;
}

/* Buttons */
button, .btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Randhoo', Arial, sans-serif;
}

button:hover, .btn:hover {
    background-color: #45a049;
}

/* Forms */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding-inline-start: 12px;
    padding-inline-end: 12px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Randhoo', Arial, sans-serif;
    font-size: 16px;
    text-align: right;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: white;
}

th, td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #ddd;
    font-family: 'Randhoo', Arial, sans-serif;
    font-size: 14px;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Forms Container */
.form-container {
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: right; /* Text alignment for RTL */
}

/* Messages */
.message, .error {
    text-align: center;
    padding: 10px;
    font-size: 16px;
    font-family: 'Randhoo', Arial, sans-serif;
}

.message {
    color: green;
}

.error {
    color: red;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

.book-cover {
    max-width: 60px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    text-align: center;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    font-family: 'Randhoo', Arial, sans-serif;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Miscellaneous */
.center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.progress {
    color: #000000;
    font-weight: bold;
}

/* Navigation */
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

nav ul li {
    display: inline-block;
    margin: 10px 20px;
}

nav ul li a {
    font-size: 2.5em;
    font-weight: bold;
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #4CAF50;
}
