/* start of variables */
:root {
  --color: rgba(255, 0, 0, 0.76);
  --theme-color: rgb(0, 102, 255);
  --theme-primary: #3FAC09;
  /* --theme-secondary: #0B1Db6; */
  --theme-secondary: rgb(0, 102, 255);
}
/* end of variables */
@font-face {
    /* font-family: Roboto;
    src: url('../fonts/Roboto-Regular.ttf'); */
    font-family: Montserrat;
    src: url('../fonts/Montserrat-Regular.ttf');
}

html, body, .daterangepicker, select {
  /* font-family: 'Roboto', sans-serif; */
  font-family: 'Montserrat', sans-serif;
}

html, body {
  height: 100%;
  margin: 0 auto;
  padding: 0;
  overflow-x: hidden;
}

.client_content_side {
  height: 100%;
  /* overflow-y: auto; */
  margin-left: 25%; /* Same as the width of the sidenav */
}

.client_side_menu {
  height: 100%; /* Full-height: remove this if you want "auto" height */
  width: 25%; /* Set the width of the sidebar */
  position: fixed; /* Fixed Sidebar (stay in place on scroll) */
  z-index: 1; /* Stay on top */
  top: 0; /* Stay at the top */
  left: 0;
  overflow-x: hidden; /* Disable horizontal scroll */
  padding: 0;
  background-color: var(--theme-secondary);
  word-wrap: break-word;
}

.menu_btn:hover, .menu_btn:active {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid white;
}

.nav-link, .nav-link:hover, .nav-link:active,
.navbar-brand, .navbar-brand:active, .navbar-brand:hover,
.dropdown-item {
  color: #fff;
}

input[type=text],
input[type=tel],
input[type=password],
input[type=number],
input[type=file],
.form-control,
.custom-select,
option,
.select_option,
textarea {
  font-family: 'Montserrat', sans-serif;
}

.dropdown-item:hover, .dropdown-item:active {
  color: #fff;
}

.alerto, .footer, .client_name_avator {
  font-size: 90%;
}

label {
  font-size: 100%;
}

.page_text { font-size: 95%;}

.footer, .suubi {
  background-color: #f5f5f5;
}

.theme-primary, .theme-primary:hover {
  background-color: var(--theme-primary);
  color: white;
}

.text_secondary, .text_secondary:hover, .text_secondary:active{
  color: var(--theme-secondary);
}

.theme-secondary, .theme-secondary:hover {
  background-color: var(--theme-secondary);
  color: white;
}

.contact_shell {
  border: 1px solid rgb(177, 176, 176);
  border-radius: 5px;
  font-size: small;
  padding-bottom: 10px;
}

.round_btn {
  border-radius: 25px;
}

.collapse_btn{
  -ms-transform: rotate(0deg); /* IE 9 */
  -webkit-transform: rotate(0deg); /* Chrome, Safari, Opera */
  transform: rotate(0deg);
}
.rotated{
  -ms-transform: rotate(180deg); /* IE 9 */
  -webkit-transform: rotate(180deg); /* Chrome, Safari, Opera */
  transform: rotate(180deg);
}

.dropdown-item, .dataTables_info, .dataTables_paginate, .pagination, .editSubheader, table, .nav-link, .btn, #register_btn, #login_btn, .card-subheader, .form-control, .breadcrumb-item {
  font-size: 85%;
}

.capitalize_text {
  text-transform: capitalize;
}

.hodo:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
}

/*.table {*/
/*  text-transform: capitalize;*/
/*}*/

.footer_title {
  font-weight: 500;
}

button:disabled {
    /*background-color: gray;*/
    cursor: not-allowed;
}

.fw-500 {font-weight: 500;}
.fw-600 {font-weight: 600;}
.fw-700 {font-weight: 700;}
.fw-800 {font-weight: 800;}
.fw-900 {font-weight: 900;}

.fs-95 { font-size: 95%;}
.fs-90 { font-size: 90%;}
.fs-80 { font-size: 80%;}
.fs-85 { font-size: 85%;}
.fs-75 { font-size: 75%;}
.fs-70 { font-size: 70%;}


code {
  display: block;
  white-space: pre-wrap;
}

select > option, select {
  font-size: small;
}

/* Loading States */
.loading-indicator,
.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
}

#loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button loading state */
button.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Message container */
#message-container,
.message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

/* DataTables responsive improvements */
.table-responsive {
    border: none;
}

.dataTables_wrapper {
    padding: 20px 0;
}

.dataTables_filter {
    margin-bottom: 20px;
}

.dataTables_filter input {
    width: 250px !important;
    display: inline-block !important;
    margin-left: 10px;
}

.dataTables_length select {
    width: auto !important;
    display: inline-block !important;
    margin: 0 10px;
}

/* Table styling */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
    word-wrap: break-word;
    max-width: 200px;
}

/* Responsive table improvements */
@media (max-width: 768px) {
    .dataTables_filter input {
        width: 100% !important;
        margin: 10px 0;
    }
    
    .dataTables_length {
        margin-bottom: 10px;
    }
    
    .table td {
        max-width: 150px;
        font-size: 14px;
    }
    
    .dataTables_info,
    .dataTables_paginate {
        text-align: center;
        margin-top: 10px;
    }
}

/* Pagination styling */
.dataTables_paginate .paginate_button {
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.dataTables_paginate .paginate_button:hover {
    background: #f5f5f5;
    border-color: #ddd;
}

.dataTables_paginate .paginate_button.current {
    background: #007bff;
    color: white !important;
    border-color: #007bff;
}

.dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Search highlighting */
.dataTables_wrapper .highlight {
    background-color: yellow;
    font-weight: bold;
}

/* Processing indicator */
.dataTables_processing {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    margin-left: -100px;
    margin-top: -26px;
    text-align: center;
    padding: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive column controls */
.dtr-details {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    margin: 5px 0;
}

.dtr-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dtr-details li {
    border-bottom: 1px solid #dee2e6;
    padding: 5px 0;
}

.dtr-details li:last-child {
    border-bottom: none;
}

/* Table info styling */
.dataTables_info {
    font-size: 14px;
    color: #6c757d;
}

/* Empty state */
.dataTables_empty {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

#recharge_history_tbl {
    width: 100% !important;
}

#recharge_history_tbl thead th {
    vertical-align: middle;
    text-align: left;
    white-space: nowrap;
}

#recharge_history_tbl tbody td {
    vertical-align: middle;
}

/* Ensure DataTable wrapper doesn't cause issues */
.dataTables_wrapper {
    width: 100%;
}

/* Fix DataTable responsiveness */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#recharge_history_tbl {
    width: 100% !important;
    table-layout: auto;
}

#recharge_history_tbl thead th {
    vertical-align: middle;
    text-align: left;
    white-space: nowrap;
    font-weight: 600;
    background-color: #f8f9fa;
}

#recharge_history_tbl tbody td {
    vertical-align: middle;
    white-space: nowrap;
}

/* Badge styling */
.badge {
    padding: 0.35em 0.65em;
    font-size: 0.85em;
    font-weight: 600;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    #recharge_history_tbl {
        font-size: 0.875rem;
    }
    
    #recharge_history_tbl thead th,
    #recharge_history_tbl tbody td {
        padding: 0.5rem;
    }
}

/* DataTables wrapper fixes */
.dataTables_wrapper {
    width: 100%;
    overflow-x: auto;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

/* // Small devices (landscape phones, 576px and up) */
@media only screen and (min-width: 320px) and (max-width: 767px) and (orientation:portrait) {
  .client_content_side {
    position:absolute;
    padding:0 !important;
    margin:0 !important;
    top:0;
    left:0;
    min-width: 100%;
    height: 100%;
  }
}

@media only screen and (min-width: 300px) and (max-width: 767px) and (orientation:landscape) {
  .client_content_side {
    position:absolute;
    padding:0;
    margin:0;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
  }
}

/* // Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 1023px) and (orientation:portrait) {
  .client_content_side {
    position:absolute;
    padding:0;
    margin:0;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
  }
}

/* // Large devices (desktops, 992px and up) */
@media (min-width: 1024px) {

}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1440px) and (max-width: 2560px) and (orientation:portrait) {

}


/* Wrapper for responsive table */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* DataTable responsive fixes */
#recharge_history_tbl_wrapper {
    width: 100%;
    overflow-x: auto;
}

#recharge_history_tbl {
    width: 100% !important;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

#recharge_history_tbl thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 12px 8px;
    white-space: nowrap;
    border-bottom: 2px solid #dee2e6;
}

#recharge_history_tbl tbody td {
    padding: 10px 8px;
    vertical-align: middle;
}

/* Badge improvements */
.badge {
    display: inline-block;
    padding: 0.4em 0.8em;
    font-size: 0.85em;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    border-radius: 0.25rem;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    #recharge_history_tbl {
        font-size: 0.85rem;
    }
    
    #recharge_history_tbl thead th,
    #recharge_history_tbl tbody td {
        padding: 8px 4px;
    }
    
    .badge {
        font-size: 0.75em;
        padding: 0.3em 0.6em;
    }
}

/* Ensure DataTable controls are responsive */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    padding: 10px 0;
}

@media screen and (max-width: 576px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        text-align: center;
        float: none !important;
    }
}
