/*
 * YallaGroup RTL Overrides (Cleaned for v5.5.2)
 * ==============================================
 * v5.5.2 has native RTL support via bootstrap.rtl.min.css + app-rtl.min.css
 *
 * This file ONLY contains:
 * 1. Cairo font for Arabic
 * 2. Module/page-specific RTL fixes NOT covered by v5.5.2
 * 3. Custom color utility classes
 *
 * Removed: All theme layout RTL (header, sidebar, footer, navbar, content margins)
 * — now handled by v5.5.2's native RTL support
 */

@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;600;700;900&display=swap");

/* --- Arabic Font --- */
.rtl {
  font-family: "Cairo", sans-serif;
  text-align: right;
}

body.rtl {
  direction: rtl;
  font-family: "Cairo", sans-serif;
}

/* --- Custom Color Utilities (not RTL-specific but lives here historically) --- */
.bg-bro {
  background: #c7a658 !important;
}
.bg-ora {
  background: #e27e34 !important;
}
.bg-bna {
  background: #8b00ac !important;
}

/* --- Form RTL Fixes (module forms) --- */
.form-horizontal .checkbox,
.form-horizontal .radio {
  display: inline-block;
  margin-right: 20px;
}

body.rtl .checkbox label,
body.rtl .radio label {
  padding-right: 20px;
  padding-left: inherit;
}

body.rtl .checkbox input[type="checkbox"],
body.rtl .checkbox-inline input[type="checkbox"],
body.rtl .radio input[type="radio"],
body.rtl .radio-inline input[type="radio"] {
  margin-right: -20px;
  margin-left: 0;
}

/* --- Module Content RTL --- */
body.rtl .content form {
  direction: rtl;
}

body.rtl table.table-striped th {
  text-align: center;
}

body.rtl .table > tbody > tr > td,
body.rtl .table > tbody > tr > th,
body.rtl .table > tfoot > tr > td,
body.rtl .table > tfoot > tr > th,
body.rtl .table > thead > tr > td,
body.rtl .table > thead > tr > th {
  text-align: right;
}

body.rtl .breadcrumb > li + li::before {
  color: #888;
}

body.rtl .close {
  float: left;
}

/* --- Widget RTL --- */
body.rtl .widget.widget-stats .stats-link i {
  float: left;
}

body.rtl .widget .stats-icon {
  left: 0;
  right: inherit;
  margin-left: 5px;
}

body.rtl .widget .stats-link i:before {
  content: "\f190";
}

/* --- Login Page RTL --- */
body.rtl .login.login-with-news-feed .login-header .icon {
  top: 90px;
  left: 10px;
}

body.rtl .login .login-header .icon {
  right: initial;
}

/* --- Navbar Dropdown RTL (module dropdowns) --- */
body.rtl .navbar-nav > li > .dropdown-menu {
  text-align: right;
}

/* --- Gritter Notification RTL --- */
body.rtl #gritter-notice-wrapper {
  left: 20px;
  right: inherit;
}
body.rtl #gritter-notice-wrapper .gritter-item .gritter-close {
  left: 15px !important;
  right: inherit !important;
}
body.rtl #gritter-notice-wrapper .gritter-item .gritter-image {
  float: right;
  margin: 2px 0 0 10px !important;
}
body.rtl #gritter-notice-wrapper .gritter-item .gritter-with-image {
  float: left;
}

/* --- LTR Font Override --- */
.rtl li .thumb {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

/* --- Footer Link --- */
body .footer a {
  font-size: 16px;
  font-weight: bold;
}

/* --- Mobile Responsive --- */
@media (max-width: 767px) {
  .navbar-form .form-control,
  .navbar-form .form-control:focus {
    margin: 0;
    width: 180px !important;
    -webkit-animation: none !important;
    animation: none !important;
  }
}

@media (max-width: 767px) {
  .app-content {
    padding: 5px;
  }
  .p-25 {
    padding: 10px !important;
  }
}
