/* RestoHub — Orange & Green theme overrides */

:root {
    --rh-primary: #EA580C;
    --rh-primary-dark: #C2410C;
    --rh-primary-light: #FFF7ED;
    --rh-primary-alpha: rgba(234, 88, 12, 0.12);
    --rh-secondary: #059669;
    --rh-secondary-dark: #047857;
    --rh-secondary-light: #D1FAE5;
    --rh-secondary-alpha: rgba(5, 150, 105, 0.12);
    --rh-gradient: linear-gradient(135deg, #EA580C 0%, #059669 100%);
    --rh-gradient-soft: linear-gradient(72.47deg, #EA580C 22.16%, rgba(5, 150, 105, 0.85) 76.47%);
    --rh-shadow: rgba(234, 88, 12, 0.35);
}

/* —— Buttons & actions —— */
.bg-blue-btn,
.btn-primary,
.btn-info,
.main-preloader .lds-ring div {
    background-color: var(--rh-primary) !important;
    border-color: var(--rh-primary) !important;
}

.bg-blue-btn:hover,
.bg-blue-btn:focus,
.btn-primary:hover {
    background-color: var(--rh-primary-dark) !important;
    box-shadow: 0 8px 25px -8px var(--rh-primary) !important;
}

.new-btn {
    background-color: var(--rh-primary-alpha) !important;
    color: var(--rh-primary) !important;
}

.new-btn:hover,
.new-btn:focus {
    box-shadow: 0 8px 25px -8px var(--rh-primary-alpha) !important;
}

.txt-color-primary,
a.txt-color-primary {
    color: var(--rh-primary) !important;
}

/* —— Sidebar active / menu —— */
.main-sidebar .sidebar-menu li.activated > a,
.main-sidebar2 .sidebar-menu li.activated > a {
    background: var(--rh-gradient-soft) !important;
    box-shadow: 0 4px 14px var(--rh-shadow) !important;
}

.main-sidebar .sidebar-menu li.treeview > .treeview-menu .treeMenuActive a,
.main-sidebar2 .sidebar-menu li.treeview > .treeview-menu .treeMenuActive a {
    color: var(--rh-primary-dark) !important;
}

.main-sidebar .sidebar-menu li.treeview > .treeview-menu .treeMenuActive .child-menu:after,
.main-sidebar2 .sidebar-menu li.treeview > .treeview-menu .treeMenuActive .child-menu:after {
    border-color: var(--rh-secondary) !important;
}

.menu-open .treeview-menu li:hover {
    color: var(--rh-primary) !important;
}

/* —— Pagination, tabs, selects —— */
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover {
    background-color: var(--rh-primary) !important;
    border-color: var(--rh-primary) !important;
}

.nav-tabs-custom > .nav-tabs > li.active {
    border-top-color: var(--rh-primary) !important;
}

.select2-container--default .select2-results__option[aria-selected=true],
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--rh-primary-light) !important;
    color: var(--rh-primary-dark) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--rh-primary) !important;
    border-color: var(--rh-primary) !important;
}

/* —— Forms —— */
.form-control:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--rh-primary) !important;
    box-shadow: 0 0 0 0.2rem var(--rh-primary-alpha) !important;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    accent-color: var(--rh-primary);
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before,
.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--rh-primary) !important;
    border-color: var(--rh-primary) !important;
}

/* —— Cards & stats —— */
.small-box .icon,
.info-box-icon {
    color: var(--rh-primary) !important;
}

.bg-aqua,
.label-primary,
.badge-primary {
    background-color: var(--rh-primary) !important;
}

.bg-green,
.label-success,
.badge-success {
    background-color: var(--rh-secondary) !important;
}

/* —— DataTables —— */
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after {
    color: var(--rh-primary) !important;
}

.dt-buttons .btn-secondary {
    background-color: var(--rh-secondary-alpha) !important;
    color: var(--rh-secondary-dark) !important;
}

/* —— Login page —— */
.login-card input:focus,
.card input:focus,
.pen-title + .card input:focus {
    border-left-color: var(--rh-primary) !important;
    color: var(--rh-primary) !important;
}

.login-card .btn,
.card .btn,
button.login-btn,
.pinlogin-field input:focus {
    background: var(--rh-primary) !important;
    border-color: var(--rh-primary) !important;
}

.login-card .btn:hover,
.card .btn:hover {
    background: var(--rh-primary-dark) !important;
}

.login-card .ripple,
.card .ripple {
    background: var(--rh-primary) !important;
}

.login-card .button-box .active,
.card .button-box .active {
    background: var(--rh-primary) !important;
}

.login-card .social-icons a,
.pinlogin-field {
    border-color: var(--rh-primary) !important;
    color: var(--rh-primary) !important;
}

.login-card .social-icons a:hover,
.pinlogin-field:focus {
    background-color: var(--rh-primary) !important;
    color: #fff !important;
}

#pinlogin .pinlogin-field.selected {
    background-color: var(--rh-primary-light) !important;
    color: var(--rh-primary) !important;
}

/* —— Brand fonts —— */
.irestora_font_div,
.irestora_font_div_pos {
    color: var(--rh-primary) !important;
}

/* —— Misc legacy purple (#7367f0) sweep —— */
.main-header .navbar .navbar-custom-menu .lang-dropdown .lang-dropdown-menu li:hover,
.main-header .navbar .navbar-custom-menu:last-child .c-dropdown-menu li a:hover {
    background-color: var(--rh-primary-alpha) !important;
    color: var(--rh-primary) !important;
}

.offcanvas-sidebar .nav-link.active,
.sidebar-mini .sidebar-menu li > a:hover {
    color: var(--rh-primary) !important;
}

.swal-button--confirm {
    background-color: var(--rh-primary) !important;
}

.badge-light-primary {
  background-color: var(--rh-primary-alpha) !important;
  color: var(--rh-primary) !important;
}

/* Login page — override login_new.css purple */
.pen-title + .receipt .login,
.container .card .btn,
.container .card input.button,
.container .login100-form-btn,
.pinlogin-field,
#pinlogin .pinlogin-field.selected,
.login100-form-btn,
a.btn-login,
button[type="submit"].btn {
    background: var(--rh-primary) !important;
    border-color: var(--rh-primary) !important;
}

.container .card input:focus,
.container .group input:focus {
    border-left-color: var(--rh-primary) !important;
    color: var(--rh-primary) !important;
}

.container .card .button-box .active,
.login-type-btn.active {
    background: var(--rh-primary) !important;
}

.container .social-icons a:hover,
.pinlogin-field:hover {
    background-color: var(--rh-primary) !important;
    color: #fff !important;
}

#pinlogin .pinlogin-field.selected,
.pin-field-highlight {
    background-color: var(--rh-primary-light) !important;
    color: var(--rh-primary) !important;
    border-color: var(--rh-primary) !important;
}

/* إخفاء تحديث النظام وإلغاء الترخيص وروابط CodeCanyon */
li[data-access="update-60"],
li[data-access="uninstall-62"],
a[href*="codecanyon.net"],
a[href*="Update/index"],
a[href*="Update/UninstallLicense"] {
    display: none !important;
}
