body {
    font-family: 'Poppins', sans-serif;
    background-color: #1a252f !important;
    color: #ffffff !important;
    margin: 0;
    padding: 0;
}

.navbar {
    background: #1a252f !important;
    padding: 15px 30px;
    border-bottom: 1px solid #2c3e50;
}

.navbar-brand {
    color: #4a90e2 !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #4a90e2 !important;
}

.sidebar {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    background: #1a252f !important;
    padding-top: 20px;
    border-right: 1px solid #2c3e50;
    transition: all 0.3s ease;
}

.sidebar h4 {
    color: #ffffff !important;
    font-weight: 600;
    text-align: center;
}

.sidebar p {
    color: #adb5bd !important;
    text-align: center;
    margin-bottom: 20px;
}

.sidebar .nav-link {
    color: #adb5bd !important;
    padding: 12px 20px;
    display: block;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    background-color: #2c3e50 !important;
    color: #ffffff !important;
}

.sidebar .nav-link.active {
    background-color: #2c3e50 !important;
    color: #4a90e2 !important;
    font-weight: 500;
}

.content {
    margin-left: 250px;
    padding: 30px;
    min-height: 100vh;
    background: #1a252f !important;
}

.card {
    border-radius: 8px;
    background: #2c3e50 !important;
    border: 1px solid #3a4a5a !important;
    color: #ffffff !important;
    margin-bottom: 20px;
}

.card-header {
    border-radius: 8px 8px 0 0;
    background: #2c3e50 !important;
    color: #ffffff !important;
    font-weight: 500;
    border-bottom: 1px solid #3a4a5a !important;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff !important;
}

.card-body h5 {
    font-size: 1rem;
    font-weight: 500;
    color: #adb5bd !important;
    margin-bottom: 10px;
}

/* Use Bootstrap's table-dark and customize text color */
.table.table-dark {
    background: #2c3e50 !important;
    border-collapse: collapse !important;
}

.table.table-dark th,
.table.table-dark td {
    vertical-align: middle;
    color: #ffffff !important; /* Dark text color for table cells and headers */
    border: 1px solid #3a4a5a !important;
    padding: 8px !important;
}

.table.table-dark th {
    background: #1a252f !important;
    color: #4a90e2 !important; /* Dark text color for headers */
}

/* Ensure striped effect for table-dark */
.table.table-dark.table-striped tbody tr:nth-of-type(odd) {
    background-color: #2c3e50 !important;
}

.table.table-dark.table-striped tbody tr:nth-of-type(even) {
    background-color: #1a252f !important;
}

.table a {
    color: #4a90e2 !important;
    text-decoration: none;
}

.table a:hover {
    color: #6ab0ff !important;
}

.chart-container {
    position: relative;
    margin: auto;
    height: 200px;
    width: 100%;
}

.text-success { color: #28a745 !important; }
.text-danger { color: #dc3545 !important; }
.text-warning { color: #ffca2c !important; }
.text-info { color: #17a2b8 !important; }
.text-primary { color: #4a90e2 !important; }
.text-secondary { color: #6c757d !important; }
.text-dark { color: #343a40 !important; }
.text-muted { color: #adb5bd !important; }

.truncate {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
}

.copy-btn {
    margin-left: 10px;
}

.btn-primary {
    background: #4a90e2 !important;
    border: none !important;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #6ab0ff !important;
}

.btn-danger {
    background: #dc3545 !important;
    border: none !important;
}

.btn-danger:hover {
    background: #b02a37 !important;
}

.btn-success {
    background: #28a745 !important;
    border: none !important;
}

.btn-success:hover {
    background: #218838 !important;
}

.btn-info {
    background: #17a2b8 !important;
    border: none !important;
}

.btn-info:hover {
    background: #117a8b !important;
}

.alert {
    border-radius: 8px;
    background: #2c3e50 !important;
    color: #ffffff !important;
    border: 1px solid #3a4a5a !important;
}

.pagination {
    overflow-x: auto;
}

.pagination .page-link {
    background: #1a252f !important;
    color: #ffffff !important;
    border: none !important;
}

.pagination .page-item.active .page-link {
    background: #4a90e2 !important;
}

.pagination .page-link:hover {
    background: #2c3e50 !important;
}

.reseller-card {
    background: #2c3e50 !important;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    border: 1px solid #3a4a5a !important;
}

.reseller-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
}

.reseller-card .btn {
    margin-left: 10px;
    border-radius: 20px;
}

.form-control {
    background: #1a252f !important;
    color: #ffffff !important;
    border: 1px solid #3a4a5a !important;
}

.form-control:focus {
    background: #1a252f !important;
    color: #ffffff !important;
    border-color: #4a90e2 !important;
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25) !important;
}

.form-label {
    color: #adb5bd !important;
}

.modal-content {
    background: #2c3e50 !important;
    color: #ffffff !important;
    border: 1px solid #3a4a5a !important;
}

.modal-header {
    background: #1a252f !important;
    border-bottom: 1px solid #3a4a5a !important;
}

.modal-footer {
    border-top: 1px solid #3a4a5a !important;
}

.modal-title {
    color: #ffffff !important;
}

.table-responsive {
    overflow-x: auto;
}

.credit-coin::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="gold"><circle cx="12" cy="12" r="10" stroke="goldenrod" stroke-width="2"/><text x="12" y="16" font-size="12" text-anchor="middle" fill="white">C</text></svg>') no-repeat center;
    background-size: contain;
    margin-right: 5px;
    vertical-align: middle;
}

.credit-cost-coin::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="silver"><circle cx="12" cy="12" r="10" stroke="gray" stroke-width="2"/><text x="12" y="16" font-size="12" text-anchor="middle" fill="white">$</text></svg>') no-repeat center;
    background-size: contain;
    margin-right: 5px;
    vertical-align: middle;
}