/* @import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities'; */
:root {
    --sidebar-width-full: 250px;
    --sidebar-width-collapsed: 60px;
    --primary-color: #9c9a9a;
    --secondary-color: #38383a;
    --text-color: #fff;
    --accent-color: #1abc9c;
}

* {
    box-sizing: border-box;
    margin: 1px;
    padding: 1px;
}
html {
    height: 100%;
    overflow-y: hidden;
}

body {
    height: 100%;
    overflow-x: auto;
}
/* ::-webkit-scrollbar {
    display: none;         
} */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width-full); /* Default width for expanded sidebar */
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    z-index: 1000; /* Ensure it stays on top of the main content */
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    border-bottom-right-radius: 10px;
    border-top-right-radius: 10px;
}

.sidebar-heading {
    padding-top: 20px;
    color: white;
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 0px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.sidebar.collapsed .sidebar-heading {
    display: none;
}

.sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar.collapsed .nav-menu {
    display: none;
}

.sidebar .logo {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .logo {
    opacity: 0;
}

.sidebar .collapse-btn {
    font-size: 30px;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: 0;
    display: block;
    padding: 0px;
    text-align: center;
    transition: transform 0.3s ease;
    padding-top: 0px;
}

.sidebar.collapsed .collapse-btn {
    text-align: right;
    padding: 0;
    margin-right: 15px;
    border: none;
}

/* Main content adjustments */
.sidebar.collapsed {
    margin-left: var(--sidebar-width-collapsed);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-menu li {
    margin: 15px 0;
}
.header-heading {
    color: rgb(24, 23, 23);
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    padding-bottom: 0px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 15px;
    transition: background-color 0.3s;
    display: auto;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    display: 100%;
}
.collapsed .nav-menu a span {
    display: none;
}
.main-content {
    flex-grow: 1;
    background-color: white;
    transition: margin-left 0.3s ease;
    overflow-y: auto;
    transition: margin-left 0.3s ease;

    flex-grow: 1;
}
.wrapper {
    display: flex;
}

.container.wrapper {
    margin-left: 0px; /* Adjust content to fit when sidebar is collapsed */
}
.collapse-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    align-self: flex-end;
    margin: 10px;
}

/* Header */
.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 10px 10px;
    border-bottom: 2px solid #333232;
    color: white;
    text-align: right;
    max-width: 100%;
    /* margin-top: 0px;     */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media (max-width: 768px) {
    .wrapper {
        flex-direction: column;
    }

    .main-content {
        padding-left: 0;
    }

    #sidebar {
        width: 100%;
        position: relative;
    }

    .collapse-btn {
        display: block;
        margin-left: auto;
        font-size: 35px;
        padding: 15px;
    }
}

/* Form styles */
.parameter {
    /* box-shadow: 0 0 10px rgba(51, 51, 51, 0.1); */
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}
.FormContainer {
    padding: 0px;
    /* box-shadow: 0 0 10px rgba(51, 51, 51, 0.1); */
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}
#WPSForm {
    display: none;
    opacity: 0; /* Start with an invisible form */
    transition: opacity 0.5s ease; /* Transition for fade effect */
    width: 80%;
    max-width: auto;
    box-shadow: 0 0 10px rgba(51, 51, 51, 0.1);
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    gap: 15px;
    flex-wrap: wrap;
    align-content: center;
    flex-direction: column;
    z-index: 999;
    margin-left: auto;
    margin-right: auto;
}
#parameterForm {
    margin-top: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    /* box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); */
}
.row {
    justify-content: space-between;
}
/* Initially show the table with a smooth transition */
.WeldData_Table {
    opacity: 1;
    transition: opacity 0.5s ease; /* Transition for fade effect */
}

.centered-heading {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.section1 {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
}
.form-group {
    margin-bottom: 15px;
}

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

input,
select,
button {
    width: 100%;
    padding: 12px;
    margin: 5px 0 10px 0;
    border-radius: 5px;
    border: 1px solid #ddd;
}

input[type="file"] {
    padding: 10px;
    border: none;
    max-width: 150px;
}

input[type="number"] {
    -moz-appearance: textfield; /* Removes number input spinners */
}

input:focus,
select:focus {
    outline: none;
    border-color: #3498db;
}

button {
    color: white;
    cursor: pointer;
    border: none;
    padding: 15px;
    max-width: 150px;
    font-size: 16px;
    border-radius: 5px;
}
.btn-secondary {
    background-color: #363636;
    color: white;
    cursor: pointer;
    border: none;
    padding: 15px;
    max-width: 100px;
    font-size: 16px;
    border-radius: 5px;
}

/* button:hover {
        background-color: #2980b9;
    } */

/* Styles for the pass data section */
.pass-data {
    margin-top: 20px;
    padding: 20px;
    background-color: #ecf0f1;
    border-radius: 5px;
}

.pass-row {
    padding: 10px;
    background-color: #fff;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.weld-row p {
    font-size: 18px;
    margin: 10px 0;
}

.weld-row {
    margin-bottom: 20px;
}

.weld-row button {
    margin-right: 10px;
}

.weld-row button:hover {
    opacity: 0.8;
}

/* Responsive form and sidebar */
@media (max-width: 992px) {
    .main-content {
        padding-left: 0;
    }

    #sidebar {
        width: 200px;
        display: block;
        position: fixed;
        top: 0;
        bottom: 0;
        z-index: 10;
    }

    .wrapper {
        flex-direction: column;
    }

    .collapse-btn {
        display: block;
        font-size: 25px;
        margin-left: auto;
        margin-top: 10px;
    }

    #sidebar {
        display: none;
    }

    .wrapper.show-sidebar #sidebar {
        display: block;
    }
}

.table {
    border-radius: 10px;
    overflow: hidden;
}

.table th,
.table td {
    text-align: center;
    vertical-align: middle;
}

.table th {
    font-size: 14px;
    font-weight: bold;
    background-color: #007bff;
    color: white;
    padding: 12px;
}

.table td {
    font-size: 12px;
    padding: 10px;
    color: #333;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: #f1f1f1;
    /* cursor: pointer; */
}

.table-responsive {
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

.thead-dark th {
    background-color: #343a40;
    color: white;
}
/* .clickable-row {
        transition: background-color 0.3s ease;
    }
    .clickable-row:hover {
        background-color: #dcdcdc;
    } */
.highlight {
    background-color: #f0f0f0;
}
.CONTAINER {
    display: flex;
    align-items: top;
    justify-content: center;
    height: 100vh;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    /* margin: 5% ; */
    padding: 20px;
    width: 50%;
    min-height: 40vh;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1050;
}

.modal-content input {
    min-height: 40px;
}

/* Close Button */
.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #000;
}

.close i {
    font-size: 24px; /* Adjust size as needed */
    color: #888;
    transition: color 0.3s;
}

.close:hover i {
    color: #000;
}

/* Form and Input Styling */
.pass-container {
    border: 1px solid #ddd;
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    background-color: #fafafa;
    display: flex;
    /* flex-wrap: wrap; */
    justify-content: space-between;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background-color: #fff;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #007bff;
    outline: none;
}

.imgbtn {
    justify-content: space-between;
}

/* Button Styling */
button {
    padding: 10px 20px;
    margin-top: 10px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.btn-Edit {
    border-radius: 5px;
    margin-top: 48px;
}
.btn-Delete {
    color: white;
    border-radius: 5px;
    margin-top: 33px;
}
.btn-save {
    background: #4caf50;
    color: white;
    border-radius: 5px;
}
.pass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-radius: 15px;
}

/* Modal Header & Footer */
.pass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.pass-header h2 {
    font-size: 18px;
    color: #333;
}

/* Modal Body */
.modal-body {
    margin-top: 20px;
    font-size: 14px;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-content {
    max-width: 80%;
}
nav {
    border-bottom: 2px solid #ddd;
    padding: 10px 0;
    background-color: #343a40;
}

nav a {
    color: #fff;
}

nav a:hover {
    color: #f8f9fa;
}

h3 {
    margin: 20px 0;
    color: #343a40;
    font-weight: bold;
}

/* Back button styling */
button {
    padding: 8px 12px;
    border: none;
    background-color: #ffffff;
    color: #343a40;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 20px;
}

button:hover {
    background-color: #f1f1f1;
}

/* Form styling */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.form-body {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.form-label {
    font-weight: 600;
    color: #555;
}

input[type="text"],
select,
input[type="file"] {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    width: 100%;
    margin-bottom: 15px;
    font-size: 16px;
}

input[type="text"]:focus,
select:focus {
    border-color: #007bff;
    outline: none;
}

.form-control {
    display: inline-block;
    width: 100%;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #ddd;
    padding: 15px;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-primary {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-primary:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Image preview styling */
img {
    max-width: 150px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

/* Grid layout styling for form fields */
.col-md-3 {
    margin-top: 0px;
    padding: 0px;
}
.row > * {
    margin-top: 0 !important;
}


.container-fluid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Media Query for responsiveness */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 15px;
    }

    .col-md-3 {
        width: 100%;
        padding: 0;
    }
}
.d-flex {
    display: flex;
    justify-content: center;
    margin-top: 8px;
    position: relative;
    background-color: white;
}

.d-flex a {
    color: #ece6e6;
    padding: 20px 40px;
    font: size 10px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.modal {
    z-index: 1050;
}

.modal-backdrop {
    z-index: 1049;
}

.fullscreen-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1100;
    overflow: hidden;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

#popupImage {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border: 3px solid whitesmoke;
    cursor: grab;
    transition: transform 0.2s;
}

#passpopupImage {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border: 3px solid whitesmoke;
    cursor: grab;
    transition: transform 0.2s;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1101;
    transition: background-color 0.3s;
}

.close-button:hover {
    background: rgba(0, 0, 0, 0.7);
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 30px;
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 1101;
}

.prev-button {
    left: 20px;
    background-color: none;
}

.next-button {
    right: 20px;
    background-color: none;
}

.nav-button:hover {
    background: rgba(0, 0, 0, 0.7);
}
.image-thumbnail {
    transition: transform 0.2s;
}

.image-thumbnail:hover {
    transform: scale(1.1);
}

.pass-image-thumbnail {
    transition: transform 0.2s;
}

.pass-image-thumbnail:hover {
    transform: scale(1.1);
}
.company-item.selected {
    /* background-color: #d1e7dd !important; */
    color: #92daa8;
    font-weight: bold;
}

/* .display-4 {
    width: 45ch;
    text-wrap: nowrap;
    overflow: hidden;
    animation: typing 5s steps(50) infinite alternate-reverse;
}
@keyframes typing {
    from {
        width: 0ch;
    }
} */
    .table-warning {
        background-color: #fff3cd !important;
    }

    .btn-danger {
        background-color: #dc3545;
        color: white;
        border: none;
    }
        table.dataTable {
        width: 100% !important;
    }
        .dt-buttons {
        margin-bottom: 10px;
    }