body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}  
    /* ===============================
   GLOBAL
================================ */
body {
    background: #f5f7fb;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont;
}
.toolbar-left form{margin: 0;}
@media (max-width: 768px) {
    .toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .toolbar-left,
    .toolbar-right {
        width: 100%;
        justify-content: space-between; /* optional */
    }
}
/* ===============================
   UNIVERSAL MODAL DESIGN
================================ */
.header-wrapper img {
    max-height: 80px;
}
/* ==============================
   PRODUCT MODAL – CLEAN RESET
============================== */

#productModal {
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
}

/* Modal container */
#productModal .modal-content {
    margin: 6vh auto;
    background: #fff;
    border-radius: 14px;
    padding: 34px 38px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    position: relative;
    height: 600px;
    overflow: scroll;
}

/* Close button */
#productModal .close-btn {
    position: absolute;
    right: 18px;
    top: 14px;
    font-size: 22px;
    cursor: pointer;
    color: #64748b;
}
#productModal .close-btn:hover {
    color: #000;
}

/* ==============================
   FORM GRID
============================== */

#productModal .modal-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 22px;
}

/* Full width fields */
#productModal .modal-form .full-width {
    grid-column: span 2;
}

/* ==============================
   FIELD STYLES
============================== */

#productModal .modal-form > div {
    display: flex;
    flex-direction: column;
}

#productModal .modal-form label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

#productModal .modal-form input,
#productModal .modal-form select {
    height: 44px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    background: #fff;
    transition: border .15s ease, box-shadow .15s ease;
}

#productModal .modal-form input::placeholder {
    color: #94a3b8;
}

#productModal .modal-form input:focus,
#productModal .modal-form select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* ==============================
   STATUS MESSAGE
============================== */

#productModal .status {
    background: #f1f5f9;
    border-left: 4px solid #2563eb;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #0f172a;
}

/* ==============================
   ACTION BUTTON
============================== */

#productModal button.btn {
    height: 46px;
    min-width: 180px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

#productModal button.btn:hover {
    background: #1e40af;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55); /* slate overlay */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #ffffff;
    max-width: 520px;
    border-radius: 16px;
    padding: 22px 24px 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    position: relative;
    animation: modalFadeIn 0.25s ease-out;
}

/* Close button */
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}
.modal-close:hover {
    color: #0f172a;
}

/* Title */
.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

/* SKU list box */
.modal-list-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    max-height: 160px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.6;
    color: #111827;
}

/* Individual SKU */
.modal-list-box div {
    padding: 2px 0;
}

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

/* Primary action */
.btn-modal-primary {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
.btn-modal-primary:hover {
    background: #1d4ed8;
}

/* Secondary */
.btn-modal-secondary {
    background: #e5e7eb;
    color: #111827;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===============================
   PAGINATION – PREMIUM CENTERED
================================ */
.pagination-wrap {
    margin: 30px auto 10px;
    display: flex;
    justify-content: center;
}
span.relative svg{width: 20px;vertical-align: sub;}
span.relative a{padding: 3px;}
.pagination-inner {
    background: #ffffff;
    padding: 18px 24px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.pagination-info {
    font-size: 14px;
    color: #475569;
    margin-bottom: 12px;
    font-weight: 500;
}

/* Laravel pagination links */
.pagination-links nav {
    display: flex;
    justify-content: center;
}

.pagination-links .pagination {
    gap: 6px;
}

.pagination-links .page-link {
    border-radius: 8px;
    border: none;
    padding: 8px 12px;
    font-weight: 600;
    color: #2563eb;
    background: #f1f5f9;
}

.pagination-links .page-item.active .page-link {
    background: #2563eb;
    color: #fff;
}

.pagination-links .page-link:hover {
    background: #dbeafe;
}

/* Bottom controls */
.pagination-controls {
    margin-top: 14px;
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.per-page-form {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.per-page-form select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}
/* Hide Laravel default "Showing x to y" text */
.pagination .small.text-muted {
    display: none !important;
}

/* Buttons */
.btn-primary-outline {
    padding: 6px 14px;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.btn-secondary-outline {
    padding: 6px 14px;
    border-radius: 8px;
    background: #e5e7eb;
    color: #111827;
    text-decoration: none;
    font-weight: 600;
}

.container {
    max-width: 1400px;
}

/* ===============================
   HEADER
================================ */
.header-wrapper {
    text-align: center;
    margin-bottom: 25px;
}

.header-wrapper .title {
    font-size: 22px;
    font-weight: 700;
    margin-top: 10px;
    color: #1f2937;
}

/* ===============================
   TOOLBAR
================================ */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 25px 18px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    margin-bottom: 18px;
}

.toolbar-label {
    font-weight: 600;
    margin-right: 8px;
    color: #374151;
}

.toolbar-select {
    min-width: 260px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

.search-form {
    display: flex;
    gap: 8px;
    margin: 0;
}

.search-form input {
    padding: 8px 12px;
    width: 260px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

.search-form button {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* ===============================
   TABLE CARD
================================ */
.table-card {
    background: #fff;
    border-radius: 12px;
    overflow: scroll;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

#shelfTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 0;
}

#shelfTable thead th {
    background: #f1f5f9;
    padding: 14px 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
}

#shelfTable tbody td {
    padding: 14px 12px;
    vertical-align: top;
    border-top: 1px solid #e5e7eb;
}

#shelfTable tbody tr:hover {
    background: #f8fafc;
}

/* Price emphasis */
#shelfTable td:nth-child(4) {
    font-weight: 700;
    color: #0f172a;
}

/* ===============================
   ACTION BUTTONS
================================ */
.btn-edit {
    background: #facc15;
    border: none;
    border-radius: 6px;
    font-weight: 600;
}

.btn-danger {
    background: #ef4444;
    color: #fff;
    border-radius: 6px;
}
.features_width{width: 250px; float: left;}
/* ===============================
   STICKY ACTION BAR
================================ */
.action-bar {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    padding: 12px;
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    box-shadow: 0 -8px 25px rgba(0,0,0,0.08);
    border-radius: 12px 12px 0 0;
}

.action-bar button,
.action-bar a {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.action-bar .ghost {
    background: #e5e7eb;
    color: #111827;
}

/* ===============================
   PAGINATION
================================ */
.pagination_footer {
    margin-top: 18px;
    background: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}
.close-btn{top: 0;}
/* ===============================
   DASHBOARD SUCCESS FLASH
================================ */
#jsDashboardSuccess {
    display: none;
    max-width: 900px;
    margin: 20px auto;
    padding: 14px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #dcfce7, #ecfdf5);
    color: #065f46;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #22c55e;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: dashboardFlashIn 0.3s ease-out;
}

/* Optional icon before text */
#jsDashboardSuccess::before {
    content: "✓";
    font-weight: 900;
    font-size: 18px;
    color: #16a34a;
}

/* Fade-in animation */
@keyframes dashboardFlashIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

<style>
.header-wrapper img {
    max-height: 80px;
}
body {
    background: #f5f7fb;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont;
}
/* ===============================
   ACTION BAR (GLOBAL)
================================ */
.action-bar {
    position: sticky;
    bottom: 0;
    margin: 30px auto 10px;
    background: #ffffff;
    padding: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    box-shadow: 0 -8px 25px rgba(0,0,0,0.08);
    max-width: 900px;
}

/* Buttons / links inside action bar */
.action-bar a,
.action-bar button {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Secondary / ghost button */
.action-bar .ghost {
    background: #e5e7eb;
    color: #111827;
}

    /* ===============================
   SHARED CARD
================================ */
.card-box {
    background: #fff;
    border-radius: 14px;
    padding: 22px 26px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    max-width: 900px;
    margin: 0 auto;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
    text-align: center;
    color: #1f2937;
}

/* ===============================
   UPLOAD FORM
================================ */
.upload-form {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.upload-form input[type="file"] {
    padding: 6px;
}

.upload-form .btn-primary {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* ===============================
   JOBS TABLE
================================ */
.jobs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.jobs-table thead th {
    background: #f1f5f9;
    padding: 14px 12px;
    font-size: 13px;
    text-transform: uppercase;
    color: #475569;
}

.jobs-table tbody td {
    padding: 14px 12px;
    border-top: 1px solid #e5e7eb;
    vertical-align: middle;
}

.jobs-table tbody tr:hover {
    background: #f8fafc;
}

/* ===============================
   STATUS BADGES
================================ */
.badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.bg-success {
    background: #dcfce7;
    color: #166534;
}

.bg-warning {
    background: #fef3c7;
    color: #92400e;
}

.bg-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* ===============================
   JOB ACTION BUTTONS
================================ */
.jobs-table .btn-danger {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
}

.jobs-table .btn-secondary {
    background: #e5e7eb;
    color: #111827;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
}

/* ===============================
   ALERT POLISH
================================ */
.alert {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
}

/* ============================= */
/* ALERT MESSAGES (SUCCESS / ERROR) */
/* ============================= */

.alert {
    max-width: 900px;
    margin: 20px auto;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid transparent;
    animation: fadeSlide 0.3s ease-in-out;
}

/* SUCCESS */
.alert-success {
    background-color: #e7f6ed;
    border-color: #2ecc71;
    color: #1e7e34;
}

/* ERROR */
.alert-danger {
    background-color: #fdecea;
    border-color: #e74c3c;
    color: #a94442;
}

/* List inside validation errors */
.alert ul {
    margin: 0;
    padding-left: 18px;
}

.alert li {
    margin-bottom: 6px;
}
        

/* Page Title */
.page-title {
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 50px;
    margin-top: 50px
}
.header-wrapper {
    text-align: center;
    padding: 20px 0;
}
.header-wrapper img {
    height: 120px;
    margin: 0 10px;
}
.header-wrapper .title {
    margin-top: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}
.container{
    max-width: 1400px;
    margin: 0 auto;
    padding-right: 20px;
    padding-left: 20px;
    padding-bottom: 100px;
}
.per-page-selector{
    float: left;
    margin-right: 20px;
}
.pagination_footer nav{
    margin-bottom: 28px;
}
/* Search Box */
.search-box {
    margin-bottom: 20px;
    text-align: right;
}
.close-btn{
    right: 10px;
    position: absolute;
    top: -10px;
    font-size: 35px;
    cursor: pointer;
}
.search-box input {
    padding: 8px;
    width: 250px;
    border-radius: 5px;
    border: 1px solid #ccc;
}
.container .pagination_footer{width: 90%;}
.flex.justify-between.flex-1.sm\:hidden {
    display: none !important;
}
.pagination_footer svg {
    width: 16px;
    height: 16px;
}
/* Base reset */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

thead {
    background: #f8f9fa;
}

thead th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    border-bottom: 2px solid #eaeaea;
}

tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

tbody tr:hover {
    background-color: #f6faff;
}
thead {
    background: #f1f3f5; /* Light gray background for header */
    color: #343a40;       /* Dark text for better contrast */
}

thead th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}
/* Buttons inside table */
.btn {
    padding: 10px 12px;
    font-size: 13px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    opacity: 0.9;
}

.btn-edit {
    background-color: #ffc107;
    color: white;
}

.btn-secondary, .btn-primary {
    background-color: #007bff;
    color: white;
}
.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-success {
    background-color: #28a745;
    color: white;
}
.status {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status.added {
    background-color: #e6ffe6;
    border: 1px solid #56d679;
    color: #2e8b57;
}

.status.updated {
    background-color: #fffbe6;
    border: 1px solid #f0c36d;
    color: #c49000;
}

.status.failed {
    background-color: #ffe6e6;
    border: 1px solid #ff6f61;
    color: #cc0000;
}

/* Fixed Bottom Buttons */
.action-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    max-width: 800px;
    background: #ffffff;
    padding: 12px 16px;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 6px rgb(0 0 0 / 5%);
    display: flex;
    justify-content: space-around;
    z-index: 999;
    right: 0;
    margin: 0 auto;
}

.action-buttons button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.3s;
    margin-right: 5px;
}

.action-buttons button:hover {
    background-color: #0056b3;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: flex-end;
    padding-right: 10px;
}

.pagination .page-item {
    margin: 0 4px;
}

.pagination .page-link {
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #007bff;
    transition: background 0.3s;
}

.pagination .page-link:hover {
    background: #e2e6ea;
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    margin: 20px auto;
}

.modal-header {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
    font-size: 20px;
    color: #aaa;
}

.modal-close:hover {
    color: #000;
}

/* Form Grid */
.modal-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.modal-form label {
    font-weight: bold;
}

.modal-form input,
.modal-form select {
    padding: 8px;
    width: 90%;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Full-width row (for file input or full-width fields) */
.modal-form .full-width {
    grid-column: span 2;
}

.modal-form button {
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
}

/* Mobile View */
@media (max-width: 768px) {
    .modal-form {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .action-buttons button {
        width: 90%;
        font-size: 13px;
    }

    .search-box {
        text-align: center;
    }
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
}
.pagination li a,
.pagination li span {
    padding: 6px 12px;
    border: 1px solid #ccc;
    color: #333;
    text-decoration: none;
}
.pagination li.active span {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}
.status {
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: fit-content;
}
#csvModal label, #skuDownloadModal label {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 13px;
    float: left;
    width: 100%;
}
#csvModal input, #skuDownloadModal input {
    float: left;
    width: 100%;
}
.status.added {
    background-color: #d4edda;
    color: #155724;
}
.status.updated {
    background-color: #cce5ff;
    color: #004085;
}

.status.failed {
    background-color: #f8d7da;
    color: #721c24;
}

.status i {
    font-size: 16px;
}
select[name="brand_logo"], .select_front{
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f9f9f9;
    color: #333;
    margin-bottom: 0px;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="gray" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
    padding-right: 30px;
    cursor: pointer;
    width: 50%;
}

select[name="brand_logo"]:hover {
    border-color: #888;
    background-color: #fff;
}

select[name="brand_logo"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 3px rgba(0,123,255,0.4);
}