/* Modal styles */
.modal-overlay {
    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;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    border: 1px solid white;
    width: 80%;
    margin: 10px;
    max-width: 600px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    cursor: pointer;
    outline: none;
}

.udt {
    width: 100%;
    border-collapse: collapse;
}

.udh {
    font-weight: bold;
    color: #555;
    padding: 6px;
    width: 35%;
    text-align: left;
}

.ud {
    padding: 5px;
    font-size: 16px;
    width: 60%;
}

input[type="text"] {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 7px;
    box-sizing: border-box;
    font-size: 14px;
    background-color: #f9f9f9;
    cursor: not-allowed;
}

input[type="text"]:focus {
    outline: none;
    border-color: inherit;
}
input[type="datetime-local"] {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 7px;
    box-sizing: border-box;
    font-size: 14px;
    background-color: #f9f9f9;
    cursor: not-allowed;
}

input[type="datetime-local"]:focus {
    outline: none;
    border-color: inherit;
}

.icon-cell {
    text-align: center;
    font-size: 20px;
    color: #007bff;
    cursor: pointer;
}

.icon-cell i {
    transition: color 0.3s;
}

.icon-cell:hover i {
    color: #0056b3;
}

.btn-delete, .btn-update {
    display: inline-block;
    width: 48%;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
}

.btn-delete {
    background-color: red;
    margin-right: 4%;
}

.btn-update {
    background-color: green;
    margin-left: 4%;
}

.btn-delete:hover {
    background-color: darkred;
}

.btn-update:hover {
    background-color: darkgreen;
}

@media (max-width: 768px) {
    .modal-content {
        width: 90%;
    }
    .icon-cell i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 90%;
    }
    .icon-cell i {
        font-size: 16px;
    }
}