/* 🔥 GLOBAL RESET */
body {
  background: #0f0f0f;
  color: #fff;
  font-family: Arial, sans-serif;
}

/* 🔥 NEW ORDER ONLY */
.custom-neworder .well {
  background: #111;
  border: none;
  border-radius: 15px;
  padding: 20px;
}

/* INPUTS */
.custom-neworder .form-control {
  background: #000;
  border: 1px solid #333;
  color: #fff;
  border-radius: 10px;
  padding: 10px;
}

/* LABELS */
.custom-neworder label {
  color: #ffcc00;
  font-weight: bold;
}

/* BUTTON */
.custom-neworder .btn-primary {
  background: #ffcc00;
  color: #000;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  width: 100%;
  padding: 12px;
}

/* BUTTON HOVER */
.custom-neworder .btn-primary:hover {
  opacity: 0.9;
}

/* DESCRIPTION BOX */
.custom-neworder #service_description .panel-body {
  background: #1a1a1a;
  border-radius: 10px;
  color: #fff;
  padding: 10px;
}

/* ALERTS */
.custom-neworder .alert {
  border-radius: 10px;
}

/* SPACING */
.custom-neworder .form-group {
  margin-bottom: 15px;
}

/* HOVER EFFECT */
.custom-neworder .well:hover {
  box-shadow: 0 0 20px rgba(255,204,0,0.2);
  transition: 0.3s;
}

/* MOBILE */
@media (max-width: 768px) {
  .custom-neworder .well {
    padding: 15px;
  }
}
/* 🔥 NAVBAR DESIGN */
.custom-navbar {
  background: #000;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* LOGO */
.custom-navbar .navbar-brand {
  color: #ffcc00 !important;
  font-weight: bold;
}

/* LINKS */
.custom-navbar .navbar-nav > li > a {
  color: #fff !important;
  transition: 0.3s;
}

/* HOVER */
.custom-navbar .navbar-nav > li > a:hover {
  color: #ffcc00 !important;
}

/* ACTIVE */
.custom-navbar .navbar-nav > .active > a {
  background: #ffcc00 !important;
  color: #000 !important;
  border-radius: 6px;
}

/* BALANCE BADGE */
.custom-navbar .badge {
  background: #ffcc00;
  color: #000;
}
.custom-neworder .container {
  max-width: 100%;
}

.custom-neworder .well {
  max-width: 900px;
  margin: auto;
}
/* FIX TEXT INVISIBLE */
.well,
.panel,
.card {
  color: #000 !important;
}
.custom-neworder .row {
  display: flex;
  flex-wrap: wrap;
}

.custom-neworder .col-md-6 {
  padding: 10px;
}

@media (max-width: 768px) {
  .custom-neworder .col-md-6 {
    width: 100%;
  }
}
.custom-neworder .row {
  display: flex;
  flex-wrap: wrap;
}

.custom-neworder .col-md-6 {
  width: 50%;
}

@media (max-width: 768px) {
  .custom-neworder .col-md-6 {
    width: 100%;
  }
}
.row {
  display: flex;
  flex-wrap: wrap;
}

.col-md-6 {
  width: 50%;
}

@media (max-width: 768px) {
  .col-md-6 {
    width: 100%;
  }
}
.custom-neworder .row {
  display: flex;
  flex-wrap: wrap;
}

.custom-neworder .col-md-6 {
  width: 50%;
  padding: 10px;
}

@media (max-width: 768px) {
  .custom-neworder .col-md-6 {
    width: 100%;
  }
}
/* FIX MOBILE WIDTH */
@media (max-width: 768px) {

  .custom-neworder .row {
    display: block !important;
  }

  .custom-neworder .col-md-6 {
    width: 100% !important;
    max-width: 100% !important;
  }

  .custom-neworder .well {
    width: 100% !important;
    max-width: 100% !important;
  }

  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

}
/* CARD STYLE */
.custom-neworder .well {
  background: #111;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  border: 1px solid #222;
}

/* DESCRIPTION HEADER */
.custom-neworder .well h4 {
  background: linear-gradient(90deg, #ffcc00, #ff9900);
  padding: 10px 15px;
  border-radius: 10px;
  color: #000;
  font-weight: bold;
  margin-bottom: 15px;
}

/* DESCRIPTION TEXT */
#service_description {
  line-height: 1.8;
  font-size: 14px;
  color: #ddd;
}

/* INPUT UPGRADE */
.custom-neworder .form-control {
  height: 45px;
  font-size: 14px;
}

/* BUTTON */
.custom-neworder .btn-primary {
  font-size: 16px;
  letter-spacing: 1px;
}
#service_description {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 15px;
  color: #fff;
  line-height: 1.8;
  font-size: 14px;
}

.custom-neworder .well h4 {
  background: #ffcc00;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 10px;
}
.custom-neworder .well h4 {
  background: #ffcc00;
  color: #000;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 15px;
}
/* ✨ DESCRIPTION ANIMATION */
#service_description {
  animation: fadeInUp 0.5s ease;
  transition: 0.3s;
}

/* ✨ HOVER EFFECT */
#service_description:hover {
  box-shadow: 0 0 25px rgba(255,204,0,0.25);
  transform: translateY(-3px);
}

/* ✨ ANIMATION */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.custom-top-cards {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.card-box {
  flex: 1;
  background: #111;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #222;
  transition: 0.3s;
}

.card-box strong {
  display: block;
  color: #ffcc00;
  font-size: 16px;
}

.card-box span {
  color: #aaa;
  font-size: 12px;
}

.card-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(255,204,0,0.2);
}

@media (max-width: 768px) {
  .custom-top-cards {
    flex-direction: column;
  }
}
.custom-category-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.cat-btn {
  background: #111;
  border: 1px solid #222;
  color: #fff;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 13px;
}

.cat-btn:hover {
  background: #ffcc00;
  color: #000;
}

.cat-btn.active {
  background: #ffcc00;
  color: #000;
}

@media (max-width: 768px) {
  .cat-btn {
    flex: 1 1 45%;
    text-align: center;
  }
}
.custom-neworder .cat-buttons {
  display: flex;
  justify-content: center; /* هذا هو المهم */
  flex-wrap: wrap;
  gap: 10px;
}
.custom-category-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.custom-neworder .cat-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 900px;
  margin: auto;
}
#service_description .panel-body {
  max-height: 400px;   /* تقدر تبدلها */
  overflow-y: auto;
}
/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background: #0b0b0b;
  border-right: 1px solid #222;
  padding: 15px;
  transition: 0.3s;
  z-index: 999;
}

.sidebar.closed {
  width: 70px;
}

/* HEADER */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  margin-bottom: 20px;
}

.sidebar-header button {
  background: #ffcc00;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
}

/* MENU */
.sidebar-menu {
  list-style: none;
  padding: 0;
}

.sidebar-menu li {
  margin: 10px 0;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  color: #ccc;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  transition: 0.2s;
}

.sidebar-menu a:hover {
  background: #ffcc00;
  color: #000;
}

.menu-text {
  margin-left: 10px;
}

/* MAIN CONTENT */
.main-content {
  margin-left: 250px;
  transition: 0.3s;
  padding: 15px;
}

.sidebar.closed + .main-content {
  margin-left: 70px;
}

/* RESPONSIVE */
@media(max-width: 768px) {
  .sidebar {
    left: -250px;
  }

  .sidebar.open {
    left: 0;
  }

  .main-content {
    margin-left: 0;
  }
}
@media(max-width: 768px) {
  .navbar {
    display: none !important;
  }
}
/* MOBILE BUTTON */
.mobile-toggle {
  position: fixed;
  top: 15px;
  right: 15px;
  background: #ffcc00;
  color: #000;
  border: none;
  padding: 10px 14px;
  font-size: 18px;
  border-radius: 8px;
  z-index: 9999;
  display: none;
}

/* يظهر غير فالهاتف */
@media(max-width: 768px) {
  .mobile-toggle {
    display: block !important;
  }
}

/* ظل جميل */
.mobile-toggle {
  box-shadow: 0 0 10px rgba(255,204,0,0.5);
}
/* 🔥 HIDE ONLY TOP MENU LINKS */

.navbar-left-block {
  display: none !important;
}
.top-welcome-bar {
  margin-left: 250px;
  width: calc(100% - 250px);
  background: linear-gradient(90deg, #111, #000);
  color: #ffcc00;
  text-align: center;
  padding: 12px;
  font-weight: bold;
  border-bottom: 1px solid #222;
  letter-spacing: 0.5px;
}
/* ✨ BALANCE STYLE */
.navbar-right .badge,
.navbar-right-block .badge {
  background: linear-gradient(90deg, #ffcc00, #ff9900);
  color: #000;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.6);
  transition: 0.3s;
}

/* ✨ HOVER BALANCE */
.navbar-right .badge:hover {
  box-shadow: 0 0 20px rgba(255, 204, 0, 1);
  transform: scale(1.05);
}

/* ✨ ACCOUNT + LOGOUT */
.navbar-right a {
  color: #fff !important;
  padding: 6px 12px;
  border-radius: 8px;
  transition: 0.3s;
}

/* ✨ HOVER EFFECT */
.navbar-right a:hover {
  background: rgba(255, 204, 0, 0.1);
  color: #ffcc00 !important;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

/* ✨ ACTIVE STYLE */
.navbar-right a:active {
  transform: scale(0.95);
}

/* ✨ NAVBAR RIGHT BLOCK */
.navbar-right-block {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* 📱 MOBILE FIX كامل */
@media (max-width: 768px) {

  /* إصلاح الشريط العلوي */
  .top-welcome-bar {
    font-size: 12px;
    padding: 8px 10px;
    text-align: center;
    line-height: 1.4;
  }

  /* إصلاح الزر ☰ */
  .sidebar-header button {
    top: 10px;
    right: 10px;
    left: auto;
    z-index: 9999;
  }

  /* إصلاح البلوكات */
  .dashboard .card,
  .main-content .card {
    margin-bottom: 10px;
  }

  /* إصلاح الإحصائيات (username / balance...) */
  .stats-box,
  .dashboard-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* الأزرار (Everything / Instagram...) */
  .category-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* إصلاح الفورم */
  .custom-neworder .well {
    padding: 15px;
  }

  /* إصلاح الوصف */
  .description-box {
    margin-top: 10px;
  }

  /* يمنع أي overflow */
  body, html {
    overflow-x: hidden;
  }

}
/* 🔥 FIX نهائي للموبايل */
@media (max-width: 768px) {

  /* يخلي الشريط ديال welcome عادي وما يركبش */
  .top-welcome-bar {
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10px !important;
    text-align: center !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    background: #000 !important;
    z-index: 1 !important;
  }

  /* يمنع أي عنصر يطلع فوق */
  .top-welcome-bar,
  .main-content,
  .dashboard {
    transform: none !important;
  }

  /* زر ☰ */
  .sidebar-header button {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
  }

  /* يخلي الكونتينر منظم */
  .container,
  .container-fluid {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* يمنع overflow لي كيخرب */
  body {
    overflow-x: hidden !important;
  }

}
/* 🔥 TABLE كامل */
.table {
  background: #111 !important;
  border-radius: 12px;
  overflow: hidden;
  border: none !important;
}

/* 🔥 HEAD */
.table thead {
  background: #1c1c1c !important;
}

.table thead th {
  color: #fff !important;
  border: none !important;
  font-weight: bold;
}

/* 🔥 الصفوف */
.table tbody tr {
  background: #0f0f0f;
  border-bottom: 1px solid #222;
  transition: 0.3s;
}

/* 🔥 hover */
.table tbody tr:hover {
  background: #1a1a1a;
}

/* 🔥 النص */
.table td {
  color: #ccc !important;
  border: none !important;
}

/* 🔥 CATEGORY (Instagram - Followers...) */
.table tbody tr td[colspan] {
  background: linear-gradient(90deg, #6c2bd9, #8e44ff);
  color: #fff !important;
  font-weight: bold;
  text-align: center;
  border-radius: 8px;
}

/* 🔥 زر Details */
.btn.btn-primary,
.btn-details {
  background: linear-gradient(90deg, #6c2bd9, #8e44ff);
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  color: #fff;
  transition: 0.3s;
}

.btn.btn-primary:hover {
  opacity: 0.9;
}

/* 🔥 badge */
.label,
.badge {
  background: #2ecc71 !important;
  border-radius: 10px;
  font-size: 11px;
}

/* 🔥 search */
input[type="search"],
.form-control {
  background: #000 !important;
  border: 1px solid #333 !important;
  color: #fff !important;
  border-radius: 8px;
}

/* 🔥 FILTER BUTTON */
.btn-filter {
  background: linear-gradient(90deg, #6c2bd9, #8e44ff);
  border: none;
  color: #fff;
  border-radius: 10px;
}
.service-desc {
  display: none;
  background: #111;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
  color: #ccc;
  font-size: 13px;
}

.show-desc-btn {
  background: linear-gradient(90deg, #6c2bd9, #8e44ff);
  border: none;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
}
/* إصلاح الجدول فالموبايل */
@media (max-width: 768px) {

  body {
    overflow-x: hidden !important;
  }

  .container,
  .container-fluid {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
  }

  table {
    width: 100% !important;
    min-width: 0 !important;
  }

  .table > thead,
  .table > tbody,
  .table > tr,
  .table > td,
  .table > th {
    white-space: normal !important;
  }

  .service-desc {
    width: 100% !important;
    max-width: 100% !important;
    word-break: break-word;
  }

}
@media (max-width: 768px) {

  .table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }

  .table thead {
    display: none;
  }

  .table tbody tr {
    display: block;
    margin-bottom: 15px;
    background: #111;
    border-radius: 10px;
    padding: 10px;
  }

  .table tbody td {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 5px;
    border: none;
  }

  .table tbody td:before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    color: #aaa;
    margin-bottom: 3px;
  }

}
/* Dropdown container */
.select2-container--default .select2-dropdown {
  background: #111 !important;
  border: 1px solid #333 !important;
  border-radius: 12px !important;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
  padding: 5px;
}

/* Options */
.select2-results__option {
  color: #fff !important;
  padding: 10px !important;
  border-radius: 8px;
}

/* Hover */
.select2-results__option--highlighted {
  background: #333 !important;
}

/* Scroll */
.select2-results__options {
  max-height: 300px !important;
  overflow-y: auto !important;
}

/* Search input */
.select2-search__field {
  background: #000 !important;
  color: #fff !important;
  border: 1px solid #333 !important;
  border-radius: 8px;
  padding: 8px;
}
/* تصغير و تنظيم dropdown */
.dropdown-menu {
  max-height: 300px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  border-radius: 12px !important;
  background: #111 !important;
  padding: 5px !important;
}

/* العناصر */
.dropdown-menu li a {
  color: #fff !important;
  padding: 8px 10px !important;
  display: block;
  border-radius: 8px;
}

/* hover */
.dropdown-menu li a:hover {
  background: #222 !important;
}

/* scrollbar */
.dropdown-menu::-webkit-scrollbar {
  width: 6px;
}
.dropdown-menu::-webkit-scrollbar-thumb {
  background: #6a00ff;
  border-radius: 10px;
}
/* خليه يفتح لتحت */
.dropdown-menu {
  top: 100% !important;
  bottom: auto !important;
  transform: none !important;
}

/* تصغير الحجم */
.dropdown-menu {
  max-height: 250px !important;
  overflow-y: auto !important;
  min-width: 300px !important;
}

/* يمنع يكبر بزاف */
.dropdown {
  position: relative !important;
}
body .dropdown-menu {
  top: 100% !important;
  bottom: auto !important;
  max-height: 250px !important;
  overflow-y: auto !important;
}
/* FORCE dropdown لتحت */
.dropdown-menu {
  top: 100% !important;
  bottom: auto !important;
  transform: none !important;
}

/* حيّد dropup */
.dropup .dropdown-menu {
  top: 100% !important;
  bottom: auto !important;
}

/* مهم */
.bootstrap-select.dropup .dropdown-menu {
  top: 100% !important;
  bottom: auto !important;
}
.orders-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.orders-tabs .btn {
  background: #1a1a1a;
  border: 1px solid #333;
  color: #ccc;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  transition: 0.3s;
}

.orders-tabs .btn.active,
.orders-tabs .btn:hover {
  background: linear-gradient(90deg, #6c2bd9, #8e44ff);
  color: #fff;
}
.table {
  background: #111 !important;
  border-radius: 12px;
  overflow: hidden;
}

.table thead {
  background: linear-gradient(90deg, #6c2bd9, #8e44ff);
}

.table thead th {
  color: #fff !important;
  border: none;
}

.table tbody tr {
  background: #0f0f0f;
  border-bottom: 1px solid #222;
  transition: 0.3s;
}

.table tbody tr:hover {
  background: #1a1a1a;
}

.table td {
  color: #ccc !important;
  border: none;
}
.status-completed {
  background: #2ecc71;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.status-pending {
  background: #f39c12;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
}
.btn-actions {
  background: #2c2c2c;
  color: #fff;
  border-radius: 20px;
  padding: 5px 12px;
  border: none;
}

.btn-actions:hover {
  background: #6c2bd9;
}
@media (max-width: 768px) {

  .table thead {
    display: none;
  }

  .table tbody tr {
    display: block;
    margin-bottom: 15px;
    background: #111;
    border-radius: 10px;
    padding: 10px;
  }

  .table tbody td {
    display: block;
    width: 100%;
    padding: 6px 0;
  }

  .table tbody td:before {
    content: attr(data-label);
    font-weight: bold;
    color: #888;
    display: block;
    font-size: 12px;
  }

}
.table td a {
  color: #8e44ff;
  text-decoration: none;
}

.table td a:hover {
  text-decoration: underline;
}
.order-card {
  background: #111;
  border-radius: 12px;
  padding: 15px;
  border: 1px solid #222;
  margin-bottom: 15px;
}

.order-top {
  display: flex;
  justify-content: space-between;
}

.order-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.order-status.completed { background: #2ecc71; }
.order-status.pending { background: #f39c12; }

.order-body {
  margin-top: 10px;
}

.order-footer {
  margin-top: 10px;
}
.order-body {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.order-left {
  width: 60%;
}

.order-right {
  width: 40%;
  text-align: right;
  font-size: 13px;
  color: #ccc;
}

.service-name {
  font-weight: bold;
  color: #fff;
  font-size: 14px;
}
