/* ========================================================== */
/* FLAREVIX RADIANT LUXURY BRAND DESIGN SYSTEM (flarevix.com) */
/* Specially Crafted for FlareRent PropTech SaaS Platform    */
/* ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
  --fx-bg: #05050A;
  --fx-bg-alt: #0A0A14;
  --fx-surface: #101018;
  --fx-surface-alt: #171722;
  --fx-border: #26263A;
  --fx-border-strong: #3A3A55;
  --fx-fg: #F4F4F8;
  --fx-muted: #9CA3AF;
  --fx-faint: #62627A;
  
  --fx-flare1: #FF7A18;      /* Ignition Orange */
  --fx-flare2: #FF2E63;      /* Mid-Burn Pink */
  --fx-flare3: #8B5CF6;      /* Spectrum Violet */
  --fx-cyan: #22D3EE;        /* Electric Cyan */
  --fx-green: #22C55E;       /* Status Live Green */
  --fx-yellow: #FFD23F;      /* Electric Gold */
  
  --fx-grad: linear-gradient(135deg, #FF7A18 0%, #FF2E63 100%);
  --fx-grad-hover: linear-gradient(135deg, #E05D00 0%, #E02050 100%);
  --fx-text-grad: linear-gradient(90deg, #FF7A18 0%, #FF2E63 50%, #8B5CF6 100%);

  /* Overwrite App CSS Variables */
  --primary-color: #FF7A18 !important;
  --theme-bg: #F8FAFC !important;
  --border-color: #26263A !important;
}

/* 1. Typography Standard */
body, h1, h2, h3, h4, h5, h6, .title, .subtitle, p, span, a, label, 
input, select, textarea, button, .ot-btn, .table, th, td, 
.sidebar-menu, .nav-link, .modal-title, .card-title, .breadcrumb-item {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif !important;
}

/* 2. Scrollbar Containment */
::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
* { scrollbar-width: none !important; }

/* 3. Luxury Sidebar Architecture (Flarevix Radiant Dark) */
.sidebar, #sidebar {
  background: #05050A !important;
  border-right: 1px solid #26263A !important;
  border-left: 1px solid #26263A !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4) !important;
}

.sidebar-header {
  background: #05050A !important;
  border-bottom: 1px solid #26263A !important;
  padding: 16px 20px !important;
}

.sidebar .sidebar-logo img.full-logo {
  max-height: 42px !important;
  width: auto !important;
  filter: drop-shadow(0 2px 8px rgba(255, 122, 24, 0.25)) !important;
}

.sidebar-dropdown-menu .sidebar-menu-item a.parent-item-content {
  color: #9CA3AF !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  margin: 3px 12px !important;
  padding: 10px 14px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sidebar-dropdown-menu .sidebar-menu-item a.parent-item-content:hover {
  color: #FF7A18 !important;
  background: rgba(255, 122, 24, 0.08) !important;
  transform: translateX(-3px);
}

.sidebar-dropdown-menu .sidebar-menu-item.mm-active > a.parent-item-content,
.sidebar-dropdown-menu .sidebar-menu-item.active > a.parent-item-content,
.sidebar-dropdown-menu .sidebar-menu-item a.parent-item-content.active {
  background: linear-gradient(90deg, rgba(255, 122, 24, 0.18), rgba(255, 46, 99, 0.05)) !important;
  color: #FF7A18 !important;
  border-right: 4px solid #FF7A18 !important;
  font-weight: 700 !important;
}

.sidebar-dropdown-menu .sidebar-menu-item a i,
.sidebar-dropdown-menu .sidebar-menu-item a svg {
  color: #FF7A18 !important;
  font-size: 18px !important;
}

/* 4. Top Header Navigation */
.header, header.header {
  background: #FFFFFF !important;
  border-bottom: 1px solid #E2E8F0 !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04) !important;
}

.header-search .ot-input {
  border: 1px solid #E2E8F0 !important;
  border-radius: 10px !important;
  background: #F8FAFC !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
}

.header-search .ot-input:focus {
  border-color: #FF7A18 !important;
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.15) !important;
  background: #FFFFFF !important;
}

/* 5. Primary Radiant Buttons */
.btn-primary, .ot-btn-primary, button[type="submit"].btn-primary,
.btn-theme, a.ot-btn-primary, .btn-style-one, .primary-btn {
  background: linear-gradient(135deg, #FF7A18 0%, #FF2E63 100%) !important;
  border: none !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  padding: 9px 20px !important;
  box-shadow: 0 4px 15px rgba(255, 122, 24, 0.35) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

.btn-primary:hover, .ot-btn-primary:hover, button[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 22px rgba(255, 122, 24, 0.5) !important;
  opacity: 0.95 !important;
  color: #FFFFFF !important;
}

/* 6. Cards & KPI Metrics */
.ot-card, .card.summery-card {
  border: 1px solid #E2E8F0 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.ot-card:hover, .card.summery-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08) !important;
}

.card-icon.icon-circle-1,
.card-icon.icon-circle-2,
.card-icon.icon-circle-3,
.card-icon.icon-circle-4 {
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.12) 0%, rgba(255, 46, 99, 0.08) 100%) !important;
  color: #FF7A18 !important;
  border: 1px solid rgba(255, 122, 24, 0.2) !important;
}

.card-icon i {
  color: #FF7A18 !important;
}

.card-badge.up {
  background: rgba(34, 197, 94, 0.12) !important;
  color: #16A34A !important;
  border-radius: 20px !important;
  padding: 3px 10px !important;
  font-weight: 700 !important;
}

.card-badge.down {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #DC2626 !important;
  border-radius: 20px !important;
  padding: 3px 10px !important;
  font-weight: 700 !important;
}

/* 7. Tables & Grids */
.table thead th {
  background: #101018 !important;
  color: #F4F4F8 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  border-bottom: 2px solid #26263A !important;
  padding: 14px 16px !important;
}

.table tbody tr {
  transition: background-color 0.2s ease !important;
}

.table tbody tr:hover {
  background-color: rgba(255, 122, 24, 0.03) !important;
}

/* 8. Auth Pages (Login / Register) */
.auth-page {
  background: linear-gradient(135deg, #05050A 0%, #101018 50%, #171722 100%) !important;
}

.form-wrapper {
  border-radius: 20px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 122, 24, 0.15) !important;
}

.form-heading .title {
  color: #0F172A !important;
  font-weight: 800 !important;
}

/* 9. Luminous Click Ripple (For Authentic 60fps Recording) */
.flarevix-click-ripple {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  animation: flarevixShockwave 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

@keyframes flarevixShockwave {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
    box-shadow: 0 0 25px rgba(255, 122, 24, 0.9), inset 0 0 15px rgba(255, 46, 99, 0.8);
  }
  100% {
    width: 120px;
    height: 120px;
    opacity: 0;
    box-shadow: 0 0 45px rgba(255, 122, 24, 0), inset 0 0 25px rgba(255, 46, 99, 0);
  }
}

/* ============================================================== */
/* FLAREVIX COMPLETE PURPLE ELIMINATION & RADIANT OVERRIDES      */
/* ============================================================== */

/* 1. Complete Suppression of PHP DebugBar */
.phpdebugbar, #phpdebugbar, div[class*="phpdebugbar"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}

/* 2. Global Canvas Background */
body, .page-content, .main-content, .default-theme {
  background-color: #F8FAFC !important;
}

/* 3. Dropdowns & Period Filter Buttons */
.dropdown-toggle.btn-outline-primary,
.dropdown-toggle.btn-primary,
.btn-outline-primary,
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:hover,
.apexcharts-toolbar {
  background: linear-gradient(135deg, #FF7A18 0%, #FF2E63 100%) !important;
  border-color: #FF7A18 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(255, 122, 24, 0.25) !important;
}

.dropdown-toggle.btn-outline-primary:hover,
.dropdown-toggle.btn-primary:hover {
  background: linear-gradient(135deg, #E05D00 0%, #D81B4B 100%) !important;
  color: #FFFFFF !important;
}

/* 4. Search Button in Header */
.header-search button,
.search-icon i,
.search-btn,
.search-box button {
  background: #FF7A18 !important;
  color: #FFFFFF !important;
}

.header-search .ot-input:focus {
  border-color: #FF7A18 !important;
}

/* 5. Login Submit & Role Demo Buttons */
button[type="submit"],
.btn-primary,
.ot-btn-primary,
.submit-btn,
.login-btn,
.auth-form button[type="submit"] {
  background: linear-gradient(135deg, #FF7A18 0%, #FF2E63 100%) !important;
  border: none !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 18px rgba(255, 122, 24, 0.4) !important;
}

button[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(255, 122, 24, 0.55) !important;
}

.demo-account-btn,
.demo-accounts button,
.form-container .btn-outline-primary,
.btn-outline-secondary:hover {
  border-color: #FF7A18 !important;
  color: #FF7A18 !important;
}

.demo-account-btn.active,
.demo-accounts button:hover,
.btn-outline-primary:hover {
  background: #FF7A18 !important;
  color: #FFFFFF !important;
  border-color: #FF7A18 !important;
}

/* 6. Fix Form Logo Sizing */
.form-logo img {
  max-height: 52px !important;
  width: auto !important;
  filter: drop-shadow(0 4px 14px rgba(255, 122, 24, 0.2)) !important;
}

.sidebar .sidebar-logo img.full-logo {
  max-height: 44px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* 7. Active Navigation & Icon Colors */
.sidebar-dropdown-menu .sidebar-menu-item.mm-active > a.parent-item-content,
.sidebar-dropdown-menu .sidebar-menu-item.active > a.parent-item-content,
.sidebar-dropdown-menu .sidebar-menu-item a.parent-item-content.active {
  background: linear-gradient(90deg, rgba(255, 122, 24, 0.2), rgba(255, 46, 99, 0.05)) !important;
  color: #FF7A18 !important;
  border-right: 4px solid #FF7A18 !important;
}

.sidebar-dropdown-menu .sidebar-menu-item a.parent-item-content:hover {
  color: #FF7A18 !important;
}

.sidebar-dropdown-menu .sidebar-menu-item a i,
.sidebar-dropdown-menu .sidebar-menu-item a svg {
  color: #FF7A18 !important;
}

/* 8. KPI Card Icons */
.card-icon.icon-circle-1 i,
.card-icon.icon-circle-2 i,
.card-icon.icon-circle-3 i,
.card-icon.icon-circle-4 i {
  color: #FF7A18 !important;
}

.icon-circle-1, .icon-circle-2, .icon-circle-3, .icon-circle-4 {
  background: rgba(255, 122, 24, 0.12) !important;
  border: 1px solid rgba(255, 122, 24, 0.25) !important;
}


/* Chart dropdowns & periods */
.btn-purple, .dropdown-toggle.btn-purple, [data-bs-toggle="dropdown"].btn-purple {
    background: #171722 !important;
    border: 1px solid #3A3A55 !important;
    color: #F4F4F8 !important;
    border-radius: 8px !important;
}
.btn-purple:hover, .dropdown-toggle.btn-purple:hover {
    background: #26263A !important;
    border-color: #FF7A18 !important;
}
.dropdown-menu {
    background: #101018 !important;
    border: 1px solid #26263A !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7) !important;
}
.dropdown-item {
    color: #F4F4F8 !important;
}
.dropdown-item:hover {
    background: rgba(255,122,24,0.15) !important;
    color: #FF7A18 !important;
}
/* Table enhancements */
.table thead th {
    background: #101018 !important;
    color: #FF7A18 !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #26263A !important;
}
.table tbody td {
    vertical-align: middle !important;
    border-color: #26263A !important;
}


/* Flarevix Radiant Theme Overrides */
.Categories_togler {
    background: #05050A !important;
    border: 1px solid #26263A !important;
    color: #F4F4F8 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}
.Categories_togler:hover {
    border-color: #FF7A18 !important;
    color: #FF7A18 !important;
}
.o_land_primary_btn, a.o_land_primary_btn {
    background: linear-gradient(135deg, #FF7A18 0%, #FF2E63 100%) !important;
    border: none !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(255, 122, 24, 0.35) !important;
}
.o_land_primary_btn:hover, a.o_land_primary_btn:hover {
    background: linear-gradient(135deg, #FF2E63 0%, #FF7A18 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 20px rgba(255, 122, 24, 0.5) !important;
}
.title_link {
    color: #FF7A18 !important;
}
.title_link .title_icon {
    background: rgba(255, 122, 24, 0.12) !important;
    color: #FF7A18 !important;
}
.search_input_btn {
    color: #FF7A18 !important;
}


/* ========================================================== */
/* STRICT RTL ENGINE (Mandatory Flarevix Production Standard) */
/* ========================================================== */
html, html[lang="ar"], body, body.rtl {
  direction: rtl !important;
  text-align: right !important;
}

/* Frontend Header RTL Alignment */
.header__wrapper {
  direction: rtl !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.header__left {
  order: 1 !important;
  margin-right: 0 !important;
  margin-left: 20px !important;
}

.header_middle {
  order: 2 !important;
  flex: 1 !important;
  max-width: 600px !important;
  margin: 0 20px !important;
}

.header_top_area_right {
  order: 3 !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

.header_search_field {
  direction: rtl !important;
}

.header_search_field input.form-control {
  text-align: right !important;
  border-radius: 0 8px 8px 0 !important;
}

.header_search_field .input-group-prepend button {
  border-radius: 8px 0 0 8px !important;
}

/* Secondary Shop Header RTL */
.shop_header_wrapper {
  direction: rtl !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.shop_header_wrapper .menu_logo {
  order: 1 !important;
}

.shop_header_wrapper .category_menu {
  order: 2 !important;
  margin-right: 0 !important;
  margin-left: 20px !important;
}

.shop_header_wrapper .main_menu {
  order: 3 !important;
  margin-right: 0 !important;
  margin-left: auto !important;
}

.shop_header_wrapper .main_header_media {
  order: 4 !important;
  margin-left: 0 !important;
}

.main_menu nav ul {
  direction: rtl !important;
  display: flex !important;
  flex-direction: row !important;
  padding: 0 !important;
  margin: 0 !important;
}

.main_menu nav ul li {
  margin-left: 24px !important;
  margin-right: 0 !important;
}

/* Top bar RTL */
.header_top_area_inner {
  direction: rtl !important;
}

.header__top__left {
  float: right !important;
}

.header__top__right {
  float: left !important;
}

/* Hero Banner RTL */
.home_banner .banner__text {
  text-align: right !important;
  direction: rtl !important;
}

.home_banner .offset-xl-1 {
  margin-right: 8.33333333% !important;
  margin-left: 0 !important;
}

/* Section titles RTL */
.section__title {
  direction: rtl !important;
  text-align: right !important;
}

.section__title .title_link {
  margin-right: auto !important;
  margin-left: 0 !important;
}

.title_link .title_icon i {
  transform: scaleX(-1) !important;
}

/* Property cards RTL */
.custom_product_card, .single_product {
  direction: rtl !important;
  text-align: right !important;
}

.product_content {
  text-align: right !important;
  direction: rtl !important;
}

.product_content .meta_info {
  direction: rtl !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 12px !important;
}

/* Footer RTL */
.home_three_footer {
  direction: rtl !important;
  text-align: right !important;
}

.home_three_footer .footer_widget {
  text-align: right !important;
}

.home_three_footer .footer_links {
  padding-right: 0 !important;
}

.copy_right_text {
  direction: rtl !important;
  justify-content: space-between !important;
}

.copy_right_text .footer_list_links {
  margin-right: auto !important;
  margin-left: 0 !important;
}

/* Backend Table & Cards RTL */
.table, .ot-table-bg {
  direction: rtl !important;
  text-align: right !important;
}

.table th, .table td {
  text-align: right !important;
}

.table td.serial, .table th.serial {
  text-align: center !important;
}

.page-header {
  direction: rtl !important;
  text-align: right !important;
}

.breadcrumb {
  direction: rtl !important;
  padding: 0 !important;
}

.breadcrumb-item + .breadcrumb-item::before {
  float: right !important;
  padding-left: 0.5rem !important;
  padding-right: 0 !important;
  transform: scaleX(-1) !important;
}

/* Auth Cards RTL */
.auth-content-body, .auth-card {
  direction: rtl !important;
  text-align: right !important;
}

.form-label, label {
  text-align: right !important;
  display: block !important;
  width: 100% !important;
}

.input-check-radio {
  direction: rtl !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.form-check-input {
  float: right !important;
  margin-left: 8px !important;
  margin-right: 0 !important;
}

/* Sidebar on Right */
body.rtl #sidebar, body.rtl .sidebar {
  right: 0 !important;
  left: auto !important;
}

body.rtl .main-content {
  margin-right: 280px !important;
  margin-left: 0 !important;
}

@media (max-width: 991px) {
  body.rtl .main-content {
    margin-right: 0 !important;
  }
}


/* Perfect RTL Hero Banner Mirroring */
html[dir="rtl"] .home_banner .banner_single {
  transform: scaleX(-1) !important;
}
html[dir="rtl"] .home_banner .banner_single .container {
  transform: scaleX(-1) !important;
  direction: rtl !important;
}
html[dir="rtl"] .home_banner .banner__text {
  text-align: right !important;
  direction: rtl !important;
  max-width: 580px !important;
}
html[dir="rtl"] .home_banner .banner__text h3 {
  text-align: right !important;
  direction: rtl !important;
  font-family: Cairo, sans-serif !important;
  font-weight: 800 !important;
}
html[dir="rtl"] .home_banner .banner__text span {
  text-align: right !important;
  direction: rtl !important;
  font-family: Cairo, sans-serif !important;
  font-weight: 700 !important;
  color: #FF7A18 !important;
}
