/* Custom CSS for the forms */
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, hwb(230deg 2% 82%) 0%, #fff 100%);
    background-size: 400% 400%;
    position: relative;
    flex-direction: column;
}

.company-name h3 {
    font-size: 35px;
    font-weight: 700;
    color: #333;
    font-family: Arial, sans-serif;
    margin: 0 0 20px;
    padding: 0;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100% - 60px);
    width: 100%;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgb(0 0 0 / 20%);
    text-align: center;
    width: 350px;
    animation: fadeIn 1s ease-in-out;
}

.sign-in-text {
    margin-top: 5px;
    font-size: 24px;
    color: #333;
    margin: 0;
    padding-top: 3px;
    margin-bottom: 10px;
}

.welcome-back {
    font-size: 14px;
    color: grey;
    margin: 0 0 20px;
}

.textbox {
    position: relative;
    margin-bottom: 15px;
}

.textbox.password-container {
    margin-bottom: 5px;
}

.textbox i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.textbox.password-container i.toggle-password {
    left: auto;
    right: 10px;
    cursor: pointer;
}

.textbox input {
    width: 100%;
    padding: 10px 10px 10px 40px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
}

.textbox.password-container input {
    padding-right: 40px;
}

.textbox input:focus {
    border-color: #007bff;
}

.forgot-password {
    text-align: right;
    margin-top: 5px;
}

.form-check {
    text-align: left;
    margin-bottom: 5px;
}

.forgot-password a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.btn {
    width: 100%;
    padding: 10px;
    border: none;
    background: #007bff;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn:hover {
    background: #0056b3;
}

.messages {
    margin-top: 20px;
}

.messages p {
    color: red;
    font-size: 14px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.half-width {
    flex: 1;
}

.half-width .textbox input {
    padding-left: 40px;
}

.half-width .textbox i {
    left: 10px;
}

*,
::after,
::before {
    box-sizing: border-box;
}

body {
    font-family: Poppins, sans-serif;
    margin: 0;
    background-color: #f8f9fa;
    color: #000;
}

a {
    cursor: pointer;
    text-decoration: none;
    font-family: Poppins, sans-serif;
    color: #000;
}

.wrapper {
    display: flex;
    width: 100%;
}

.navbar {
    background: linear-gradient(135deg, hwb(230deg 2% 82%) 0%, #fff 300%);
}

#sidebar {
    background: linear-gradient(135deg, hwb(230deg 2% 82%) 0%, #fff 300%);
    width: 200px;
    transition: all 0.35s ease-in-out;
    height: 100vh;
    z-index: 1111;
}

#sidebar .sidebar-logo a {
    font-size: 1.5rem;
    font-weight: bold;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
    transition: all 0.35s ease-in-out;
}

.content {
    background: #f5f5f5;
    flex: 1;
    max-width: 100vw;
    width: 100vw;
    padding: 1rem;
}

@media (width >= 768px) {
    .content {
        width: auto;
    }
}

.custom-form-container {
    max-width: 800px;
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.custom-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.registration-form input[type="text"], .registration-form input[type="email"], .registration-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.registration-form input[type="text"]:focus, .registration-form input[type="email"]:focus, .registration-form select:focus {
    border-color: #007bff;
    outline: none;
}

.text-danger {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.btn-success-custom {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-success-custom:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn.add-user-btn {
    background-color: #28a745 !important; /* Green color */
    border-color: #28a745 !important; /* Green color */
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    width: auto;
    border-radius: 5px;
}

.btn.add-user-btn:hover {
    background-color: #218838 !important; /* Darker green on hover */
    border-color: #1e7e34 !important; /* Darker green on hover */
}

.custom-edit-btn {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    display: inline-block;
    vertical-align: middle;
    width: auto; /* Adjust button width */
}

.add-user-form .form-group .password-container input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.user-registration-form .custom-select {
    position: relative;
    margin-bottom: 10px;
}

.user-registration-form .custom-select i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.user-registration-form .custom-select select {
    width: 100%;
    padding: 10px 10px 10px 40px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.edit-profile-form-body .row .profile-detail {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.edit-profile-form-body .row .profile-detail input[type="text"],
.edit-profile-form-body .row .profile-detail input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

/* Add this to your external CSS file */
.btn-danger-custom {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.btn-danger-custom:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

/* Add this to ensure the select box is styled correctly */
.custom-form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    appearance: none;
}

.custom-password-group .password-container {
    position: relative;
}

.custom-password-group .password-container i {
    position: absolute;
    inset: 50% 20px auto auto;
    min-width: 22px;
    min-height: 22px;
    cursor: pointer;
    z-index: 100;
    color: black;
    font-size: 1.5em;
    transform: translateY(-50%);
}

.pass-req-cancel-btn {
    color: white;
    background-color: red;
    width: 40%
}

.pass-req-submit-btn {
    width: 40%;
}

.custom-req-button-group {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.user-details-heading {
    font-size: 24px; /* Adjust font size */
    color: #333; /* Change text color */
    text-transform: uppercase; /* Make text all capital letters */
    font-weight: bold; /* Make text bold */
    margin-bottom: 20px; /* Add some space below the heading */
    font-family: Poppins, sans-serif; /* Apply the same font as the rest of the page */
    padding: 30px 15px 8px 30px; /* Add more padding to the top */
}

/* Custom styles for the user table */
.custom-table thead th {
    text-transform: uppercase; /* Make header text all capital letters */
    background-color: hwb(233deg 26% 67%); /* Stylish and modern background color */
    color: hsl(0deg 0% 100%); /* White text color */
    font-size: 12px; /* Match font size of the records */
    padding: 18px;
    border-bottom: 0; /* Remove border after each column in the header */
}

.custom-table thead th a,
.custom-table thead th button,
.custom-table thead th .btn-link {
    color: inherit !important;
    text-decoration: none !important;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-transform: inherit;
    vertical-align: baseline;
    box-shadow: none !important;
}

.custom-table thead th a:hover,
.custom-table thead th button:hover,
.custom-table thead th .btn-link:hover,
.custom-table thead th a:focus,
.custom-table thead th button:focus,
.custom-table thead th .btn-link:focus {
    color: inherit !important;
}

.custom-table thead th:first-child {
    padding-left: 30px; /* Add padding to the left of the first header cell */
}

.custom-table tbody tr {
    background-color: #fff; /* Make all rows the same color */
    transition: background-color 0.3s ease; /* Add smooth transition for hover effect */
}

.custom-table tbody tr:hover {
    background-color: #f1f1f1; /* Change background color on hover */
}

.custom-table tbody tr td {
    font-size: 14px; /* Adjust font size */
    padding: 18px; /* Add padding to all sides */
    border-bottom: 1px solid #dee2e6; /* Add separator line after each row */
}

.custom-table tbody tr td:first-child {
    padding-left: 30px; /* Add padding to the left of the first column */
}

.custom-table tbody tr.separator td {
    padding: 0;
    height: 1px;
    border-bottom: 0; /* Remove border for separator row */
}

.review-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.review-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Custom styles for the card */
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgb(0 0 0 / 10%);
    padding: 0; /* Remove padding from the card */
    margin-top: 20px;
}

.card-body {
    padding: 0; /* Remove padding from the card body */
}

.pagination {
    display: flex;
    justify-content: center;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
}

.page-item {
    margin: 0 2px;
}

.page-item .page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #007bff;
    background-color: #fff;
    border: 1px solid #dee2e6;
    text-decoration: none;
}

.page-item.active .page-link {
    z-index: 1;
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.page-item .page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* Custom styles for table controls */
.table-controls {
    padding-left: 30px;
    padding-right: 30px;
    font-size: 12px; /* Smaller text size */
}

.table-controls-container .table-controls-form,
.table-controls-container .table-controls-text {
    margin-bottom: 0; /* Remove default margin */
}

.table-controls-form select.custom-select {
    font-size: 12px; /* Smaller font size */
    padding: 5px 25px 5px 10px; /* Adjust padding */
    width: auto; /* Ensure the select box width fits the content */
    height: auto; /* Adjust height if necessary */
    border-radius: 4px; /* Add rounded corners */
}

/* New styles for the showing text */
.table-controls-text {
    font-size: 12px; /* Smaller font size */
    padding: 5px 20px; /* Add padding */
    border-radius: 4px; /* Add rounded corners */
    display: inline-block; /* Make it inline block for better alignment */
}

.sort-icon {
    font-size: 12px;
    margin-left: 5px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px; /* Space between buttons */
}

.modal-footer .btn {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 5px;
}


.landing-text {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.landing-links .btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    background: #007bff;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    text-align: center;
}

.landing-links .btn:hover {
    background: #0056b3;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-link-style {
    color: blue !important;
}

.login-link-style {
    color: blue;
}

.show-dropdown {
    display: block !important;
}