body {
    font-family: 'Noto Nastaliq Urdu', serif;
    margin: 20px;
    direction: rtl;
    background-color: #f5f5f5;
    color: #333;
}

h1, h2 {
    color: #4CAF50;
    text-align: center;
    font-weight: bold;
}

button {
    display: block;
    margin: 20px auto;
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #000;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
}

th, td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
}

th {
    background-color: #4CAF50;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #f5f5f5;
}

/* Popup form styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px; /* Limit maximum width for larger screens */
    max-height: 80vh; /* Set maximum height and enable vertical scrolling */
    overflow-y: auto; /* Enable vertical scrolling */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

label, input, select {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[type="datetime-local"] {
    /* Additional styling for datetime-local input */
    height: 50px;
}

input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #45a049;
}
