.error {
    color: red;
}

.error-message {
    color: red;
}

.text-red-600 {
    color: red;
}

.text-green-600 {
    color: green;
}

.border-red-500 {
    border-color: red;
}

.edit-icon {
    color: blue;
}

a.disabled {
    pointer-events: none;
    opacity: 0.5;
    /* Optional: Make it look disabled */
    cursor: not-allowed;
    /* Show disabled cursor */
}

input:disabled,
textarea:disabled {
    background-color: #f4f2f2;
    /* Light gray background */
    color: #6b7280;
    /* Text color - gray */
    cursor: not-allowed;
    /* Change the cursor to indicate it's not interactive */
    opacity: 0.6;
    /* Slightly transparent to show it's disabled */
    border-color: #d1d5db;
    /* Light gray border color */
}

button:disabled {
    cursor: not-allowed;
    /* Change the cursor to indicate it's not interactive */
    opacity: 0.6;
    /* Slightly transparent to show it's disabled */
    border-color: #d1d5db;
    /* Light gray border color */
}

/* Custom styles for disabled input placeholder */
input:disabled::placeholder,
textarea:disabled::placeholder {
    color: #9ca3af;
    /* Gray color for placeholder text */
}

.loader {
    position: fixed;
    /* Fix the loader to the center of the screen */
    top: 0;
    /* Align it to the top of the page */
    left: 0;
    /* Align it to the left of the page */
    right: 0;
    /* Ensure it stretches to the right */
    bottom: 0;
    /* Ensure it stretches to the bottom */
    display: flex;
    /* Use Flexbox to center the content */
    justify-content: center;
    /* Horizontally center the content */
    align-items: center;
    /* Vertically center the content */
    background-color: rgba(128,
            128,
            128,
            0.5);
    /* Semi-transparent gray background */
    z-index: 50;
    /* Make sure the loader is on top of other elements */
    opacity: 0.5;
    /* Adjust transparency */
    text-align: center;
    /* Center the text */
}

.loader .spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #0c2132;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.feedback {
    height: 30px !important;
    width: 30px !important;
    background-size: 20px !important;
    top: 12px !important;
}

/* General styling for the loader */

/* Overlay that covers the content */
.overlay,
#transactions-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.16);
    /* Gray background with opacity */
    z-index: 9998;
    /* Layered just below the loader */
    display: none;
    /* Hide by default */
}

/* General styling for the loader */
.loader_order,
#transactions-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    /* Ensure the loader is above the overlay */
    display: none;
    /* Initially hide the loader */
}

/* If you use an image for spinner */
.loader_order img,
#transactions-loader img {
    width: 50px;
    /* Adjust size if necessary */
    height: auto;
}

/* Ensure the parent container is relative for proper positioning of the loader */
#orders-list-main-div,
.transactions-main-div {
    position: relative;
    /* For correct absolute positioning of loader and overlay */
    z-index: 1;
    /* Default z-index */
}

/* Optional: Add a transition effect for smooth hiding/showing */
#orders-list-main-div.hide-content,
.transactions-main-div.hide-content {
    opacity: 0.5;
    pointer-events: none;
}

/* Overlay for transactions list */
#transactions-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.16);
    /* Same opacity as orders */
    z-index: 9998;
    /* Layered just below the loader */
    display: none;
    /* Hide by default */
}

/* Loader styling */
#transactions-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    /* Above the overlay */
    display: none;
    /* Initially hide */
}

/* For spinner image */
#transactions-loader img {
    width: 50px;
    height: auto;
}

/* Ensure the parent container is relative for positioning */
.transactions-main-div {
    position: relative;
    /* For correct absolute positioning of loader and overlay */
}

/* When overlay is visible, make the text lighter and prevent user interaction */
#orders-list-main-div.hide-content,
.transactions-main-div.hide-content,
#orders-loader,
#transactions-loader {
    /*  opacity: 0.5;*/
    /* Make the background dimmed */
    pointer-events: none;
    /* Prevent clicks on content when loading */
}

/* For orders and transactions loader */
#orders-loader,
#transactions-loader {
    color: #0c0c0c;
    /* Make the loading text white */
    font-size: 40px;
    /* Increased font size */
    font-weight: bold;
    /* Bold text for better visibility */
    text-align: center;
}

/* Optionally adjust size of the spinner */
.loader_order img,
#transactions-loader img {
    width: 50px;
    /* Adjust size of the spinner if needed */
    height: auto;
}

.custom-bullets {
    list-style-type: disc;
    /* Default bullet style */
    padding-left: 20px;
    /* Space between the bullet and the text */
}

.custom-bullets li {
    margin-bottom: 8px;
    /* Optional: to add space between each list item */
}

.right-4 {
    right: 4%;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3490dc;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1.5s linear infinite;
}

/* Keyframes for the spinning animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.w-25 {
    width: 25%;
}

.w-45 {
    width: 45%;
}

.w-75 {
    width: 75%;
}

.border-l {
    border-left: 1px solid #e5e7eb;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

@media (min-width: 640px) {
    .sm\:w-50 {
        width: 50%;
    }
}

.bg-blue-500 {
    --tw-bg-opacity: 1;
    background-color: rgb(59 130 246 / var(--tw-bg-opacity, 1));
}

.bg-green-500 {
    --tw-bg-opacity: 1;
    background-color: rgb(34 197 94 / var(--tw-bg-opacity, 1));
}

.menu-btn {
    width: 30px;
}

.sm\:w-\[230\] {
    width: 230px;
}

.lg\:py-\[170px\] {
    padding-top: 170px;
    padding-bottom: 170px;
}

.lg\:py-\[145px\] {
    padding-top: 145px;
    padding-bottom: 145px;
}

.md\:py-\[145px\] {
    padding-top: 145px;
    padding-bottom: 145px;
}

.xl\:py-\[145px\] {
    padding-top: 145px;
    padding-bottom: 145px;
}

.bg-\[url\(\.\.\/frontend\/images\/banner-bg\.png\)\] {
    background-image: url(../images/banner-bg.png);
}

.bg-\[url\(\.\.\/frontend\/images\/hero-bg\.png\)\] {
    background-image: url(../images/hero-bg.png);
}

.bg-\[url\(\.\.\/frontend\/images\/login-main\.png\)\] {
    background-image: url(../images/login-main.png);
}

.bg-\[url\(\.\.\/frontend\/images\/referrals-bg\.png\)\] {
    background-image: url(../images/referrals-bg.png);
}

.bg-\[url\(\.\.\/frontend\/images\/register-main\.png\)\] {
    background-image: url(../images/register-main.png);
}

.bg-\[url\(\.\.\/frontend\/images\/sell_phone_background\.jpg\)\] {
    background-image: url(../images/sell_phone_background.jpg);
}

.h-200 {
    height: 200px;
}

.w-200 {
    width: 200px;
}

.h-100 {
    height: 100px;
}

.w-100 {
    width: 100px;
}

.max-w-50 {
    max-width: 50% !important;
}

/* Wrapper for the toggle switch container */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Label for the toggle switch text */
.toggle-label {
    font-size: 1rem;
    font-weight: bold;
    color: #2c3e50;
    /* Dark text color */
}

/* Container for the toggle switch itself */
.toggle-label-container {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

/* Hidden input checkbox */
.toggle-input {
    display: none;
}

/* The slider background */
.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: #e5e7eb;
    /* Light gray background */
    border-radius: 9999px;
    transition: background-color 0.3s ease;
}

/* Circle that slides inside the slider */
.toggle-circle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background-color: #ffffff;
    border: 1px solid #bdc3c7;
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Change the slider background and move the circle when the checkbox is checked */
.toggle-input:checked+.toggle-slider {
    background-color: #4f86ff;
    /* Blue color */
}

.toggle-input:checked+.toggle-slider .toggle-circle {
    transform: translateX(20px);
    /* Move the circle to the right */
    border-color: #ffffff;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .toggle-slider {
        background-color: #1f2937;
        /* Dark mode background */
    }

    .toggle-input:checked+.toggle-slider {
        background-color: #3b82f6;
        /* Blue in dark mode */
    }

    .toggle-circle {
        background-color: #1f2937;
        /* Dark mode circle */
        border-color: #4b5563;
    }

    .toggle-input:checked+.toggle-slider .toggle-circle {
        background-color: #ffffff;
        border-color: #ffffff;
    }
}

.calendar-icon {
    position: absolute;
    /* Position relative to the parent element */
    right: 12px;
    /* Set 12px (0.75rem) from the right edge */
    top: 70%;
    /* Vertically center the element */
    transform: translateY(-50%);
    /* Adjust the icon's vertical position */
    color: #4b5563;
    font-weight: 100 !important;
    /* Set the color of the icon (e.g., gray) */
}

.option-btn {
    color: rgb(47 47 47 / var(--tw-text-opacity, 1));
    background-color: rgb(217 217 217 / var(--tw-bg-opacity, 1));
    border: 1px solid #ccc;
    padding: 6px 15px;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease,
        color 0.3s ease;
}

/* Active button styles */
.option-btn.active {
    color: rgb(47 47 47 / var(--tw-text-opacity, 1));
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    border: 1px solid rgb(45 88 219 / var(--tw-border-opacity, 1));
}

.color-selector {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    text-transform: capitalize;
    border: 2px solid transparent;
    transition: all 0.3s ease-in-out;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* Active state with more distinction */
.color-selector.active {
    border-color: #000;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

/* Add a check mark inside the active color */
.color-selector.active::after {
    content: "✔";
    color: #000;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Tooltip to show color name on hover */
.color-selector::before {
    content: attr(title);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #000;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Show tooltip on hover */
.color-selector:hover::before {
    opacity: 1;
}

.content-wrapper {
    position: relative;
}

.toggle-btn {
    display: block;
    /* Ensure it starts on a new line */
    text-decoration: none;
    color: #007bff;
    /* Styling the button (you can change the color) */
    cursor: pointer;
}

.max-h-\[400px\] {
    max-height: 400px;
}

.medium-zoom-overlay {
    z-index: 1050 !important;
    /* adjust as needed (must be higher than your modal) */
}

.medium-zoom-image--opened {
    z-index: 1060 !important;
    /* higher than modal content */
    position: relative;
}

.w-180px {
    width: 180px;
}

@media (min-width: 640px) {
    .sm\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1023.98px) {
    .hide-on-mobile {
        display: none !important;
    }
}

.data-usage-container {
    background-color: #f3f4f6;
    margin-bottom: 1.25rem;
    border-radius: 1rem;
    padding: 1.25rem 1.75rem;
}

.data-usage-title {
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.5rem;
}

.progress-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.progress-track {
    position: relative;
    width: 100%;
    height: 0.625rem;
    overflow: hidden;
    border-radius: 9999px;
    background-color: #e5e7eb;
}

.progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s ease-in-out, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-fill--red {
    background-color: #dc2626;
}

.progress-fill--yellow {
    background-color: #eab308;
}

.progress-fill--blue {
    background-color: rgb(1 73 253 / var(--tw-bg-opacity, 1));
}

.progress-percentage {
    margin-left: 0.5rem;
    background-color: #fff;
    border-radius: 9999px;
    color: #1f2937;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 1.25rem;
}

.data-usage-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 500;
    color: #000;
    margin-top: 0.25rem;
}

@media (min-width: 640px) {
    .data-usage-container {
        padding: 2rem 1.75rem;
    }
}

.max-h-90vh {
    max-height: 90vh;
}

.max-h-70vh {
    max-height: 70vh;
}

.max-h-50vh {
    max-height: 50vh;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    /* py-0.5 px-2.5 */
    border-radius: 9999px;
    /* rounded-full */
    font-size: 0.75rem;
    /* text-xs */
    font-weight: 500;
    /* font-medium */
    line-height: 1rem;
}

.badge-primary {
    background-color: #dbeafe;
    /* bg-blue-100 */
    color: #1e40af;
    /* text-blue-800 */
}

.badge-success {
    background-color: #d1fae5;
    /* bg-green-100 */
    color: #065f46;
    /* text-green-800 */
}

.badge-warning {
    background-color: #fef3c7;
    /* bg-yellow-100 */
    color: #92400e;
    /* text-yellow-800 */
}

.badge-danger {
    background-color: #fee2e2;
    /* bg-red-100 */
    color: #991b1b;
    /* text-red-800 */
}

.badge-info {
    background-color: #cffafe;
    /* bg-cyan-100 */
    color: #155e75;
    /* text-cyan-800 */
}

.badge-dark {
    background-color: #1f2937;
    /* bg-gray-800 */
    color: #ffffff;
    /* text-white */
}

.badge-secondary {
    background-color: #e5e7eb;
    /* bg-gray-200 */
    color: #1f2937;
    /* text-gray-800 */
}

.max-h-\[80vh\] {
    height: 80vh;
}

.max-w-\[80\] {
    width: 80%;
}

.m-top-150 {
    margin-top: 150px;
    ;
}


/* Overlay for transactions list */
#sell-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.16);
    /* Same opacity as orders */
    z-index: 9998;
    /* Layered just below the loader */
    display: none;
    /* Hide by default */
}

/* Loader styling */
#sell-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    /* Above the overlay */
    display: none;
    /* Initially hide */
}

/* For spinner image */
#sell-loader img {
    width: 50px;
    height: auto;
}

/* Ensure the parent container is relative for positioning */
.sell-list-main-div {
    position: relative;
    /* For correct absolute positioning of loader and overlay */
}

/* Overlay for transactions list */
#sold-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.16);
    /* Same opacity as orders */
    z-index: 9998;
    /* Layered just below the loader */
    display: none;
    /* Hide by default */
}

/* Loader styling */
#sold-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    /* Above the overlay */
    display: none;
    /* Initially hide */
}

/* For spinner image */
#sold-loader img {
    width: 50px;
    height: auto;
}

/* Ensure the parent container is relative for positioning */
.sold-list-main-div {
    position: relative;
    /* For correct absolute positioning of loader and overlay */
}

.plan-option.selected {
    background-color: #0A55A3;
    /* your blue-1000 */
    color: white;
}

/* Style the select box */
.select2-container--default .select2-selection--single {
    height: 46px !important;
    border: 1px solid #0070C0;
    /* border-blue-1100 */
    border-radius: 0.375rem;
    /* rounded-md */
    background-color: #ffffff;
    /* bg-white */
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    /* text-base */
    color: #1a1a1a;
    /* text-black-1100 */
    display: flex;
    align-items: center;
}

/* Hide the arrow (optional) */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none;
}

/* Text inside the select */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1a1a1a;
    /* text-black-1100 */
    line-height: 1.5;
    padding-left: 0;
}

/* Style dropdown list */
.select2-container--default .select2-dropdown {
    border: 1px solid #0070C0;
    /* border-blue-1100 */
    border-radius: 0.375rem;
    /* rounded-md */
    font-size: 1rem;
}

/* Hover state for options */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #0070C0;
    /* blue-1100 */
    color: #fff;
}

.get-address-dropdown {
    position: absolute;
    z-index: 1000;
    width: calc(100% - 2px);
    /* Match input width */
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.get-address-dropdown div {
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.get-address-dropdown div:hover {
    background-color: #f8fafc;
}
