/*------------table view-------------*/
.table-responsive {
    overflow-x: auto; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Enable smooth scrolling for iOS */
    max-width: 100%; /* Ensure it doesn't exceed the viewport */
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: left;
}

@media (max-width: 600px) {
    th, td {
        white-space: nowrap; /* Prevent text from wrapping in smaller screens */
    }
}
/* ------------login page----------- */
.error-message {
    color: red;
    font-weight: bold;
    padding: 10px;
    border: 1px solid red;
    background-color: #f8d7da; /* Optional background color */
    border-radius: 5px;
}
/* General form styling */
.login-form {
    width: 300px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

/* Styling form elements */
.login-form p {
    margin-bottom: 15px;
    font-size: 14px;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

/* Submit button styling */
.login-form input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    border: none;
    color: white;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-form input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Optional: Add spacing for mobile responsiveness */
@media (max-width: 500px) {
    .login-form {
        width: 100%;
        padding: 15px;
    }
}
/*--------------login close---------*/
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
}

thead th {
    background-color: #f2f2f2;
    color: #333;
    padding: 12px 15px;
    border-bottom: 2px solid #ddd;
}

tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

tbody tr:hover {
    background-color: #f1f1f1;
}

thead th, tbody td {
    text-align: center;
}

th, td {
    padding: 10px;
    text-align: left;
}

tbody td {
    text-align: center;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.action-buttons a {
    text-decoration: none;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: #28a745; /* Green for actions like "edit" */
    transition: background-color 0.3s ease;
}

.action-buttons a:hover {
    background-color: #218838;
}

/* add helper code --------------------------- */
form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form div {
    margin-bottom: 15px;
}

form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

form input[type="submit"] {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form input[type="submit"]:hover {
    background-color: #218838;
}

form input:focus {
    border-color: #007bff;
    outline: none;
}

form div input {
    margin-top: 5px;
}

@media (max-width: 768px) {
    form {
        padding: 10px;
    }

    form input[type="submit"] {
        width: 100%;
        padding: 15px;
    }
}


/* -----------------popup box---------------------- */
 /* Style for popup background */
 .popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Style for popup content */
.popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
    width: 300px;
    text-align: center;
}

/* Close button style */
.close-popup {
    background-color: #f44336;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

/* Button to open popup */
.open-popup-button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.file-upload-button {
    padding: 10px 20px;
    background-color: #008CBA;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.file-upload-input {
    margin-top: 10px;
}
input[type="text"] {
    width: 90%;
    padding: 8px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
input[readonly] {
    background-color: #f2f2f2;
}

#txnuplodbtn{
width: 80px;
height: 40px;
font-size: 10px;
}

.thumbnailnew {
            cursor: pointer;
            width: 50px;
            height: auto;
            transition: transform 0.2s ease;
        }
        .thumbnailnew:hover {
            transform: scale(1.1);
        }
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            align-items: center;
            justify-content: center;
        }
        .modal img {
            max-width: 90%;
            max-height: 90%;
            border: 5px solid white;
            border-radius: 8px;
        }
        .modal-close {
            position: absolute;
            top: 10px;
            right: 20px;
            color: white;
            font-size: 24px;
            font-weight: bold;
            cursor: pointer;
        }
