body{
    background: #efe8e6;
}
/*Brands.create*/
.form-card {
    border-radius: 22px;
    padding: 2px;
}

.form-card-inner {
    border-radius: 20px;
    padding: 28px;
    color: #e5e7eb;
}

/* ================= LABEL ================= */
.form-label {
    color: #212121;
    font-weight: 600;
    margin-bottom: 6px;
}


.form-select {
    
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #020617;
    border-radius: 14px;
    padding: 11px 44px 11px 16px; /* space for arrow */
    font-size: 14px;
    font-weight: 500;
    box-shadow: 1px 2px 3px rgba(0,0,0,.5);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236366f1'%3E%3Cpath d='M5.5 7.5L10 12l4.5-4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    cursor: pointer;
}



/* ================= INPUTS ================= */
.form-control {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #020617;
    border-radius: 14px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 500;

    box-shadow:
        0 4px 12px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.6);

    transition: 
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.15s ease;
}


.form-control::placeholder {
    color: #94a3b8;
}



/* ================= BUTTONS ================= */
.btn-save {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: none;
    color: #fff;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(124,58,237,0.45);
}

.btn-save:hover {
    transform: translateY(-2px);
}

.btn-back {
    background: #020617;
    border: 1px solid rgba(255,255,255,0.15);
    color: #c7d2fe;
    padding: 10px 20px;
    border-radius: 12px;
}

.btn-back:hover {
    background: #0f172a;
}




/*Brands.edit*/
/* ================= FORM CARD ================= */
.form-card {
    border-radius: 22px;
    padding: 2px;
}

.form-card-inner {
    border-radius: 20px;
    padding: 28px;
    color: #e5e7eb;
}


/* ================= INPUTS ================= */


.form-control::placeholder {
    color: #94a3b8;
}



/* ================= IMAGE PREVIEW ================= */
.brand-preview {
    width: 110px;
    height: 110px;
    object-fit: contain;
    background: #020617;
    border-radius: 14px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.12);
}

/* ================= BUTTONS ================= */
.btn-update {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: none;
    color: #fff;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(124,58,237,0.45);
}

.btn-update:hover {
    transform: translateY(-2px);
}

.btn-back {
    background: #020617;
    border: 1px solid #ffffff26;
    color: #c7d2fe;
    padding: 10px 20px;
    border-radius: 12px;
}

.btn-back:hover {
    background: #0f172a;
}



/* Brands.index*/
/* ===== DATA CARD INNER (REMOVE PURPLE FEEL) ===== */
/* ================= PAGE BASE ================= */
.content {
    background: #efe8e6;
}

/* ================= DATATABLE WRAPPER ================= */
.dataTables_wrapper {
    color: #e5e7eb;
}

/* ================= HEADER CONTROLS ================= */
.dataTables_length select,
.dataTables_filter input {
    color: #e5e7eb;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 10px;
}

.dataTables_filter label,
.dataTables_length label {
    color: #212121;
    font-weight: 500;
}

/* ================= TABLE ================= */
table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0 14px;
    background: transparent;
}

/* ================= TABLE HEAD ================= */

table.dataTable thead th {
    background: transparent;
    color: #212121;
    padding: 14px 16px;
    border: none;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-size: 12px;
}

table.dataTable thead th:first-child {
    border-radius: 14px 0 0 14px;
}
table.dataTable thead th:last-child {
    border-radius: 0 14px 14px 0;
}

/* ================= TABLE ROW ================= */
table.dataTable tbody tr {
    border-radius: 18px;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.06),
        0 6px 18px rgba(0,0,0,0.6);
    transition: all 0.35s ease;
}

/* ================= ROW HOVER ================= */
table.dataTable tbody tr:hover {
    background: linear-gradient(180deg, #111827, #0b1220);
    transform: translateY(-4px);
    box-shadow:
        inset 0 0 0 1px rgba(99,102,241,0.35),
        0 16px 35px rgba(0,0,0,0.85);
}

/* ================= TABLE CELLS ================= */
table.dataTable tbody td {
    color: #e5e7eb;
    border: none;
    padding: 16px;
    vertical-align: middle;
}

/* ROUND CELL EDGES */
table.dataTable tbody td:first-child {
    border-radius: 18px 0 0 18px;
}
table.dataTable tbody td:last-child {
    border-radius: 0 18px 18px 0;
}

/* ================= ACTION BUTTONS ================= */
.btn-warning {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    border: none;
    color: #020617;
    font-weight: 600;
}

.btn-danger {
    background: linear-gradient(135deg, #f777, #f35a5a);
    border: none;
    font-weight: 600;
}

/* ================= PAGINATION ================= */
.dataTables_paginate .paginate_button {
    background: linear-gradient(135deg, #212121, #2d2d2d);
    color: #fff;
    border-radius: 10px !important;
    margin: 0 4px;
    border: 1px solid rgba(255,255,255,0.1);
}

.dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #212121, #2d2d2d);
    color: #fff !important;
    border: none;
}





/* Categories.create*/
/* ================= FORM CARD ================= */
.form-card {
    border-radius: 22px;
    padding: 2px;
}

.form-card-inner {
    border-radius: 20px;
    padding: 28px;
    color: #e5e7eb;
}


/* ================= INPUTS ================= */


.form-control::placeholder {
    color: #94a3b8;
}


/* ================= BUTTONS ================= */
.btn-save {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: none;
    color: #fff;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(124,58,237,0.45);
}

.btn-save:hover {
    transform: translateY(-2px);
}

.btn-back {
    background: #020617;
    border: 1px solid rgba(255,255,255,0.15);
    color: #c7d2fe;
    padding: 10px 20px;
    border-radius: 12px;
}

.btn-back:hover {
    background: #0f172a;
}

/* ================= MODAL (DARK) ================= */
.modal-content {
    background: linear-gradient(180deg, #020617, #0f172a);
    color: #e5e7eb;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.15);
}

.modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ================= CANVAS ================= */
#canvas {
    background: #020617;
    border-radius: 12px;
}

/* ================= CROP FRAME ================= */
#cropFrame {
    position: absolute;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.7);
    cursor: move;
    width: 320px;
    height: 180px;
    border-radius: 6px;
}



/* Categories.edit*/
/* ================= FORM CARD ================= */
.form-card {
    border-radius: 22px;
    padding: 2px;
}

.form-card-inner {
    border-radius: 20px;
    padding: 28px;
    color: #e5e7eb;
}


/* ================= INPUTS ================= */


.form-control::placeholder {
    color: #94a3b8;
}


/* ================= IMAGE PREVIEW ================= */
.category-preview {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #020617;
    border-radius: 14px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.12);
}

/* ================= BUTTONS ================= */
.btn-save {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: none;
    color: #fff;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(124,58,237,0.45);
}

.btn-save:hover {
    transform: translateY(-2px);
}

.btn-back {
    background: #020617;
    border: 1px solid rgba(255,255,255,0.15);
    color: #c7d2fe;
    padding: 10px 20px;
    border-radius: 12px;
}

.btn-back:hover {
    background: #0f172a;
}

/* ================= MODAL ================= */
.modal-content {
    background: linear-gradient(180deg, #020617, #0f172a);
    color: #e5e7eb;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.15);
}

.modal-header,
.modal-footer {
    border-color: rgba(255,255,255,0.1);
}

#canvas {
    background: #020617;
    border-radius: 12px;
}

/* ================= CROP FRAME ================= */
#cropFrame {
    position: absolute;
    width: 320px;
    height: 180px;
    border: 2px solid #ffffff;
    border-radius: 6px;
    cursor: move;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.7);
}



/* Categoreis.index*/
/* ================= PAGE HEADER ================= */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.page-header h4 {
    font-weight: 700;
    color: #212121;
}

/* ADD CATEGORY BUTTON */
.btn-add {
    background: linear-gradient(135deg, #212121, #2d2d2d);
    color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    transition: 0.3s;
}

.btn-add:hover {
    transform: scaleY(5);
    color: #fff;
}

/* ================= SUCCESS ALERT ================= */
.alert-success {
    border-radius: 14px;
    background: linear-gradient(135deg, #064e3b, #022c22);
    color: #d1fae5;
    border: none;
    box-shadow: 0 10px 25px rgba(6,78,59,0.4);
}

/* ================= DATA CARD ================= */
.data-card {
    border-radius: 22px;
    padding: 2px;
}

.data-card-inner {
    background: linear-gradient(180deg, #020617, #0f172a);
    border-radius: 20px;
    padding: 22px;
}

/* BORDER ANIMATION */
@keyframes borderTrain {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ================= DATATABLE ================= */
table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0 14px;
    color: #e5e7eb;
}

/* TABLE HEADER */
table.dataTable thead th {
    background: linear-gradient(180deg, #0f172a, #020617);
    color: #c7d2fe;
    border: none;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

/* TABLE ROW */
table.dataTable tbody tr {
    background: linear-gradient(180deg, #0b1220, #0f172a);
    border-radius: 18px;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.05),
        0 6px 18px rgba(0,0,0,0.7);
    transition: all 0.3s ease;
}

/* ROW HOVER */
table.dataTable tbody tr:hover {
    background: linear-gradient(180deg, #111827, #0b1220);
    transform: translateY(-3px);
    box-shadow:
        inset 0 0 0 1px rgba(99,102,241,0.35),
        0 14px 30px rgba(0,0,0,0.85);
}

/* CELLS */
table.dataTable tbody td {
    background-color: #212121;
    border: none;
    padding: 16px;
    vertical-align: middle;
    color: #e5e7eb;
}

/* ROUND ROW EDGES */
table.dataTable tbody td:first-child {
    border-radius: 18px 0 0 18px;
}
table.dataTable tbody td:last-child {
    border-radius: 0 18px 18px 0;
}

/* ================= IMAGE ================= */
.category-img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 8px;
    background: #020617;
    padding: 6px;
}

/* ================= STATUS ================= */
.badge-active {
    background: #064e3b;
    color: #d1fae5;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.badge-inactive {
    background: #7f1d1d;
    color: #fee2e2;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* ================= DATATABLE CONTROLS ================= */
.dataTables_filter input,
.dataTables_length select {
    color: #e5e7eb;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 10px;
}

.dataTables_paginate .paginate_button {
    background: #020617 !important;
    color: #c7d2fe !important;
    border-radius: 10px !important;
    margin: 0 4px;
    border: 1px solid rgba(255,255,255,0.12);
}

.dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #212121, #2d2d2d);
    color: #fff !important;
    border: none;
}



/* Carts.index*/

/* ===== CART HEADER ===== */
.cart-header h2 {
    font-weight: 800;
    color: #212121;
}

/* ===== CART TABLE ===== */
.cart-table {
    border-collapse: separate;
    border-spacing: 0 12px;
}

.cart-table thead th {
    background: rgba(255,255,255,0.06);
    color: #94a3b8;
    border: none;
    padding: 14px;
    font-weight: 700;
}

.cart-table tbody tr {
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    transition: all .25s ease;
}

.cart-table tbody tr:hover {
    background: rgba(99,102,241,0.12);
    transform: translateY(-2px);
}

.cart-table tbody td {
    border: none;
    padding: 14px;
    color: #e5e7eb;
    vertical-align: middle;
}

.cart-table tfoot th {
    background: rgba(255,255,255,0.08);
    border: none;
    color: #e5e7eb;
    padding: 14px;
}

/* ===== QTY BUTTONS ===== */
.qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-weight: 700;
    transition: all .2s ease;
}

.qty-btn:hover {
    background: rgba(99,102,241,0.4);
}

/* ===== REMOVE ===== */
.remove-btn {
    border: none;
    border-radius: 10px;
    background: rgba(239,68,68,0.15);
    color: #fecaca;
}

.remove-btn:hover {
    background: rgba(239,68,68,0.35);
}

/* ===== SUMMARY CARD ===== */
.summary-card {
    border-radius: 22px;
    padding: 2px;
}

.summary-inner {
    background: #020617;
    border-radius: 20px;
    padding: 24px;
    color: #e5e7eb;
}

@keyframes glow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}


/* 🔥 FORCE REMOVE WHITE ROWS */
.cart-table,
.cart-table tbody,
.cart-table tr,
.cart-table td {
    background: #1a1a1a;
}

/* 🎯 ACTUAL ROW BACKGROUND (DARK / GLASS) */
.cart-table tbody tr {
    background: rgba(255,255,255,0.05) !important;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: all 0.25s ease;
}

/* HOVER */
.cart-table tbody tr:hover {
    background: rgba(99,102,241,0.18) !important;
    transform: translateY(-2px);
}

/* TD TEXT COLOR */
.cart-table tbody td {
    color: #e5e7eb !important;
    border: none !important;
}



/* Checkout.index*/
/* ===== PAGE ===== */
.checkout-page {
    color: #e5e7eb;
}

/* ===== SECTION TITLE ===== */
.checkout-title {
    font-weight: 900;
    letter-spacing: .5px;
}

/* ===== CARD WITH GRADIENT BORDER ===== */
.checkout-card {
    border-radius: 22px;
    padding: 2px;
    margin-bottom: 20px;
}

.checkout-card-inner {
    border-radius: 20px;
    background: #212121;
    padding: 20px;
}

/* ===== HEADERS ===== */
.card-title {
    font-weight: 800;
    letter-spacing: .4px;
}



/* ===== TABLE ===== */
.checkout-table th {
    color: #94a3b8;
    font-weight: 700;
    font-size: .85rem;
    border-bottom: 1px solid #1e293b;
}

.checkout-table td {
    border-bottom: 1px solid #020617;
    color: #e5e7eb;
}

.checkout-table tr {
    background: rgba(255,255,255,.02);
}

/* ===== TOTAL ===== */
.grand-total {
    font-size: 1.3rem;
    font-weight: 900;
    color: #22c55e;
}

/* ===== BUTTONS ===== */
.btn-back {
    border-radius: 14px;
    font-weight: 600;
}

.btn-place {
    border-radius: 16px;
    font-weight: 800;
    padding: 10px 26px;
    background: linear-gradient(135deg,#16a34a,#22c55e);
    border: none;
}

/* ===== REMOVE BOOTSTRAP WHITE ===== */
.checkout-table,
.checkout-table thead,
.checkout-table tbody,
.checkout-table tr,
.checkout-table td,
.checkout-table th {
    background: transparent !important;
}

/* ===== HEADER ROW ===== */
.checkout-table thead th {
    background: rgba(255,255,255,0.06) !important;
    color: #94a3b8;
    border-bottom: 1px solid #1e293b;
}

/* ===== BODY ROWS (GREYISH DARK) ===== */
.checkout-table tbody tr {
    background: rgba(255,255,255,0.04) !important;
    transition: all 0.25s ease;
}

/* ===== HOVER EFFECT (NO WHITE) ===== */
.checkout-table tbody tr:hover {
    background: rgba(99,102,241,0.12) !important;
}

/* ===== CELLS ===== */
.checkout-table tbody td {
    color: #e5e7eb;
    border-bottom: 1px solid #020617;
}

/* ===== REMOVE STRIPED / HOVER BOOTSTRAP ===== */
.table-striped > tbody > tr:nth-of-type(odd) {
    background: #ffffff0a !important;
}





/* ================= SIDEBAR ================= */

.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    inset: 0 auto 0 0;
    padding: 18px 10px;

    background: #212121;
    border-radius: 0 35px 35px 0;

    transition: width 0.4s cubic-bezier(.4,0,.2,1);
    z-index: 1000;
}

.sidebar.collapsed {
    width: 80px;
}
.sidebar a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 6px 6px;
    padding: 14px 18px;

    border-radius: 14px;
    text-decoration: none;

    color: #fff;
    background: rgba(255,255,255,0.03);

    overflow: hidden;
    transition: all 0.35s ease;
}

/* ICON */
.sidebar i {
    font-size: 18px;
    min-width: 26px;
    text-align: center;
}

/* TEXT */
.sidebar span {
    white-space: nowrap;
    transition: opacity 0.25s ease, width 0.25s ease;
}

/* COLLAPSE TEXT */
.sidebar.collapsed span {
    opacity: 0;
    width: 0;
    overflow: hidden;
}
/* ACTIVE */
.sidebar a.active {
    color: #faad32;
}

.sidebar a.active:hover {
    color: #2c2c2c77;
}

/* HOVER 3D */
.sidebar a:hover {
    transform: translateX(6px) scale(1.05);
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(0,0,0,0.6);
}
.sidebar a::before {
    content: "";
    position: absolute;
    inset: 0;
    left: -120%;
    width: 120%;
}

.sidebar a:hover::before {
    animation: trainShine 0.6s linear forwards;
}

@keyframes trainShine {
    to { left: 120%; }
}
/* ================= CONTENT ================= */

.content {
    margin-left: 260px;
    padding: 25px;
    transition: margin-left 0.4s cubic-bezier(.4,0,.2,1);
}

.content.expanded {
    margin-left: 80px;
}
/* ================= TOPBAR ================= */

.topbar {
    background: #212121;
    color: #fff;

    padding: 14px 20px;
    border-radius: 35px 0 35px 0;

    display: flex;
    align-items: center;
    gap: 15px;

    margin-bottom: 25px;
}

.sidebar-toggle {
    background: #212121;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: 0.25s;
}

.sidebar-toggle:hover {
    transform: scale(1.1);
    background: rgba(158, 158, 158, 0.35);
}






/* partial.sidebar*/
    /* ========== LOGO IMPROVEMENT ========== */
.sidebar > a:first-child {
    margin-bottom: 30px !important;
    padding: 14px 18px;
    border-radius: 16px;
}

/* ========== SECTION FEEL ========== */
.sidebar a:not(:first-child) {
    margin-top: 4px;
}

/* ========== LEFT ACTIVE INDICATOR ========== */
.sidebar a.active::after {
    content: "";
    position: absolute;
    left: 0;
    top: 12%;
    height: 76%;
    width: 4px;
    border-radius: 0 6px 6px 0;
}

/* ========== ICON MICRO MOTION ========== */
.sidebar a i {
    transition: transform 0.3s ease;
}

.sidebar a:hover i {
    transform: rotate(-6deg) scale(1.15);
}

/* ========== TEXT SMOOTHNESS ========== */
.sidebar a span {
    letter-spacing: 0.3px;
}

/* ========== COLLAPSED TOOLTIP ========== */
.sidebar.collapsed a::after {
    pointer-events: none;
}

.sidebar.collapsed a:hover::before {
    content: attr(data-title);
    position: absolute;
    left: 95%;
    top: 50%;
    transform: translateY(-50%);
    background: #020617;
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    z-index: 999;
}

/* ========== LOGOUT BUTTON GLASS DANGER ========== */
.sidebar form button {
    background: linear-gradient(135deg, #ca4539, #f04f4f);
    border: none;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(239,68,68,0.45);
    transition: all 0.3s ease;
}

.sidebar form button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(239,68,68,0.6);
}




/* Products.create */
/* ================= FORM CARD ================= */
.form-card {
    border-radius: 22px;
    padding: 2px;
}

.form-card-inner {
    border-radius: 20px;
    padding: 28px;
    color: #e5e7eb;
}


/* ================= INPUTS ================= */


.form-control::placeholder {
    color: #94a3b8;
}


/* ================= TEXTAREA ================= */
textarea.form-control {
    resize: none;
}

/* ================= IMAGE INPUT ================= */
#image-wrapper input[type="file"] {
    background: #fff;
    color: #000;
    border: 1px dashed rgba(255,255,255,0.25);
}

/* ================= BUTTONS ================= */
.btn-save {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: none;
    color: #fff;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(124,58,237,0.45);
}

.btn-save:hover {
    transform: translateY(-2px);
}

.btn-back {
    background: #020617;
    border: 1px solid rgba(255,255,255,0.15);
    color: #c7d2fe;
    padding: 10px 20px;
    border-radius: 12px;
}

.btn-back:hover {
    background: #0f172a;
}

.btn-add-image {
    background: transparent;
    border: 1px dashed rgba(255,255,255,0.35);
    color: #c7d2fe;
    border-radius: 10px;
    padding: 6px 14px;
}

/* ================= MODAL ================= */
.modal-content {
    background: linear-gradient(180deg, #020617, #0f172a);
    color: #e5e7eb;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.15);
}

.modal-header,
.modal-footer {
    border-color: rgba(255,255,255,0.1);
}

#cropCanvas {
    background: #020617;
    border-radius: 12px;
}

/* ================= CROP FRAME ================= */
#cropFrame {
    position: absolute;
    border: 2px solid #ffffff;
    border-radius: 6px;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.7);
    cursor: move;
}




/* Products.edit */
/* ================= FORM CARD ================= */
.form-card {
    border-radius: 22px;
    padding: 2px;
}

.form-card-inner {
    border-radius: 20px;
    padding: 28px;
    color: #e5e7eb;
}



/* ================= INPUTS ================= */


/* ================= EXISTING IMAGES ================= */
.existing-images {
    background: linear-gradient(180deg, #0b1220, #020617);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}

.existing-images img {
    border-radius: 12px;
    background: #020617;
    padding: 6px;
    border: 1px solid rgba(255,255,255,0.12);
}

/* ================= BUTTONS ================= */
.btn-save {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(124,58,237,0.45);
}

.btn-back {
    background: #020617;
    border: 1px solid rgba(255,255,255,0.15);
    color: #c7d2fe;
    padding: 10px 20px;
    border-radius: 12px;
}

.btn-add-image {
    background: transparent;
    border: 1px dashed rgba(255,255,255,0.35);
    color: #c7d2fe;
    border-radius: 10px;
    padding: 6px 14px;
}

/* ================= MODAL ================= */
.modal-content {
    background: linear-gradient(180deg, #020617, #0f172a);
    color: #e5e7eb;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.15);
}

.modal-header,
.modal-footer {
    border-color: rgba(255,255,255,0.1);
}

#cropCanvas {
    background: #020617;
    border-radius: 12px;
}

#cropFrame {
    border: 2px solid #ffffff;
    border-radius: 6px;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.7);
}



/* Products.index*/
/* ================= PAGE HEADER ================= */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.page-header h5 {
    font-weight: 700;
    color: #212121;
    margin-bottom: 8px;
}

/* ADD PRODUCT BUTTON */

.btn-add:hover {
    transform: translateY(-2px);
    color: #fff;
}

/* ================= SUCCESS ALERT ================= */
.alert-success {
    border-radius: 14px;
    background: linear-gradient(135deg, #064e3b, #022c22);
    color: #d1fae5;
    border: none;
    box-shadow: 0 10px 25px rgba(6,78,59,0.4);
}

/* ================= DATA CARD ================= */
.data-card {
    border-radius: 22px;
    padding: 2px;
    
}

.data-card-inner {
    background: #fcf9f9;
    border-radius: 20px;
    padding: 22px;
}
/* ================= DATATABLE ================= */
table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0 14px;
    color: #e5e7eb;
}

/* TABLE HEADER */
table.dataTable thead th {
    background: #212121;
    color: #fff;
    border: none;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* TABLE ROW */
table.dataTable tbody tr {
    background: #212121;
    border-radius: 18px;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.05),
        0 6px 18px rgba(0,0,0,0.7);
    transition: all 0.3s ease;
}


/* CELLS */
table.dataTable tbody td {
    border: none;
    padding: 16px;
    vertical-align: middle;
    color: #e5e7eb;
}

/* ROUND EDGES */
table.dataTable tbody td:first-child {
    border-radius: 18px 0 0 18px;
}
table.dataTable tbody td:last-child {
    border-radius: 0 18px 18px 0;
}

/* ================= PRODUCT IMAGE ================= */
.product-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    background: #020617;
    padding: 6px;
}

/* ================= STATUS ================= */
.badge-active {
    background: #064e3b;
    color: #d1fae5;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.badge-inactive {
    background: #7f1d1d;
    color: #fee2e2;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* ================= DATATABLE CONTROLS ================= */
.dataTables_filter input,
.dataTables_length select {
    color: #faad32;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 10px;
}

.dataTables_paginate .paginate_button {
    background: #020617 !important;
    color: #c7d2fe !important;
    border-radius: 10px !important;
    margin: 0 4px;
    border: 1px solid rgba(255,255,255,0.12);
}


/* ================= RESPONSIVE HIDE ================= */
.hide-mobile {
    display: none;
}
@media (min-width: 769px) {
    .hide-mobile {
        display: table-cell;
    }
}




/* Products.items*/
/* ===== PAGE HEADER ===== */
.items-header h2 {
    font-weight: 800;
    color: #212121;
}

/* ===== CART BADGE ===== */
.cart-link {
    position: relative;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e5e7eb;
    text-decoration: none;
}
.cart-link:hover { color: #2d2c2c; }

.cart-badge {
    position: absolute;
    top: -6px;
    right: -14px;
    background: linear-gradient(135deg,#ef4444,#dc2626);
    font-size: 0.7rem;
    padding: 4px 7px;
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(239,68,68,.6);
}

/* ===== PRODUCT CARD ===== */
.product-card {
    border-radius: 18px;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.05),
        0 12px 25px rgba(0,0,0,.4);
    transition: all .35s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        inset 0 0 0 1px rgba(99,102,241,.4),
        0 28px 45px rgba(99,102,241,.35);
}

/* ===== IMAGE ===== */
.product-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 12px;
}

/* ===== TEXT ===== */
.product-title {
    font-weight: 700;
    color: #f9fafb;
    font-size: 1.05rem;
}
.product-code {
    font-size: .75rem;
    color: #9ca3af;
}
.product-desc {
    font-size: .82rem;
    color: #cbd5f5;
}
.product-price {
    font-weight: 900;
    font-size: 1.1rem;
    color: #22c55e;
}

/* ===== BUTTONS ===== */
.btn-view {
    border-radius: 12px;
    font-weight: 600;
}



/*Products.show*/
/* ===== PAGE ===== */
.product-page {
    color: #e5e7eb;
}

/* ===== BACK BUTTON ===== */
.back-btn {
    border-radius: 12px;
    font-weight: 600;
}

/* ===== MAIN CARD ===== */
.product-card {
    border-radius: 22px;
    padding: 2px;
    background-size: 400% 400%;
    animation: borderTrain 8s linear infinite;
}

.product-card-inner {
    border-radius: 20px;
    background: linear-gradient(135deg,#0f172a,#020617);
    padding: 24px;
}

/* ===== BORDER ANIM ===== */
@keyframes borderTrain {
    0% {background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}

/* ===== IMAGE ===== */
.main-image {
    border-radius: 16px;
    max-height: 380px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,.6);
}

.thumb-img {
    border-radius: 12px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    opacity: .6;
    transition: .3s;
    border: 2px solid transparent;
}

.thumb-img:hover,
.thumb-img.active {
    opacity: 1;
    border-color: #6366f1;
}

/* ===== TITLES ===== */
.product-title {
    font-weight: 900;
    font-size: 1.8rem;
}

/* ===== LABELS ===== */
.meta-label {
    font-size: .72rem;
    letter-spacing: .12em;
    color: #94a3b8;
    font-weight: 700;
}

/* ===== VALUES ===== */
.meta-value {
    font-size: 1.05rem;
    font-weight: 600;
}

/* ===== BADGES ===== */
.badge-active {
    background: linear-gradient(135deg,#16a34a,#22c55e);
}
.badge-inactive {
    background: linear-gradient(135deg,#b91c1c,#ef4444);
}

/* ===== PRICE ===== */
.price {
    font-size: 1.3rem;
    font-weight: 900;
    color: #22c55e;
}

/* ===== ACTION BUTTONS ===== */
.btn-edit {
    background: linear-gradient(135deg,#f59e0b,#fbbf24);
    border: none;
    font-weight: 700;
    border-radius: 14px;
}

.btn-delete {
    background: linear-gradient(135deg,#dc2626,#ef4444);
    border: none;
    font-weight: 700;
    border-radius: 14px;
}


/* ===============================================================================
   PRODUCT SHOW PAGE — Flipkart-style variant selection
=============================================================================== */
.product-show-page {
    padding-bottom: 40px;
}

.gallery-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 20px;
}

.main-show-image {
    border-radius: 12px;
    max-height: 420px;
    object-fit: contain;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.show-thumb {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.2s;
}
.show-thumb:hover,
.show-thumb.active {
    opacity: 1;
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(79,70,229,0.25);
}

.detail-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.brand-tag {
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.product-show-title {
    font-weight: 800;
    font-size: 1.55rem;
    color: #1e293b;
    line-height: 1.3;
}

/* ===== PRICING ===== */
.pricing-box {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.selling-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
}
.mrp-price {
    font-size: 1.1rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}
.discount-badge {
    background: #dcfce7;
    color: #16a34a;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

/* ===== STOCK ===== */
.stock-tag {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
}
.stock-tag.in-stock {
    background: #dcfce7;
    color: #16a34a;
}
.stock-tag.out-of-stock {
    background: #fee2e2;
    color: #dc2626;
}

.meta-label-sm {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ===== COLOUR SWATCHES ===== */
.colour-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    position: relative;
}
.colour-swatch:hover {
    transform: scale(1.12);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
.colour-swatch.active {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px #4f46e5, 0 3px 10px rgba(79,70,229,0.3);
    transform: scale(1.12);
}

.colour-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    vertical-align: middle;
}

.colour-dot-sm {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    vertical-align: middle;
    margin-right: 4px;
}

/* ===== SIZE PILLS ===== */
.size-pill {
    padding: 6px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #1e293b;
}
.size-pill:hover {
    border-color: #4f46e5;
    color: #4f46e5;
}
.size-pill.active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}
.size-pill.out-of-stock {
    opacity: 0.45;
    text-decoration: line-through;
    cursor: not-allowed;
}

/* ===== TABLE ROW highlight ===== */
.variant-table-row:hover {
    background: #f1f5f9 !important;
}
.variant-table-row.table-primary {
    background-color: #eef2ff !important;
}


/* Dashboard */
/* ================= DASHBOARD CARD ================= */
.dashboard-card {
    text-decoration: none;
    display: block;
}

/* ================= ANIMATED BORDER ================= */
.card-border {
    position: relative;
    border-radius: 26px;
    padding: 2px;
    
}

/* ================= CARD BODY ================= */
.card-inner {
    border-radius: 24px;
    background: #f3f3f3;
    padding: 26px;
    height: 100%;
    transition: all 0.35s cubic-bezier(.4,0,.2,1);
    box-shadow:
        inset 0 0 0 1px rgba(35, 35, 35, 0.08),
        0 12px 25px rgba(48, 48, 48, 0.08);
}

/* ================= HOVER EFFECT ================= */
.dashboard-card:hover .card-inner {
    transform: translateY(-8px) scale(1.035);
    box-shadow:
        inset 0 0 0 1px rgba(203, 203, 205, 0.25),
        0 26px 45px rgba(159, 158, 161, 0.25);
}

/* ================= BORDER MOTION ================= */
@keyframes borderTrain {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ================= TEXT ================= */
.card-inner h6 {
    color: #000;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-size: 14px;
}

.card-inner h2 {
    color: #000;
    font-weight: 900;
    font-size: 36px;
    margin-bottom: 6px;
}

/* ================= STATUS TEXT ================= */
.text-success {
    color: #000;
    font-weight: 600;
}

.text-danger {
    color: #000;
    font-weight: 600;
}

/* ================= CLICK FEEDBACK ================= */
.dashboard-card:active .card-inner {
    transform: scale(0.97);
}

/* main layout wrapper */
/* MAIN PAGE BACKGROUND */
/* 🔥 FORCE DASHBOARD BACKGROUND */
.main-content {
    background: linear-gradient(
        135deg,
        #facc15,   /* yellow */
        #fb923c,   /* orange */
        #ef4444    /* red */
    ) !important;
}



.dashboard-page {
    min-height: 100vh;
}







/* login */
/* ================= AUTH PAGE ONLY ================= */
.auth-page {
    min-height: 100vh;
    background: #f8f7f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: system-ui, sans-serif;
}

/* ================= CARD ================= */
.auth-card {
    width: 100%;
    max-width: 380px;
    background: #f8f7f6;
    backdrop-filter: blur(14px);
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 25px 60px rgba(0,0,0,0.65);
    padding: 26px;
    color: #e5e7eb;
}

/* ================= TITLE ================= */
.auth-title {
    text-align: center;
    font-weight: 800;
    margin-bottom: 22px;
    color: #212121;
}

/* ================= LABEL ================= */
.auth-label {
    font-size: 14px;
    font-weight: 600;
    color: #212121;
}

/* ================= INPUT ================= */
.auth-input {
    background: #fff;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 12px 14px;
    color: #212121;
}

.auth-input::placeholder {
    color: #212121;
}

.auth-input:focus {
    background: #fff;
    border-color: #f8f7f6;
    box-shadow: 0 0 0 3px rgba(166, 166, 167, 0.25);
    color: #212121;
}

/* ================= PASSWORD EYE ================= */
.auth-eye {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: #212121;
}

.auth-eye:hover {
    color: #212121;
}

/* ================= BUTTON ================= */
.auth-btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: .4px;
    box-shadow: 0 15px 40px rgba(124,58,237,0.45);
    transition: .3s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(124,58,237,0.65);
}

/* ================= ALERT ================= */
.auth-alert {
    border-radius: 12px;
    background: rgba(239,68,68,0.15);
    color: #fecaca;
    border: 1px solid rgba(239,68,68,0.35);
}





.sidebar a {
    position: relative;
    overflow: hidden;
}
.sidebar a.active::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 2px;

}
@keyframes borderFlow {
    0% {
        background-position: 0% 0%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}


/* Products.items */
    /* ===== PRODUCT BORDER (RAINBOW ONLY) ===== */
.product-border {
    padding: 2px;                 /* border thickness */
    border-radius: 22px;
    background-size: 300% 300%;
    animation: borderTrain 6s linear infinite;
}

/* ===== INNER PRODUCT CARD (NO GRADIENT) ===== */
.product-card {
    border-radius: 20px;
    background-color: #282828;
    color: #212121;
    height: 100%;
}

/* ===== IMAGE ===== */
.product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    background: #020617;
}

/* ===== TEXT ===== */
.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 12px;
}

.product-code,
.product-desc {
    font-size: 0.85rem;
    color: #9ca3af;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #22c55e;
}


.btn-view {
    border-radius: 12px;
}


/* Button Active Animation */
/* ===== BASE LINK ===== */
.sidebar a {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
}

/* ===== ACTIVE BORDER SNAKE ===== */
.sidebar a.active::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 2px; /* BORDER THICKNESS */


    background-size: 300% 300%;


    pointer-events: none;
}

/* ===== COUNTER CLOCKWISE BORDER FLOW ===== */
@keyframes snakeBorder {
    0%   { background-position:   0% 50%; }
    25%  { background-position: 100% 50%; }
    50%  { background-position: 100% 100%; }
    75%  { background-position:   0% 100%; }
    100% { background-position:   0% 50%; }
}




/* Cart Number COunt */
.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
}

/* BADGE */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;

    min-width: 18px;
    height: 18px;
    padding: 0 6px;

    background: #ef4444;
    color: #fff;

    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;

    border-radius: 999px;

    z-index: 9999;
}

/* IMPORTANT: parent overflow must be visible */
.items-header,
.topbar,
.container {
    overflow: visible !important;
}



.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
}

.cart-count {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 12px;
    font-weight: 700;

    padding: 2px 8px;
    border-radius: 999px;

    line-height: 1;
}





/* ===== BRANDS HOVER RAINBOW BORDER ONLY ===== */
.sidebar a.brands-link {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
}

/* HOVER RAINBOW BORDER */
.sidebar a.brands-link:hover::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px; /* border thickness */
    border-radius: 14px;
    background-size: 400% 400%;
    pointer-events: none;
}

/* Optional soft glow */
.sidebar a.brands-link:hover {
    box-shadow: 0 0 18px rgba(255,255,255,0.25);
}

/* Rainbow animation */
@keyframes rainbowMove {
    0%   { background-position:   0% 50%; }
    100% { background-position: 400% 50%; }
}




/* ================= SIDEBAR RAINBOW HOVER (ALL MENU ITEMS) ================= */

/* apply only on sidebar menu links (exclude first logo link) */
.sidebar a:not(:first-child) {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
}

/* hover rainbow border */
.sidebar a:not(:first-child):hover::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px; /* border thickness */
    border-radius: 14px;

    background-size: 400% 400%;
    animation: sidebarRainbow 1.8s linear infinite;
    pointer-events: none;
}

/* soft glow on hover */
.sidebar a:not(:first-child):hover {
    transform: translateX(6px) scale(1.05);
}

/* rainbow animation */
@keyframes sidebarRainbow {
    0%   { background-position:   0% 50%; }
    100% { background-position: 400% 50%; }
}



/* ================= ACTIVE BUTTON BLACK BORDER + ROTATING LINE ================= */
.sidebar a.active {
    position: relative;
    border-radius: 14px;
}

/* black border base */
.sidebar a.active::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 14px;
    pointer-events: none;
}

/* rotating line over border */
.sidebar a.active::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    pointer-events: none;
}

/* rotation animation */
@keyframes activeRotate {
    0%   { background-position:   0% 50%; }
    25%  { background-position: 100% 50%; }
    50%  { background-position: 100% 100%; }
    75%  { background-position:   0% 100%; }
    100% { background-position:   0% 50%; }
}



.sidebar a.active::before,
.sidebar a.active::after {
    content: none !important;
}
/* ================= ACTIVE BUTTON : FULL BORDER ROTATING LINE ================= */
.sidebar a.active {
    position: relative;
    border-radius: 14px;
    z-index: 1;
}

/* BLACK BORDER BASE */
.sidebar a.active::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;               /* border thickness */
    border-radius: 14px;
    pointer-events: none;
}

/* 🔥 WHITE LINE THAT ROTATES AROUND FULL BORDER */
.sidebar a.active::before {
    content: "";
    position: absolute;
    inset: -2px;                /* slightly outside */
    border-radius: 16px;

    pointer-events: none;
}
@keyframes rotateBorder {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}





/* ================= SIDEBAR RAINBOW HOVER (ALL MENU ITEMS) ================= */

/* apply only on sidebar menu links (exclude first logo link) */
.sidebar a:not(:first-child) {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
}

/* hover rainbow border */
.sidebar a:not(:first-child):hover::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px; /* border thickness */
    border-radius: 14px;
    background-size: 400% 400%;
    animation: sidebarRainbow 1.8s linear infinite;

    /* show only border */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;

    pointer-events: none;
}

/* soft glow on hover */
.sidebar a:not(:first-child):hover {
    box-shadow: 0 0 18px rgba(255,255,255,0.35);
    transform: translateX(6px) scale(1.05);
}




/* ===== ACTIVE BUTTON : CONTINUOUS MOVING WHITE SNAKE ===== */
.sidebar a.active {
    position: relative;
    color: #000;
    border-radius: 14px;
    border: 2px solid transparent;

    /* base button fill */
    background:
        linear-gradient(135deg, #fff, #ddd) padding-box,
        transparent border-box;
}

/* moving white line layer */
.sidebar a.active::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    animation: rotateSnake 1.4s linear infinite;
    pointer-events: none;
}

/* cut the center so it stays INSIDE border */
.sidebar a.active::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 12px;
    pointer-events: none;
}

/* 🔥 TRUE 360° MOTION */
@keyframes rotateSnake {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}


/* ================= DELETE BUTTON ANIMATION ================= */

.button {
    position: relative;
    display: inline-block;
    width: 110px;
    height: 38px;
    line-height: 38px;
    background: #dc2626;
    color: #fff;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(220,38,38,0.45);
    transition: all .3s ease;
    font-size: 13px;
    font-weight: 600;
}

.button span {
    position: absolute;
    width: 70%;
    left: 0;
    text-align: center;
    transition: .3s;
}

.button .icon {
    position: absolute;
    right: 0;
    width: 30%;
    text-align: center;
    transition: .3s;
}

.button .icon i {
    font-size: 16px;
}

.button .fa-check {
    display: none;
}

/* HOVER */
.button:hover span {
    left: -100%;
    opacity: 0;
}
.button:hover .icon {
    width: 100%;
}

/* SUCCESS */
.button.success {
    background: #16a34a;
}
.button.success .fa-remove {
    display: none;
}
.button.success .fa-check {
    display: inline-block;
}










/* ================= ACTION LAYOUT FIX ================= */
.action-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;     /* 🔥 KEY: stretch children */
    gap: 10px;
}

/* TOP ROW */
.action-top {
    display: flex;
    gap: 10px;
}

/* TOP BUTTONS */
.action-btn {
    border: none;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

/* COLORS */
.view-btn {
    border: 1px solid #22d3ee;
    color: #22d3ee;
    background-color: #000;
    transition: 0.3s;
}

.view-btn:hover{
    background: #22d3ee;
    color: #020617;
}

.edit-btn {
    border: 1px solid #facc15;
    color: #facc15;
    background-color: #000;
    transition: 0.3s;
}

.edit-btn:hover{
    background: #facc15;
    color: #020617;
}


/* 🔥 IMPORTANT PART */
/* Do NOT style .button animation */
/* Only force width inheritance */
.action-wrapper > .button {
    width: 100%;
}




.edi-btn{
    background: #232323;
    border: 1px solid #faad32;
    color: #faad32;
    transition: 0.3s;
}
.edi-btn:hover{
    background: #faad32;
    color: #000;
}


.cart-link{
    color: #212121;
}


.btn-outline-light{
    background-color: #212121;
    padding: 10px 20px;
    transition: 0.3s;
    border: none;
}


.btn-outline-light:hover{
    color: white;
    background-color: #3e3e3e;
}

.checkout-label{
    color: white;
}





/* ================= BRANDS TABLE HARD CONTAIN ================= */

html, body {
    overflow-x: hidden;
}

.data-card,
.data-card-inner,
.dataTables_wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* ================= TABLE LOCK ================= */
#brands-table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;   /* 🔑 KEY FIX */
    border-collapse: separate;
    border-spacing: 0 1rem;
}

/* ================= CELLS ================= */
#brands-table th,
#brands-table td {
    max-width: 100%;
    width: auto !important;
    white-space: normal;              /* allow wrap */
    word-break: break-word;
    overflow-wrap: break-word;
    vertical-align: middle;
    padding: clamp(0.6rem, 2vw, 1rem);
    font-size: clamp(0.8rem, 1.8vw, 0.95rem);
}

/* ================= COLUMN WIDTH CONTROL ================= */
#brands-table th:nth-child(1),
#brands-table td:nth-child(1) {
    width: 3rem; /* # */
}

#brands-table th:nth-child(3),
#brands-table td:nth-child(3) {
    width: 5rem; /* image */
}

#brands-table th:last-child,
#brands-table td:last-child {
    width: 11rem; /* action */
}

/* ================= IMAGE ================= */
#brands-table img {
    width: clamp(2.5rem, 6vw, 3.5rem);
    height: auto;
    display: block;
    margin: auto;
}

/* ================= ACTION COLUMN ================= */
#brands-table td:last-child {
    overflow: hidden;
}

#brands-table .d-flex {
    flex-wrap: wrap;          /* wrap buttons */
    gap: 0.5rem;
}

#brands-table .edi-btn,
#brands-table .dt-delete-btn {
    width: 100%;
    text-align: center;
    white-space: nowrap;
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
}

/* ================= ROW HEIGHT GROWS ================= */
#brands-table tbody tr {
    height: auto !important;
}

/* ================= BELOW 899px (YOUR PROBLEM ZONE) ================= */
@media (max-width: 899px) {

    /* NOTHING OVERFLOWS */
    #brands-table {
        table-layout: fixed;
    }

    /* ROWS GROW TALLER */
    #brands-table td {
        line-height: 1.4;
    }

    /* STACK ACTIONS */
    #brands-table .d-flex {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ================= MOBILE ================= */
@media (max-width: 576px) {

    #brands-table th,
    #brands-table td {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}
