/* Dropdown container style */
  #dropdown_for_search {
    display: none; /* Hidden by default */
    max-height: 600px; /* Maximum height */
    overflow-y: auto; /* Vertical scrolling if the dropdown is long */
    overflow-x: hidden; /* Hide horizontal scrolling */
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    margin-top: 5px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
    white-space: normal; /* Text will wrap to the next line if it's long */
    word-wrap: break-word; /* Words will break if they're too long */
  }

  /* Dropdown item style */
  .dropdown-item {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Will wrap to the next line if items don't fit */
    white-space: normal; /* Text inside dropdown will wrap */
    word-break: break-word; /* Long words will break and wrap */
  }

  /* Service badge style */
  .badge.service_id_badge {
    margin-right: 8px; /* Gap between the badge and name */
    font-size: 12px; /* Badge text size */
  }

  /* Centered "Please Wait" or loading message */
  #dropdown_for_search .text-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px; /* Correct positioning for the message */
    font-weight: bold;
  }
 
 
 


/* --- Comprehensive Responsive & UI Improvements --- */

/* Global Reset & Spacing */
body {
    overflow-x: hidden;
}
.container {
    max-width: 1200px;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .card {
        margin-bottom: 20px;
        border-radius: 8px;
    }
    h1, h2, h3 {
        font-size: 1.5rem !important;
    }
}

/* Fix Table Responsiveness */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 0;
}
.table {
    width: 100% !important;
    max-width: 100%;
}
.table th, .table td {
    white-space: nowrap;
    padding: 12px 8px !important;
}

/* Fix Contact Us & About Us images */
.text-block__description img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 10px auto;
}

/* New Order Form Improvements */
.new-order-block__form {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.form-control {
    height: auto !important;
    padding: 10px 15px !important;
    border-radius: 6px !important;
}
.btn-big-primary {
    padding: 12px 20px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    text-transform: uppercase;
}

/* Tickets & Forms mobile fix */
@media (max-width: 576px) {
    .add-funds__form, .new-order-block__form {
        padding: 15px;
    }
    .navbar-brand img {
        max-height: 40px;
    }
}

/* Header/Nav Mobile */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        padding: 20px;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    .nav-item {
        margin-bottom: 5px;
    }
}

/* Custom scrollbar for search dropdown */
#dropdown_for_search {
    z-index: 1050;
    background: #fff;
}
#dropdown_for_search::-webkit-scrollbar {
    width: 5px;
}
#dropdown_for_search::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}


/* Signup & Auth Pages Improvements */
.sign-up-center {
    padding: 40px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}
.sign-up-center .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}
.sign-up-center .card-body {
    padding: 40px;
}
@media (max-width: 576px) {
    .sign-up-center .card-body {
        padding: 25px;
    }
}
.sign-up-center .form-control {
    background: #f8f9fa;
    border: 1px solid #eee;
    margin-bottom: 5px;
}
.sign-up-center .form-control:focus {
    background: #fff;
    border-color: #007bff;
    box-shadow: none;
}
.sign-up-center .btn-big-primary {
    margin-top: 15px;
    background: #007bff;
    border: none;
    transition: all 0.3s ease;
}
.sign-up-center .btn-big-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}


/* --- Final Responsive Polishing --- */

/* Fix How It Works arrows on mobile */
@media (max-width: 991px) {
    .how-it-works-arrow-top, .how-it-works-arrow-bottom {
        display: none !important;
    }
    .how-it-works-col {
        margin-bottom: 30px;
    }
}

/* Fix Login & Home page spacing */
.login-center, .sign-up-center {
    padding: 60px 0;
}

/* Improve Table on Mobile */
.table-responsive .table {
    margin-bottom: 0;
}
.table-responsive .table th, .table-responsive .table td {
    font-size: 13px;
}

/* Fix padding issues on small screens */
.wrapper-content__body {
    padding: 15px 0;
}

/* Fix Card layouts */
.card {
    border-radius: 12px !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
}

/* Improve Navbar on Mobile */
.navbar-toggler {
    border: none;
    padding: 10px;
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* Fix Image overflow in any block */
img {
    max-width: 100%;
    height: auto;
}
