/* style */

body {
        font-family: Arial, sans-serif;
        background-size: cover; /* Adjust to your needs (cover, contain, etc.) */
        background-repeat: no-repeat; /* Prevent the image from repeating */
        background-attachment: fixed; /* Optional, makes the background fixed while scrolling */
        background-color: #FFFFFF;
        margin: 0;
        padding: 0;
		line-height: unset;
		color: black;
		padding-top: 60px;
    }

/* Container Styles */
.container, .ccontainer, .ncontainer, .pcontainer {
    margin: 0 auto;
    padding: 10px;
    background-color: var(--background-color);
}

.container {
    max-width: 1320px;
    align-items: stretch;
}

.ccontainer {
    max-width: 900px;
    align-items: stretch;
}

.ncontainer {
    max-width: 570px;
}

.pcontainer {
    max-width: 350px;
}
    
    .row {
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center items horizontally */
    background-color: #f8f8f8;
    margin: unset;
    text-align: center; /* Center text content */
}
.rows {
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center items horizontally */
    padding: 10px;
    margin: unset;
    text-align: center; /* Center text content */
}

  .columns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /* Allow columns to wrap to the next line if needed */
  }
  
  .column {
    flex: 1 1 200px; /* Each column occupies equal space initially with a minimum width of 300px */
    padding: 5px; /* Add some spacing around the content */
    border: none; /* Add borders for visual separation */
  }
  
  .left-column {
    flex: 0.75; /* Adjust this value to make the left column wider */
}

  @media (max-width: 768px) {
    .column {
      flex-basis: calc(50% - 20px); /* Two columns in a row on smaller screens with 20px gap */
    }
  }

  @media (max-width: 480px) {
    .column {
      flex-basis: calc(100% - 20px); /* Single column taking full width on smaller screens with 20px gap */
    }
	
  }
  
        
    .logo {
            max-width: 200px; /* Adjust the max-width as needed to resize the logo */
            max-height: 80px;
            margin: 0 auto; /* Center-align the logo horizontally */
    }

    .style3 {
        font-size: 24px;
        text-align: center;
        margin-bottom: 20px;
    }

    label {
        display: block;
        font-weight: bold;
        margin-top: 10px;
    }

    input[type="text"],
    input[type="password"],
    input[type="number"],
    select {
        width: 100%;
        padding: 7px;
        margin-bottom: 5px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    button {
    height: 30px;
    border-radius: 6px;
	}
	
	button[type="submit"] {
        background-color: #007bff;
        color: #fff;
		line-height: unset;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

    button[type="submit"]:hover {
        background-color: #0056b3;
    }

    a {
        text-decoration: none;
        color: #007bff;
        display: block;
    }
	.blueButtonL {
        background-color: #007bff;
        color: #fff;
		line-height: unset;
        border: none;
        border-radius: 4px;
        cursor: pointer;
		width: 100%;
    }
	.blueButtonL:hover {
        background-color: #0056b3;
    }
	 .redButton {
    background-color: #e3250c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
	line-height: unset;
}

.redButton:hover {
    background-color: #b21c08; /* Change color on hover if desired */
}
.redButtonL {
    background-color: #e3250c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
	line-height: unset;
	width: 100%;
}

.redButtonL:hover {
    background-color: #b21c08; /* Change color on hover if desired */
}

    .greenButton {
    background-color: green;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
	line-height: unset;
}
.greenButton:hover {
    background-color: #085706; /* Change color on hover if desired */
}
.greenButtonL {
    background-color: green;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
	line-height: unset;
	width: 100%;
}

.greenButtonL:hover {
    background-color: #085706; /* Change color on hover if desired */
}


    @media (max-width: 768px) {
        .container {
            padding: 10px;
        }

        input[type="text"],
        input[type="password"],
        input[type="number"],
        select {
            margin-bottom: 10px;
        }
		
    }

/* Add responsive styles for the table */
table {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 6px;
}

table, th, td {
    border: none;
    border-radius: 5px;
}

th, td {
    padding: 3px;
    text-align: left;
}

/* Add responsive styles for the table */
	.left-table,
    .right-table {
      border-collapse: collapse;
      width: 100%;
    }

    .left-table th,
    .left-table td,
    .right-table th,
    .right-table td {
      border: 1px solid #ddd;
      padding: 8px;
      text-align: left;
    }

    .left-table th,
    .right-table th {
      background-color: #f2f2f2;
      font-weight: bold;
    }
	
	/* Add responsive styles for the table */
	.left-table,
    .right-table {
      border-collapse: collapse;
      width: 100%;
    }

    .left-table th:first-child,
    .left-table td:first-child,
    .right-table th:first-child,
    .right-table td:first-child {
      background-color: #f2f2f2; /* Background color for the left column */
	  width: 175px; /* Set a specific width for the first column */
    }

    .left-table th,
    .left-table td,
    .right-table th,
    .right-table td {
      border: 1px solid #ddd;
      padding: 5px;
      text-align: left;
    }
	
/* Create a breakpoint for smaller screens */
@media (max-width: 600px) {
    
.left-table,
      .right-table {
        margin-bottom: 20px; /* Add margin between tables on smaller screens */
      }
	 
	.redButtonL, .greenButtonL, .blueButtonL {
	width: 100%;
	}
	textarea {
  margin-bottom: 5px;
  font-family: inherit;
  font-size: revert;
  line-height: inherit;
  width: 100%;
}
}


caption {
      background-color: #f2f2f2; /* Background color for the caption */
      padding: 8px; /* Add padding to the caption */
      margin-bottom: 5px; /* Add space between caption and table */
      font-weight: bold;
      color: black;
      text-align: center;
      caption-side: top;
    }
    
    .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Adjust to ensure the navbar stays above other elements */
}

	
	.navbar-toggler {
	font-size: 0.85rem;
	}
	
	.navbar-nav .nav-link {
    
    text-decoration: none;
    padding: 10px 15px; /* Adjust padding as needed */
    font-weight: bold;
  }

  .navbar-nav .nav-link:hover {
    font-color: white;
    background-color: gray; /* Change the background color on hover */
    border-radius: 10px;
  }
  
  .navbar-light .navbar-nav .nav-link {
  color: rgb(0, 0, 0);
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: .25rem 1rem;
  clear: both;
  font-weight: 400;
  color: #ffffff;
  text-align: inherit;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}

/* Sidebar styles */
        .sidebar {
            width: 200px;
            background-color: #2c3e50; /* Dark background */
            color: #ffffff;
            position: fixed;
            height: 100%;
            transition: all 0.3s;
            overflow-y: auto;
            padding-top: 20px;
        }
        .sidebar.collapsed {
            width: 0;
        }
        .sidebar .nav-link {
            color: #ffffff;
            padding: 10px 15px;
            font-size: 16px;
            display: flex;
            align-items: center;
            transition: background 0.3s;
        }
        .sidebar .nav-link:hover {
            background-color: #34495e;
        }
        .sidebar .nav-link i {
            margin-right: 10px; /* Icon spacing */
        }
        .sidebar .nav-link span {
            display: inline-block;
            transition: opacity 0.3s;
        }
        .sidebar.collapsed .nav-link span {
            opacity: 0; /* Hide text when collapsed */
        }
        .content {
            margin-left: 200px;
            transition: margin-left 0.3s;
            width: calc(100% - 200px);
        }
        .content.collapsed {
            margin-left: 0;
            width: calc(100%);
        }
        /* Toggle button styling */
        .toggle-btn {
            position: fixed;
            top: 20px;
            left: 182px;
            z-index: 1000;
            cursor: pointer;
            color: #2c3e50;
            font-size: 20px;
        }
        .sidebar.collapsed + .toggle-btn {
            left: 60px;
        }

  
 input,
button,
select,
optgroup,
textarea {
  margin-bottom: 5px;
  font-family: inherit;
  font-size: revert;
  line-height: inherit;
}
textarea {
  width: 100%;
}

/* Styles for the form boxes */
    .form-box {
        border: 1px solid #ddd;
        padding: 10px;
        margin-bottom: 5px;
        border-radius: 5px; /* Optional: adds rounded corners */
        background-color: #f9f9f9; /* Optional: adds a light background color */
    }

    .blueButtonL, .redButtonL, .greenButtonL {
        cursor: pointer;
        border: none;
        border-radius: 3px;
    }

    .blueButtonL {
        background-color: #007BFF;
        color: white;
    }

    .redButtonL {
        background-color: #DC3545;
        color: white;
    }

    .button-container {
        display: flex;
        flex-direction: column;
        gap: 3px; /* Space between buttons */
    }
    
    .button-row {
    display: flex;
    flex-direction: row;
    margin-bottom: 1px; /* Adjust as needed */
    }

    .button-row button {
    margin-right: 2px; /* Adjust spacing between buttons */
    margin-left: 2px;
    }
    
    .rpagination {
        text-align: center;
        display: block !important;
    }

    .rpagination a {
        display: inline-block;
        text-decoration: none;
        padding: 8px 12px;
        margin-right: 5px;
        border: 1px solid #ccc;
        border-radius: 50%;
        background-color: #f9f9f9;
        color: #333;
    }

    .rpagination a.active {
        background-color: #007bff;
        color: #fff;
        border-color: #007bff;
    }

    .rpagination a:hover {
        background-color: #ddd;
    }
    
    .status-circle {
        display: inline-block;
        width: 12px;
        height: 20px;
    }
    .uonline {
        background-color: #2498e5;
    }
    .uonline2 {
        background-color: #9fe334;
    }
    .uoffline {
        background-color: #f99816;
    }
    .uactive {
        background-color: #2498e5;
    }
    .uexpired {
        background-color: #f99816;
    }
    .uexpired2 {
        background-color: #7940a7;
    }
    .status-excircle {
        display: inline-block;
        width: 24px;
        height: 20px;
    }
    .exonline {
        background-color: #9fe334;
    }
    
    /* Modal styles */
    .modal {
        display: none;
        position: fixed;
        z-index: 1;
        left: 38%;
        top: 0;
        width: 25%;
        height: 100%;
        overflow: auto;
        background-color: rgb(0,0,0);
        background-color: rgba(0,0,0,0);
    }

    .modal-content {
        position: absolute;
        background-color: #fefefe;
        margin: auto;
        padding: 20px;
        border: 1px solid #888;
        width: 80%;
        max-width: 600px; /* Set a max-width for the modal */
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        left: 50%;
        top: 40%;
        transform: translate(-50%, -50%);
    }

    .close {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
    }

    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }
    
    .dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: none;
    color: white;
}

.widget {
    background-size: cover;
    background-position: center;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 150px;
}

#search-user {
    background-image: url('../../img/searchuser.jpg');
}

#balance-update {
    background-image: url('../../img/balanceupdate.jpg');
}

#total-users {
    background-image: url('../../img/totaluser.jpg');
}

#total-online {
    background-image: url('../../img/onlineuser.jpg');
}

#total-active {
    background-image: url('../../img/activeuser.jpg');
}

#total-expired {
    background-image: url('../../img/expireduser.jpg');
}

#total-3exp {
    background-image: url('../../img/3days.jpg');
}

#account-balance {
    background-image: url('../../img/balance.jpg');
}

#commission-balance {
    background-image: url('../../img/balance.jpg');
}

#total-managers {
    background-image: url('../../img/searchuser.jpg');
}

        .widget a {
            display: block;
            color: inherit;
            text-decoration: none;
        }

        .widget a:hover {
            text-decoration: none;
        }

        .widget h4 {
            margin-top: 0;
        }
        
        .export-icon {
            font-size: 24px; /* Adjust the size as needed */
            margin-left: 20px;
        }


.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.count-selector a,
.pagination-links a {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #007bff;
    border-radius: 50%;
}

.count-selector a.active,
.pagination-links a.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.count-selector a:hover,
.pagination-links a:hover {
    background-color: #ddd;
    color: #007bff;
}

.pagination-links a.current-page {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
}
        

    /* Adjustments for small screens */
    @media (max-width: 600px) {
        .rpagination a {
            padding: 4px 8px;
            font-size: 10px;
        }
        .status-circle {
        display: inline-block;
        width: 10px;
        height: 15px;
    }
    .status-excircle {
        display: inline-block;
        width: 20px;
        height: 15px;
    }
    
    .button-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1px; /* Adjust as needed */
    }
    
    .modal {
        display: none;
        position: fixed;
        z-index: 0;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: none;
        background-color: rgb(0,0,0);
        background-color: rgba(0,0,0,0);
    }
    
    }
        
         .filter-popup {
        display: none;
        position: absolute;
        top: 60px; /* Adjust based on your layout */
        right: 20px; /* Adjust based on your layout */
        background-color: white;
        border: 1px solid #ccc;
        padding: 15px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .filter-popup h4 {
        margin-top: 0;
    }
    
    .filter-popup label {
        display: block;
        margin-bottom: 5px;
    }
    
    .filter-popup select, .filter-popup button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .refunded {
    background-color: red;
    color: white; /* Optional: to make the text more readable */
}
        
        .date-range-form {
            display: flex;
            flex-wrap: wrap; /* Allow items to wrap onto multiple lines */
            align-items: center;
        }

        .date-range-form label {
            margin-right: 10px;
            flex: 0 0 auto; /* Prevent labels from stretching */
        }

        .date-range-form input[type="date"] {
            width: 100%; /* Take full width of the container */
            max-width: 125px; /* Limit maximum width */
            margin-right: 10px;
            flex: 1 0 auto; /* Allow input to grow, but not shrink */
        }

        .date-range-form select {
            flex: 1 0 auto; /* Allow select dropdown to grow */
            max-width: 150px; /* Limit maximum width */
            margin-right: 10px;
        }

        .date-range-form button,
        .date-range-form .clear-filter {
            margin-right: 10px;
            flex: 0 0 auto; /* Prevent button and link from stretching */
        }

        .clear-filter {
            text-decoration: none;
            color: blue;
        }

        .clear-filter:hover {
            text-decoration: underline;
        }

        @media (max-width: 768px) {
            .date-range-form {
                flex-direction: column; /* Stack items vertically on smaller screens */
            }

            .date-range-form label,
            .date-range-form input[type="date"],
            .date-range-form select,
            .date-range-form button,
            .clear-filter {
                width: 100%; /* Full width for each item on smaller screens */
                margin-bottom: 10px; /* Add spacing between items */
            }
        }

.search-wrapper .form-control:focus {
  box-shadow: none;
}

.search-wrapper .input-group {
  background-color: white;
  width: 150px;
  height: 30px;
}

@media (max-width: 768px) {
  #cform .input-group {
    width: 100% !important;
  }
}