body {
    background-color: #f4f7f6;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    font-size: 18px;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline; /* Adds visual indication on hover */
}

h1 {
    font-size: 2rem;
    color: #e99213;
    text-align: center; /* Centers the title */
}

label {
    font-size: 1rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    margin: 20px 0; /* Spacing around the table */
    border-radius: 8px; /* Rounded corners for modern look */
    overflow: hidden; /* Hides overflow from rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
}

th, td {
    border: 2px solid #ddd; /* Softer border color */
    padding: 12px; /* Increased padding for more space */
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

th {
    background-color: #f2f2f2;
    color: #ffffff; /* Darker text for better readability */
    font-weight: bold; /* Bold column headers */
}

tr:hover {
    background-color: #f1f1f1; /* Hover effect on rows */
}

.table-hover tr:hover {
    background-color: #e0e0e0; /* Darker hover background */
}

.icon-view {
    color: #007bff;
    transition: color 0.3s;
}

.icon-view:hover {
    color: #0056b3;
}

.icon-edit {
    color: #ffc107;
    transition: color 0.3s;
}

.icon-edit:hover {
    color: #e0a800;
}

.icon-delete {
    color: #ff0019;
    transition: color 0.3s;
}

.icon-delete:hover {
    color: #c70000; /* Darker delete color on hover */
}

/* Input group style */
.input-group {
    width: 100%; /* Takes full width */
    max-width: 500px; /* Max width for controlled look */
}

/* Icon style inside the input */
.input-group-text {
    background-color: #000000; /* Background color for icon */
    border: none; /* Removes border for clean look */
    color: #f4f7f6; /* Icon color */
}

/* Text field styling */
.form-control {
    border: 1px solid #000000; /* Border matching icon color */
    border-radius: 0.5rem; /* Rounded corners */
    background-color: #f4f7f6; /* Light background color */
    color: #000000; /* Text color */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
    transition: border-color 0.3s, background-color 0.3s; /* Smooth transitions */
}

/* Focused field */
.form-control:focus {
    border-color: #ffffff; /* Focused border color */
    outline: none; /* Removes default outline */
    background-color: #ffffff; /* White background when focused */
}

@media all and (max-width: 2920px) {
    body {
        font-size: 18px;
    }
    .sidebar {
        width: 500px;
    }
    table {
        font-size: 17px;
        min-width: 700px;
    }
}

@media all and (max-width: 1920px) {
    body {
        font-size: 18px;
    }
    .sidebar {
        width: 500px;
    }
    table {
        font-size: 17px;
        min-width: 700px;
    }
    h1 {
        font-size: 2rem;
    }
}

@media all and (max-width: 1366px) {
    body {
        font-size: 17px;
    }
    .sidebar {
        width: 200px;
    }
    table {
        font-size: 16px;
        min-width: 600px;
    }
}

@media all and (max-width: 1200px) {
    body {
        font-size: 16px;
    }
    .sidebar {
        width: 200px;
    }
    table {
        font-size: 16px;
        min-width: 600px;
    }
}

@media all and (max-width: 1024px) {
    body {
        font-size: 15px;
    }
    .sidebar {
        width: 180px;
    }
    table {
        font-size: 15px;
        min-width: 500px;
    }
}

@media all and (max-width: 768px) {
    body {
        font-size: 14px;
    }
    .sidebar {
        width: 150px;
    }
    .card {
        padding: 10px;
    }
    table {
        font-size: 14px;
        min-width: 100px;
    }
}

@media all and (max-width: 720px) {
    body {
        font-size: 13px;
    }
    .sidebar {
        width: 100px;
    }
    table {
        min-width: 100px;
    }
}

@media all and (max-width: 620px) {
    body {
        font-size: 12px;
    }
    .sidebar {
        width: 80px;
    }
    table {
        font-size: 11px;
        min-width: 200px;
    }
}

@media all and (max-width: 480px) {
    body {
        font-size: 11px;
    }
    .sidebar {
        width: 80px;
    }
    table {
        font-size: 10px;
        min-width: 200px;
    }
}

/* Print styles */
@media print {
    body {
        margin: 0;
        padding: 0;
    }
    table {
        width: 100%;
        border-collapse: collapse;
    }
    th, td {
        border: 1px solid #000;
        padding: 8px;
        text-align: left;
    }
    th {
        background-color: #f2f2f2;
        color: #000000;
    }
    .btn {
        display: none;
    }
}

/* Confirmation overlay styles */
#confirmationOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirmation-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.confirmation-box p {
    margin-bottom: 20px;
}

.confirmation-box button {
    margin: 0 10px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.confirmation-box button:first-of-type {
    background-color: #ff0019; /* Yes button - red */
    color: white;
}

.confirmation-box button:last-of-type {
    background-color: #041888; /* No button - grey */
    color: white;
}
