:root {
            --primary:  #0040a8;
            --secondary: #ff772e;
            --success: #4cc9f0;
            --info: #4895ef;
            --warning: #f72585;
            --light: #f8f9fa;
            /* --dark: #212529; */
            --text:#FFF;
        }
        

.dashboard{
        display: block;
        margin-top: 5rem;
        margin-bottom: 5rem;
    }
        

.side-bar {
  position: sticky;
  top: 20px; /* space from top when scrolling */
    background-color: #2d76bb;
  height: calc(100vh - 40px);
  width: 100%;
  padding: 20px;
  border-radius: 20px;
  overflow-y: auto;
  z-index: 1;
}


.side-bar h4{
    color: var(--text);
}

.side-bar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.side-bar-profile img,
.side-bar-profile img.side-bar-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.45);
    background: #ffffff;
    flex-shrink: 0;
    display: block;
}

.side-bar-profile-text h4 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
    word-break: break-word;
}

.side-bar-profile-text h6 {
    margin: 4px 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0.95;
}

.dash-box {
    display: block;
    margin-top: 38px;
}

.dash-box ul li a{
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 12px 20px;
    width: 100%;
    display: block;
    border-radius: 10px;
    margin-bottom: 20px;
}

a .box-inside {
    display: flex;
    width: 100%;
    border: 1px solid #a3a3a3;
    border-radius: 11px;
    /* margin: auto; */
     padding-left: 15px;
    padding-top: 4px;
    background: #ffffff85;
    color: #25241b;
}

a .box-inside:hover {
    background: var(--color-primary);
    color: var(--text);
    webkit-transition: all 0.35s ease-in-out;
    transition: all 0.35s ease-in-out;
}

.box-block{
    display: block;
    margin-top: 0px;
}

span.numbers-box{
    font-size: 25px;
    font-weight: bold;
}

.icon-box{
    width: 10%;
    display: block;
}

.orders span {
    display: block;
}

.dash-box1{
    width: 100%;
    background: var(--info);
    padding: 20px;
    border-radius: 20px;
    display: flex;
}

.dash-box1 img{
    width: 70%;
}

.inside-text h5{
    color: var(--text);
}

.inside-text p{
    color: var(--text);
}

.right-bar h4{
    margin-top: 20px;
}

.side-bar h6{
	color: var(--text);
}

.right-bar {
    display: block;
    background: #f1f1f1;
    padding: 20px;
    border-radius: 20px;
    height: 100%;
}

/*Table*/
.table-searchable .is-hidden {
  display: none;
}

.table-searchable .is-match {
  background-color: lawngreen;
  transition: background-color .5s ease-in;
}

.btn-group-sm button.btn {
  padding: 12px 14px !important;
}

/* ✅ Table container scroll setup */
.table-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* ✅ Scrollable area */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.table-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Ensure table always full width */
.table {
  width: 100%;
  border-collapse: collapse;
}
/*End*/

/* Order table */
table.table.Order{
min-width: 100%;
}

.btn-outline-dark a i{
    color: var(--text);
}


.switch input { 
    display:none;
}
.switch {
    display:inline-block;
    width:60px;
    height:27px;
    margin:0 auto;
    transform:translateY(50%);
    position:relative;
    top:-10px;
    left: 20px;
}
/* Style Wired */
.slider {
    position:absolute;
    top:0;
    bottom:0;
    left:0;
    right:0;
    border-radius:30px;
    box-shadow:0 0 0 2px var(--color-primary), 0 0 4px #777;
    cursor:pointer;
    border:4px solid transparent;
    overflow:hidden;
     transition:.4s;
}
.slider:before {
    position:absolute;
    content:"";
    width:100%;
    height:100%;
    background:var(--color-primary);
    border-radius:30px;
    transform:translateX(-30px);
    transition:.4s;
}

input:checked + .slider:before {
    transform:translateX(30px);
    background:limeGreen;
}
input:checked + .slider {
    box-shadow:0 0 0 2px limeGreen,0 0 2px limeGreen;
}

/* Style Flat */
.switch.flat .slider {
 box-shadow:none;
}
.switch.flat .slider:before {
  background:#FFF;
}
.switch.flat input:checked + .slider:before {
 background:white;
}
.switch.flat input:checked + .slider {
  background:limeGreen;
}

.heading-top{
    display: flex;
    justify-content: space-between;
}

.right-plus a i{
    position: relative;
    top: 38px;
    left: -31px;
    font-size: 25px;
}

.right-plus a i:hover{
	color: var(--color-primary);
}


.form-group {
            margin-bottom: 20px;
        }

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: white;
}

textarea {
    resize: vertical;
    min-height: 120px;
}


a button.list {
    background: #ebebeb;
    border: none;
    padding: 10px;
    border-radius: 10px;
}

a button.list:hover {
    background: var(--primary);
    color: var(--text);
}

a button.list:active {
    background: var(--primary);
    color: var(--text);
}

a button.list:focus {
    background: var(--primary);
    color: var(--text);
}

.box-block label {
    padding-top: 32px;
}

.address-page-block label,
.address-form label {
    padding-top: 0 !important;
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0f3557;
    line-height: 1.4;
}

.address-page-block label.error,
.address-form label.error,
#addressForm label.error,
.checkout-form label.error,
label.error {
    color: #d32f2f !important;
    font-weight: 500;
}

.address-form-grid {
    margin-left: 0;
    margin-right: 0;
}

.address-field {
    margin-bottom: 18px;
}

.address-form .form-control,
.address-form .form-select {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #d8dde3;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    margin-bottom: 0;
}

.address-form .form-select {
    padding-right: 36px;
}

.address-form-actions {
    margin-top: 8px;
    padding-top: 22px;
    border-top: 1px solid #e0e0e0;
}

.address-btn-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
}

.address-form .address-form-actions button.address-submit-btn,
.address-form .address-form-actions a.address-cancel-btn {
    box-sizing: border-box;
    height: 48px;
    min-height: 48px;
    margin: 0 !important;
    width: auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    text-transform: none;
    letter-spacing: 0;
    overflow: visible;
    position: static;
    z-index: auto;
}

.address-form .address-form-actions button.address-submit-btn {
    min-width: 170px;
    padding: 0 28px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 8px !important;
    color: #fff !important;
    background: linear-gradient(90deg, #2058a7, #f89d58) !important;
    box-shadow: 0 4px 14px rgba(32, 88, 167, 0.2);
    cursor: pointer;
    line-height: 1 !important;
}

.address-form .address-form-actions button.address-submit-btn:hover:not(:disabled) {
    opacity: 0.95;
    color: #fff !important;
    background: linear-gradient(90deg, #2058a7, #f89d58) !important;
}

.address-form .address-form-actions button.address-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.address-form .address-form-actions a.address-cancel-btn {
    min-width: 120px;
    padding: 0 24px !important;
    border-radius: 8px !important;
    border: 2px solid #2058a7 !important;
    color: #2058a7 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-align: center;
    background: #fff !important;
    line-height: 1 !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.address-form .address-form-actions a.address-cancel-btn:hover {
    background: #2058a7 !important;
    color: #fff !important;
}

#contactForm{
	display: block;
}

#submitBtn{
	margin-top: 0;
	margin-bottom: 0;
}

@media (max-width: 767px) {
    .address-btn-group {
        flex-direction: column;
        align-items: stretch;
    }
    .address-form .address-form-actions button.address-submit-btn,
    .address-form .address-form-actions a.address-cancel-btn {
        width: 100%;
        min-width: 0;
    }
    .address-field {
        margin-bottom: 14px;
    }
}



.Order td i.bi-star-fill, .bi-star-half, .bi-star{
	color: var(--color-primary);
}

.order-block{
    display: flex;
	position: relative;
	z-index: 0;
}

.order-status{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.order-block i.bi-circle-fill, .bi-circle-half{
	color: var(--secondary);
}

.order-block::after{
	content: '';
	position: absolute;
	border-top: 3px solid var(--secondary);
	width: 53%;
	top: 12px;
	left: 0;
	height: 10px;
	z-index: -1;
}

/* Order view page */
.order-view-page .order-view-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.order-view-page .order-view-top h4 {
    margin: 0;
}

.order-back-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid #2058a7;
    color: #2058a7 !important;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
    line-height: 1.2;
}

.order-back-btn:hover {
    background: #2058a7;
    color: #fff !important;
}

.order-view-block {
    padding-top: 0;
}

.order-view-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 18px 20px;
    height: 100%;
}

.order-view-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f3557;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.order-info-table {
    width: 100%;
    border-collapse: collapse;
}

.order-info-table th,
.order-info-table td {
    padding: 10px 0;
    vertical-align: top;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.order-info-table th {
    width: 130px;
    color: #666;
    font-weight: 600;
    padding-right: 12px;
}

.order-info-table td {
    color: #0f3557;
}

.order-info-table tr:last-child th,
.order-info-table tr:last-child td {
    border-bottom: none;
}

.order-shipping-box p {
    margin: 0 0 8px;
    color: #333;
    line-height: 1.5;
    font-size: 14px;
}

.order-shipping-name {
    font-weight: 700;
    color: #0f3557 !important;
    font-size: 15px !important;
}

.order-shipping-phone {
    margin-top: 10px !important;
    color: #2058a7 !important;
    font-weight: 600;
}

.order-shipping-phone i {
    margin-right: 6px;
}

.order-status-track {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.order-status-step {
    flex: 1 1 120px;
    text-align: center;
    padding: 10px 8px;
    border-radius: 10px;
    background: #f7f7f7;
    border: 1px solid #ececec;
}

.order-status-dot {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 auto 8px;
}

.order-status-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    line-height: 1.3;
}

.order-status-step.done {
    background: #eef6ff;
    border-color: #cfe3fb;
}

.order-status-step.done .order-status-dot {
    background: #2058a7;
}

.order-status-step.done .order-status-label {
    color: #2058a7;
}

.order-status-step.active {
    background: #fff8f3;
    border-color: #f5c49a;
}

.order-status-step.active .order-status-dot {
    background: #f5821f;
    box-shadow: 0 0 0 4px rgba(245, 130, 31, 0.2);
}

.order-status-step.active .order-status-label {
    color: #e65100;
}

.order-view-page .product-rating {
    display: flex;
    gap: 6px;
    font-size: 24px;
    cursor: pointer;
}

.order-view-page .product-rating i {
    color: #f5a623;
}

.order-view-page .product-rating.disabled {
    cursor: default;
    opacity: 0.85;
}

.order-items-card .table-wrapper {
    margin-top: 0;
}

.order-items-table thead th {
    background: #f7f9fc;
    font-size: 13px;
    white-space: nowrap;
}

.order-items-table td,
.order-items-table th {
    vertical-align: middle;
}

.order-total-row td {
    background: #f9fafb;
}

@media (max-width: 767px) {
    .order-view-page .order-view-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .order-back-btn {
        width: 100%;
        justify-content: center;
    }
    .order-status-step {
        flex: 1 1 100%;
        display: flex;
        align-items: center;
        gap: 10px;
        text-align: left;
    }
    .order-status-dot {
        margin: 0;
        flex-shrink: 0;
    }
}

.img-block{
    border-radius: 100px;
    border: 1px solid var(--secondary);
    width: 14%;
    display: block;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.img-block img{
    display: block;
    width: 100%;
    transition: opacity 0.3s ease;
}

.img-block:hover img{
    opacity: 0.3; /* fade effect */
}

/* Pencil icon */
.edit-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    color: #000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.img-block:hover .edit-icon {
    opacity: 1;
}


.profile-admin {
    display: block;
    width: 250px;
    padding: 15px;
    border: 1px solid #ccc;
    position: relative;
    border-radius: 6px;
	margin-top: 25px;
}

/* Show edit icon on hover */
.profile-admin:hover::after {
    content: "\f4cb"; /* make sure this icon exists in your icon font */
    position: absolute;
    top: 8px;
    right: 8px;
    font-family: "bootstrap-icons" !important; /* or correct font name */
    font-weight: 900;
    font-size: 18px;
    color: #333;
    cursor: pointer;
}

.profile-btn{
	display: block;
	width: 50%;
}

.profile-btn #submitBtn{
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 400;
    padding: 6px 28px;
    margin-right: 10px;
    color: #FFF;
}

.profile-btn p{
	margin: 20px 0 0px;
	font-size: 20px;
	
}

/* Order status badges */
.order-status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.status-pending   { background: #f3f4f6; color: #4b5563; }
.status-confirmed { background: #e8f5e9; color: #1b5e20; }
.status-assigned  { background: #e3f2fd; color: #0d47a1; }
.status-delivery  { background: #fff3e0; color: #e65100; }
.status-delivered { background: #e0f7fa; color: #006064; }
.status-returned  { background: #fce4ec; color: #880e4f; }
.status-refund    { background: #ede7f6; color: #4527a0; }
.status-unknown   { background: #eeeeee; color: #616161; }

.btn-view-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #2058a7;
    color: #fff !important;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-view-order:hover {
    background: #164078;
    color: #fff !important;
}

.my-orders-table td {
    vertical-align: middle;
}

.my-orders-table .order-id-cell {
    font-weight: 600;
    color: #2058a7;
}

/* End */