/* Custom styling for Tabulator table */
.tabulator {
    margin-top: 2rem;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: none;
    width: 100%;
}
.tabulator .tabulator-table {
    min-width: 1000px;
}
.tabulator .tabulator-cell,
.tabulator .tabulator-col {
    min-width: 170px !important;
    white-space: nowrap;
}
.tabulator .tabulator-header .tabulator-col {
    font-size: 1rem !important;
    letter-spacing: 0.02em;
}

/* Button styling */
.run-btn {
    min-width: 120px;
    margin-bottom: 0;
    display: block;
    width: 100%;
}

.refresh-btn {
    min-width: 100px;
    margin: 0;
    display: block;
}

/* Navbar styling */
.navbar-brand img {
    height: 40px;
}
.navbar-brand {
    padding-left: 1rem;
}
.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
}

/* Offcanvas styling */
.offcanvas {
    background-color: #fff;
}
.navbar-nav .nav-link {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.offcanvas-body .nav-link {
    font-size: 1.15rem;
    padding: 1rem 0 1rem 1rem;
}
.offcanvas-divider {
    border: 0;
    border-top: 1.5px solid #adb5bd;
    margin: 2rem 0 1rem 0;
}

/* User profile styling - consolidated */
.offcanvas-user-profile .user-avatar img {
    width: 3rem !important;
    height: 3rem !important;
}
.offcanvas-user-profile .user-avatar i {
    font-size: 3rem !important;
}
.offcanvas-user-profile .user-display-name,
.dropdown-user-profile .user-display-name {
    font-weight: 600;
}
.offcanvas-user-profile .user-display-name {
    font-size: 1.1rem;
}
.offcanvas-user-profile .user-email {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}
.dropdown-user-profile .user-email {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.1rem;
}

/* File input container styling */
.file-input-container {
    width: fit-content !important;
    min-width: 200px;
    max-width: 100%;
}

.file-input-container .form-control[type="file"] {
    width: auto !important;
    min-width: 200px;
    max-width: 100%;
    padding: 0 0 0 0.75rem;
    border-color: #0d6efd;
    border-width: 1px;
    height: 48px;
    line-height: 1.5;
    font-size: 1rem;
    display: flex;
    align-items: stretch;
}

/* Consolidated file upload button styles */
.file-input-container .form-control[type="file"]::-webkit-file-upload-button,
.file-input-container .form-control[type="file"]::file-selector-button {
    height: 100%;
    border: none;
    background-color: #f8f9fa;
    color: #212529;
    padding: 0.70rem 0.75rem;
    margin: 0 0.75rem 0 -0.75rem;
    font-size: 1rem;
    cursor: pointer;
    border-right: 1px solid #dee2e6;
}

.file-input-container .form-control[type="file"]::-webkit-file-upload-button:hover,
.file-input-container .form-control[type="file"]::file-selector-button:hover {
    background-color: #e9ecef;
}

.file-input-container .form-control[type="file"]:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Responsive adjustments - consolidated media queries */
@media (min-width: 768px) {
    .run-btn {
        width: auto;
    }
}

@media (min-width: 992px) {
    .refresh-btn {
        float: right;
        display: inline-block;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .file-input-container {
        width: 100% !important;
        min-width: unset;
    }
    
    .file-input-container .form-control[type="file"] {
        width: 100% !important;
        min-width: unset;
    }
}

@media (max-width: 991.98px) {
    .toast-mobile-margin {
        margin-bottom: 2.5rem !important;
        margin-right: 1rem !important;
    }
}
