/**
 * Antigravity Theme Skin - Fiery Red/Orange Gradient & Glow
 * Matches the "Create Free Account ->" button design:
 *   Gradient: linear-gradient(90deg, #ff1a1a 0%, #ff5200 100%)
 *   Glow: rgba(255, 36, 0, 0.35) / rgba(255, 36, 0, 0.45)
 */

:root {
  --theme-gradient: linear-gradient(90deg, #ff1a1a 0%, #ff5200 100%);
  --theme-gradient-hover: linear-gradient(90deg, #ff0000 0%, #ff4500 100%);
  --theme-primary: #ff2515;
  --theme-primary-dark: #e01505;
  --theme-shadow: 0 6px 20px rgba(255, 36, 0, 0.35);
  --theme-shadow-hover: 0 10px 26px rgba(255, 36, 0, 0.45);
  --theme-shadow-sm: 0 4px 12px rgba(255, 36, 0, 0.25);
  --theme-glow: 0 0 14px rgba(255, 36, 0, 0.4);
}

/* ==========================================================================
   1. SIDEBAR NAVIGATION
   ========================================================================== */

/* Logo header in sidebar */
.sidebar .logo {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(255, 36, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* Base item styling */
.sidebar #sidebar_menu > li {
  margin-bottom: 4px;
}

.sidebar #sidebar_menu > li a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border-radius: 12px !important;
  position: relative;
}

.sidebar #sidebar_menu > li a .nav_icon_small i,
.sidebar #sidebar_menu > li a .nav_icon_small svg {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  stroke: currentColor;
}

/* Hover Animation on navigation links */
.sidebar #sidebar_menu > li a:hover {
  color: #ff2515 !important;
  background: rgba(255, 36, 0, 0.08) !important;
  transform: translateX(5px) !important;
  border-radius: 12px !important;
}

.sidebar #sidebar_menu > li a:hover .nav_title span {
  color: #ff2515 !important;
  font-weight: 600;
}

.sidebar #sidebar_menu > li a:hover .nav_icon_small i,
.sidebar #sidebar_menu > li a:hover .nav_icon_small svg {
  color: #ff2515 !important;
  stroke: #ff2515 !important;
  transform: scale(1.15) !important;
}

.sidebar #sidebar_menu > li a:hover.has-arrow::after {
  color: #ff2515 !important;
}

/* Active Navigation Item (Single pill matching hero button) */
.sidebar #sidebar_menu > li a.active,
.sidebar #sidebar_menu > li.mm-active > a {
  background: linear-gradient(90deg, #ff1a1a 0%, #ff5200 100%) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 20px rgba(255, 36, 0, 0.35) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sidebar #sidebar_menu > li a.active:hover,
.sidebar #sidebar_menu > li.mm-active > a:hover {
  background: linear-gradient(90deg, #ff0000 0%, #ff4500 100%) !important;
  box-shadow: 0 10px 26px rgba(255, 36, 0, 0.45) !important;
  transform: translateY(-2px) !important;
  color: #ffffff !important;
}

.sidebar #sidebar_menu > li a.active .nav_title span,
.sidebar #sidebar_menu > li.mm-active > a .nav_title span {
  color: #ffffff !important;
  font-weight: 600 !important;
}

.sidebar #sidebar_menu > li a.active .nav_icon_small i,
.sidebar #sidebar_menu > li a.active .nav_icon_small svg,
.sidebar #sidebar_menu > li.mm-active > a .nav_icon_small i,
.sidebar #sidebar_menu > li.mm-active > a .nav_icon_small svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.sidebar #sidebar_menu > li a.active.has-arrow::after,
.sidebar #sidebar_menu > li.mm-active > a.has-arrow::after {
  color: #ffffff !important;
}

/* Submenu Links */
.sidebar #sidebar_menu > li ul {
  border-radius: 0 0 12px 12px;
}

.sidebar #sidebar_menu > li ul li a {
  transition: all 0.25s ease !important;
  position: relative;
  border-radius: 8px;
}

.sidebar #sidebar_menu > li ul li a:hover {
  color: #ff2515 !important;
  padding-left: 18px !important;
  transform: translateX(4px) !important;
  background: rgba(255, 36, 0, 0.05) !important;
}

.sidebar #sidebar_menu > li ul li a.active {
  color: #ff2515 !important;
  font-weight: 600 !important;
  background: rgba(255, 36, 0, 0.08) !important;
}

.sidebar #sidebar_menu > li ul li a.active::before {
  content: "" !important;
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(90deg, #ff1a1a, #ff5200);
  box-shadow: 0 0 8px rgba(255, 36, 0, 0.7);
  display: block !important;
}

/* Mini Sidebar Overrides */
.sidebar.mini_sidebar #sidebar_menu > li:hover > a:hover,
.sidebar.mini_sidebar #sidebar_menu > li:hover > a.active,
.sidebar.mini_sidebar #sidebar_menu > li.mm-active > a:hover,
.sidebar.mini_sidebar #sidebar_menu > li.mm-active > a.active {
  background: linear-gradient(90deg, #ff1a1a 0%, #ff5200 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(255, 36, 0, 0.35) !important;
}

/* Scrollbars */
.sidebar::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff1a1a, #ff5200) !important;
  border-radius: 4px;
}


/* ==========================================================================
   2. BUTTONS & HOVER ANIMATIONS
   ========================================================================== */

/* Primary buttons (.btn_1, .btn_2, .btn-primary) */
.btn_1,
.btn_2,
.btn-primary,
.modal-footer .btn-primary,
button[type="submit"].btn-primary,
.QA_section .QA_table tbody .btn_1,
.cs_modal .modal_btn .btn_1,
.cs_modal .modal-body .btn_1 {
  background: linear-gradient(90deg, #ff1a1a 0%, #ff5200 100%) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(255, 36, 0, 0.35) !important;
  border-radius: 8px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none !important;
}

.btn_1:hover,
.btn_2:hover,
.btn-primary:hover,
.modal-footer .btn-primary:hover,
button[type="submit"].btn-primary:hover,
.QA_section .QA_table tbody .btn_1:hover,
.cs_modal .modal_btn .btn_1:hover,
.cs_modal .modal-body .btn_1:hover {
  background: linear-gradient(90deg, #ff0000 0%, #ff4500 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(255, 36, 0, 0.45) !important;
}

.btn_1:active,
.btn_2:active,
.btn-primary:active {
  transform: translateY(0) !important;
  box-shadow: 0 4px 12px rgba(255, 36, 0, 0.3) !important;
}

.btn_1:focus,
.btn_2:focus,
.btn-primary:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255, 36, 0, 0.25), 0 4px 16px rgba(255, 36, 0, 0.35) !important;
}

/* Outline Buttons */
.btn-outline-primary,
.btn-outline-info {
  color: #ff2515 !important;
  border: 1.5px solid #ff2515 !important;
  background: transparent !important;
  border-radius: 8px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-outline-primary:hover,
.btn-outline-info:hover {
  background: linear-gradient(90deg, #ff1a1a 0%, #ff5200 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 36, 0, 0.35) !important;
}

.btn-outline-primary:hover svg,
.btn-outline-info:hover svg {
  stroke: #ffffff !important;
}


/* ==========================================================================
   3. STATUS SWITCHES & TOGGLES
   ========================================================================== */

/* Table & form custom switches */
.custom-switch-indicator {
  background: #fee9e7 !important;
  border: 1px solid rgba(255, 36, 0, 0.2) !important;
  transition: .3s border-color, .3s background-color !important;
}

.custom-switch-input:checked ~ .custom-switch-indicator {
  background: linear-gradient(90deg, #ff1a1a 0%, #ff5200 100%) !important;
  box-shadow: 0 2px 8px rgba(255, 36, 0, 0.35) !important;
  border-color: transparent !important;
}

.custom-switch-input:focus ~ .custom-switch-indicator {
  box-shadow: 0 0 0 2px rgba(255, 36, 0, 0.25) !important;
  border-color: #ff2515 !important;
}

/* Header Collapsible Toggle Switch */
.switch_toggle .slider {
  border: 2px solid #ff2515 !important;
}

.switch_toggle .slider:before {
  border: none !important;
  background: linear-gradient(90deg, #ff1a1a, #ff5200) !important;
  box-shadow: 0 2px 6px rgba(255, 36, 0, 0.35) !important;
}


/* ==========================================================================
   4. TABLE ACTIONS & ICONS HOVER
   ========================================================================== */

.table a.btn-icon,
.QA_table a.btn,
.table .ajaxModal,
.QA_table .btn_icon,
.btn.btn-icon,
a.ajaxModal[title="Edit"] {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border-radius: 6px !important;
}

.table a.btn-icon:hover,
.QA_table a.btn:hover,
.table .ajaxModal:hover,
.QA_table .btn_icon:hover,
.btn.btn-icon:hover,
a.ajaxModal[title="Edit"]:hover {
  color: #ff2515 !important;
  border-color: #ff2515 !important;
  background: rgba(255, 36, 0, 0.08) !important;
  transform: translateY(-2px) scale(1.08) !important;
  box-shadow: 0 4px 12px rgba(255, 36, 0, 0.25) !important;
}

.table a.btn-icon:hover svg,
.QA_table a.btn:hover svg,
.table .ajaxModal:hover svg,
.btn.btn-icon:hover svg,
a.ajaxModal[title="Edit"]:hover svg {
  stroke: #ff2515 !important;
}

.QA_table tbody tr:hover,
.table-hover tbody tr:hover {
  background-color: rgba(255, 36, 0, 0.02) !important;
}


/* ==========================================================================
   5. PAGINATION
   ========================================================================== */

.dataTables_paginate a.current,
.dataTables_paginate a:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.page-item.active .page-link {
  background: linear-gradient(90deg, #ff1a1a 0%, #ff5200 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(255, 36, 0, 0.35) !important;
  border-radius: 6px !important;
}

.dataTables_paginate a:hover i,
.page-item.active .page-link:hover {
  color: #ffffff !important;
}

.page-link {
  color: #ff2515 !important;
  transition: all 0.2s ease !important;
}

.page-link:hover {
  color: #ff2515 !important;
  background-color: rgba(255, 36, 0, 0.08) !important;
  border-color: rgba(255, 36, 0, 0.2) !important;
}


/* ==========================================================================
   6. TABS, PILLS & INNER SIDEBARS
   ========================================================================== */

/* Nav Tabs & Nav Pills */
.nav-tabs .nav-link.active,
.nav-pills .nav-link.active {
  background: linear-gradient(90deg, #ff1a1a 0%, #ff5200 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 36, 0, 0.3) !important;
  border-radius: 8px !important;
}

.nav-tabs .nav-link:hover,
.nav-pills .nav-link:hover {
  color: #ff2515 !important;
}

/* Settings inner sidebar */
.settings .white_card .item li.active > a {
  color: #ff2515 !important;
  font-weight: 600 !important;
  border-left: 3px solid #ff2515 !important;
  padding-left: 14px !important;
}

.settings .white_card .item li:hover > a {
  color: #ff2515 !important;
  padding-left: 14px !important;
  transition: all 0.2s ease !important;
}

/* Badges */
.badge-primary {
  background: linear-gradient(90deg, #ff1a1a 0%, #ff5200 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(255, 36, 0, 0.25) !important;
}


/* ==========================================================================
   7. HEADER & PROFILE HOVER EFFECTS
   ========================================================================== */

.header_iner .profile_info .profile_info_details a:hover {
  color: #ff2515 !important;
  background: rgba(255, 36, 0, 0.08) !important;
  padding-left: 25px !important;
  transition: all 0.2s ease !important;
}

.bell_notification_clicker:hover {
  background: rgba(255, 36, 0, 0.1) !important;
  box-shadow: 0 4px 12px rgba(255, 36, 0, 0.25) !important;
  border-radius: 50%;
  transition: all 0.2s ease !important;
}

.nav-link-notify:before {
  background-color: #ff2515 !important;
}


/* ==========================================================================
   8. INPUTS & FORM CONTROLS FOCUS
   ========================================================================== */

.form-control:focus {
  border-color: #ff340e !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 36, 0, 0.15) !important;
}

.text-red, .tex-red {
  color: #ff2515 !important;
}

