
:root {
    --header-height: 50px;
    --primary-color: #6f4e37;
    --secondary-color: #3a0ca3;
    --success-color: #2bb673;
    --warning-color: #f7b84b;
    --danger-color: #e63946;
    --body-bg: #f9f5f0;
    --card-bg: #c4a484;
    --border-color: #e9ebec;
    --text-color: #495057;
    --text-muted: #7c8a96;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --light-rgb:243,246,249;
}

html,body {
    background-color: var(--body-bg);
    font-family: Open Sans, sans-serif;
    color: var(--text-color);
    font-size: 15px;
    font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
}
#loading{
    z-index: 99999;
    width: 100%;
    height: 100%;
    line-height: 50%;
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 30vh;
    text-align: center;
    cursor:  progress;
    background: #00000099;
}
#loading img{
    padding: 0;
    width: 100px;
    height: 100px;
    border-radius: 100%;
    background: #ffffff;
    position: relative;
    border: solid 1px #286090;
}
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 1.5rem;
    box-shadow: var(--shadow-sm);
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    color: #fff;
}
.header .search-box {
    /*background-color: #f3f6f9;*/
    display: flex;
    margin-right: 20px;
}
.header .search-box input {
    border: none;
    font-size: 0.95rem;
    background: none !important;
    box-shadow: none !important;
}
.header .search-box i {
    padding: 10px;
}
.header .horizontal-nav .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.header .horizontal-nav .nav-link {
    padding: 0.4rem 1rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}
.header .horizontal-nav .nav-link:hover ,
.header .horizontal-nav .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(255,255,255,0.3);
    font-weight: 600;
}
.header .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    min-width: 200px;
}
.header .dropdown-item {
    color: var(--text-color);
    font-weight: 500;
}
.header .dropdown-item:hover, .header .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
}
.header .header-menu {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.header .header-menu .btn-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f6f9;
    color: var(--text-color);
    border: none;
    position: relative;
    border-radius: 5px;
}
.header .header-menu .btn-icon:hover {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}
.header .header-menu .btn-icon .notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--danger-color);
    color: white;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.header .header-menu .avatar {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    padding: 4px;
    cursor: pointer;
}
.main-content {
    padding: 1.5rem 2rem;
    min-height: 90vh;
}
.page-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}
.page-title-wrapper .page-title {
    margin-bottom: 0;
    color: #343a40;
}
.page-title-wrapper .breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}
.page-title-wrapper .page-actions {
    display: flex;
    gap: 0.5rem;
}
/* زر الهامبرغر للشاشات الصغيرة */
.menu-toggle {
    display: none;
    border: solid 1px #e9edf0;
    background-color: #f3f6f9;
    color: var(--text-color);
    font-size: 1.4rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0 8px;
    height: 30px;
    margin-right: 1rem;
}
.card-preloader {
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background-color:rgba(var(--light-rgb),.6);
    text-align: center;
    line-height: 120px;
}
/* مسؤول عن التجاوب */

@media (max-width: 992px) {
    .header .search-box {
        margin: 10px;
    }
    .menu-toggle {
        display: block;
    }
    .horizontal-nav {
        position: absolute;
        top: 40px;
        right: 0;
        left: 0;
        background-color: var(--card-bg);
        display: none; 
    }
    .horizontal-nav.show {
        display: block;
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid var(--border-color);
    }
    .horizontal-nav .nav-menu {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}



/* -- start POS -- */
.category-tabs .nav-link {
    background-color: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.09);
    transition: all 0.3s ease;
    margin-right: 5px;
    padding: 5px 10px;
}

.category-tabs .nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-tabs .nav-link.active {
    background-color: #6F4E37;
    color: white;
}
.product-card{
    cursor: pointer;
    border: 1px solid #e9ebec;
    transition: all 0.3s ease;
    border-radius:0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.product-card:hover {
    transform: scale(0.90);
}
.product-card .product-img {
    height: 120px;
    width: 100%;
    background-color: #dee2e6;
}
.product-card .badge{
    border-radius: 0;
    font-size: 0.8rem;
}
.badge-soft-primary {
    background-color:rgba(75,56,179,1);
}
.badge-soft-success {
    background-color: rgba(69,203,133,1);
}
.product-card .card-title{
    height: 38px;
    line-height: 1.3em;
    overflow: auto;
}
#shopCart .card{
    border-radius: 0;
    border: 1px solid #ededed;
}
#shopCart .card .card-header{
    background: none;
    border: none;
}
#shopCart .card .card-footer{
    background: none
}
#shopCart .card-body{
    min-height: 60vh;
}
#shopCart #cartTable thead{
    border-top: 1px solid #e9ebec;
    border-bottom: 1px solid #e9ebec;
}
.qtyminus,
.qtyplus,
.deleteProduct{
    cursor: pointer;
}
/* -- end POS -- */

/* Sidebar Navigation 
.main-content{
margin-left: 60px;
background: #f9f5f0;
}
.sidebar {
position: fixed;
top: 0;
bottom: 0;
min-height: 100vh;
background-color: #6F4E37;
z-index: 100;
width: 60px;
text-align: center;
}
.sidebar .logo {
width: 45px;
height: 40px;
margin: 10px auto 20px auto;
background-color: white;
border-radius: 5px;
color: #6F4E37;
font-size: 1.6rem;
font-weight: bold;
}
.sidebar .sidebar-item {
width: 100%;
padding: 10px 0;
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
color: rgba(255,255,255,0.7);
}
.sidebar .sidebar-item:hover, 
.sidebar .sidebar-item.active {
color: white;
background-color: rgba(255,255,255,0.1);
border-left: 3px solid #fff;
}
.sidebar .sidebar-item:hover span, 
.sidebar .sidebar-item.active span{
font-weight: bold;
}
.sidebar .sidebar-item i {
font-size: 1.2rem;
display: block;
}
.sidebar .sidebar-item span {
font-size: 0.8rem;
}*/

/*-------- BS modifier ----------*/

.form-control {
    border-radius: 0
}
.form-control:focus {
    box-shadow: none;
}
.btn {
    border-radius: 0;
}
/*-------- SWAL modifier ----------*/
.swal2-container{
    z-index: 9999999999999999;
}
.swal2-popup.swal2-modal{
    border-radius: 0;
    padding: 0;
    font-size: 1em;
}
.swal2-popup.swal2-modal button{
    border-radius: 0;
}
.swal2-popup.swal2-modal .swal2-header{
    margin-top: 20px
}
.swal2-popup.swal2-modal .swal2-actions{
    border-top: solid 1px #eee;
    padding: 10px;
    margin-top: 20px;
    display: block;
    text-align:right;
    width: 100%
}
.swal2-popup.swal2-modal .swal2-actions button{
    margin: 5px;
    min-width: 60px
}
#swal2-content{
    font-size: 14px
}
/*-------- BS modifier ----------*/
/*-------- LISTES ----------*/
.card-table {
    background: #fff;
    border-radius: 0;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.card-table .card-header,
.card-table .card-footer {
    padding: 1.25rem 1.5rem;
    background-color: #fff;
}
.card-table .table thead th{
    padding-top: .75rem;
    padding-bottom: .75rem;
    text-transform: uppercase;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    color: #8898aa;
    background-color: #f6f9fc;
}
.card-table .table thead td{
    color: #8898aa;
    background-color: #f6f9fc;
}
.card-table .table{
    margin-bottom: 0;
}
.card-table .table td,
.card-table .table th {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}
.table th {
    font-weight: 700;
    color: var(--text-muted);
    padding: 1rem 1.25rem;
    border-bottom-width: 1px;
    font-size: 0.95rem;
}
.table td {
    vertical-align: middle;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
}
.table .action-btn {
  width: 28px;
  height: 28px;
  transition: var(--transition);
  padding: 5px;
  border-radius: 10px;
  opacity: 0.5;
}
.table  .action-btn:hover {
  transition: var(--transition);
  opacity: 1;
}
/*-------- LISTES ----------*/