/* Base Styles (Default Styles for all screen sizes) */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: #2840bf;
    color: #b5b5b5;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* Logo styling */
.logo-img {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Modal Container */
#authModal {
    display: <?php echo ($loggedIn && $current_user_status === 'active') ? 'none' : 'flex'; ?>;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.4);
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}
#authModal.show-modal {
    opacity: 1;
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    padding: 25px 30px;
    border: none;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    z-index: 1001;
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    animation: fadeInScale 0.3s ease-out forwards;
    overflow: hidden;
}
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    display: none;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 10;
}
.close:hover, .close:focus {
    color: #333;
}
/* Form Container */
.auth-form {
    display: flex;
    flex-direction: column;
    position: relative;
    height: auto;
    transition: height 0.4s ease-in-out;
    overflow: hidden;
}
/* Individual Form (Sign-in) */
.auth-form > div {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}
.input-group {
    position: relative;
    margin-bottom: 15px;
}
.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="number"],
.input-group input[type="password"] {
    width: calc(100% - 40px);
    padding: 12px 12px 12px 40px;
    margin-bottom: 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.input-group input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}
.input-group .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 1.1em;
}
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}
.password-toggle:hover {
    color: #007bff;
}
.auth-form button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.2s ease-in-out;
}
.auth-form button:hover {
    background-color: #0056b3;
}
.auth-error {
    color: #dc3545;
    font-size: 0.9em;
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: center;
    display: block;
}
.auth-link {
    text-decoration: none;
    color: #007bff;
    margin-top: 15px;
    display: block;
    text-align: center;
    font-size: 0.95em;
    transition: color 0.2s ease-in-out;
}
.auth-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* New styles for avatar dropdown */
.user-menu-container {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    cursor: pointer;
    border: 2px solid #0056b3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
/* CSS for blinking effects */
@keyframes blink-red {
    0%, 100% { background-color: #EF4444; border-color: #DC2626; }
    50% { background-color: #F87171; border-color: #EF4444; }
}
@keyframes blink-green {
    0%, 100% { background-color: #10B981; border-color: #059669; }
    50% { background-color: #34D399; border-color: #10B981; }
}
/* CSS for Yellow Blinking effect */
@keyframes blink-yellow {
    0%, 100% { background-color: #FFC107; border-color: #FFA000; } /* Amber/Yellow Dark */
    50% { background-color: #FFEB3B; border-color: #FFC107; } /* Yellow Light */
}
.avatar-red-blink {
    animation: blink-red 1s infinite alternate;
}
.avatar-green-blink {
    animation: blink-green 1s infinite alternate;
}
.avatar-yellow-blink {
    animation: blink-yellow 1s infinite alternate;
}
.user-dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    right: 0;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
}
.user-dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 0.95em;
}
.user-dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #007bff;
}
.user-dropdown-content.show {
    display: block;
}
/* Responsive adjustments for modal */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}
/* User Greeting Specific Styles */
.user-greeting {
    margin-left: auto;
    margin-right: 2px;
    margin-left: 15px;
    padding: 0px 0;
    white-space: nowrap;
    font-size: 1.1em;
    color: #ffffff;
    font-weight: 600;
}
/* Notification Bell Styles */
.notification-bell-container {
    position: relative;
    /* Adjusted margin to create space from Add Money button */
    margin-left: 10px; /* Reduced from 15px to bring it closer but not touching */
    margin-right: 10px; /* Add some space to its right */
    cursor: pointer;
    display: flex; /* Use flexbox to center bell icon */
    align-items: center;
    justify-content: center;
    width: 62px; /* Fixed width for the bell container */
    height: 40px; /* Fixed height for the bell container */
    border-radius: 50%; /* Make the container itself round for a background circle */
    background-color: rgba(255, 255, 255, 0.2); /* Light background for the circle */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Subtle shadow */
    transition: background-color 0.3s ease;
}
.notification-bell-container:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.notification-bell {
    font-size: 1.6em; /* Size of the bell icon */
    color: white; /* Default color */
    position: relative; /* For positioning the count relative to it */
}
.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    border-radius: 50%; /* Make it perfectly round */
    padding: 2px; /* Adjusted padding to make it smaller */
    font-size: 0.7em;
    min-width: 18px; /* Ensure minimum width for single/double digits */
    height: 18px; /* Ensure height matches min-width for perfect circle */
    display: flex; /* Use flexbox for centering number inside circle */
    align-items: center;
    justify-content: center;
    line-height: 1; /* Adjust line height for vertical centering */
    border: 1px solid white;
    display: none; /* Hide by default */
}
/* Blinking animation for notifications */
@keyframes blink-notification {
    0%, 100% { background-color: red; }
    50% { background-color: darkred; }
}
.notification-count.blink {
    animation: blink-notification 1s infinite alternate;
}
.notification-dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 250px; /* Adjust width as needed */
    max-width: 350px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 2; /* Higher than user dropdown */
    right: 0;
    border-radius: 8px;
    overflow: hidden;
    /* Adjusted top to position it below the bell container */
    top: calc(100% + 5px); /* 100% of parent height + 5px gap */
    transform: translateX(0%); /* Ensure it's not offset */
}
.notification-dropdown-content.show {
    display: block;
}
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #348be8;
    border-bottom: 1px solid #ddd;
}
.notification-header h4 {
    margin: 0;
    font-size: 1.1em;
}
.notification-header a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9em;
}
.notification-list {
    max-height: 300px; /* Scrollable area */
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
}
.notification-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
    cursor: pointer;
}
.notification-item.unread {
    background-color: #e6f7ff; /* Light blue for unread */
    font-weight: bold;
}
.notification-item:last-child {
    border-bottom: none;
}
.notification-item:hover {
    background-color: #f1f1f1;
}
.notification-item h5 {
    margin: 0 0 5px 0;
    font-size: 1em;
    color: #333;
}
.notification-item p {
    margin: 0;
    font-size: 0.85em;
    color: #666;
}
.notification-item-actions {
    text-align: right;
    margin-top: 5px;
    font-size: 8px;
}
.notification-item-actions button {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 0.8em;
    margin-left: 10px;
    padding: 0;
}
.notification-item-actions button:hover {
    text-decoration: underline;
}
/* Style for Font Awesome delete icon */
.notification-item-actions .delete-notification-btn i {
    color: #dc3545; /* Red color for delete icon */
    font-size: 1.1em; /* Slightly larger icon */
}
.notification-item-actions .delete-notification-btn:hover i {
    color: #c82333; /* Darker red on hover */
}


.notification-footer {
    padding: 10px 15px;
    background-color: #eee;
    border-top: 1px solid #ddd;
    text-align: center;
}
.notification-footer a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9em;
}


.logo-marquee-container {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.logo-img {
    max-height: 50px;
    margin-right: 10px;
}

.website-name {
    margin: 0;
}

.marquee-container {
    flex-grow: 1;
}

.news-marquee {
    background-color: #2b3988;
    padding: 5px;
    border-radius: 4px;
}

.main-nav {
    display: flex;
    align-items: center;
    order: 3;
}

.main-nav a.nav-link {
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    transition: background-color 0.3s ease;
}

.main-nav a.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown {
    position: relative;
}



.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2840bf;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a.dropdown-link {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a.dropdown-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.auth-buttons {
    display: flex;
}

.auth-buttons a.auth-link {
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    transition: background-color 0.3s ease;
}

.auth-buttons a.auth-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.main-content {
    flex: 1;
    padding: 20px;
}
.sort-icon {
    display: inline-block;
    margin-left: 5px; /* Adjust spacing as needed */
    font-size: 0.8em; /* Adjust size as needed */
}
footer {
    background: #2840bf;
    color: white;
    padding: 10px 20px;
    text-align: center;
    margin-top: auto;
}


footer a {
    color: white;
    text-decoration: none;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    margin-top: 10px;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: white;
}

.add-money-btn {
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.wallet-info {
    display: flex;
    align-items: center;
}

.recharge-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background-color: #f4f4f4;
    font-family: sans-serif;
    flex-wrap: wrap;
}

.recharge-form, .recharge-schemes, .transaction-history {
    width: 33%;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.recharge-heading {
    background-color: #007bff;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group select {
    width: calc(100% - 12px);
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
        FONT-SIZE: 23PX;
}

.form-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.check-offers-button, .recharge-button {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.check-offers-button {
    background-color: #007bff;
    color: white;
}

.recharge-button {
    background-color: #4caf50;
    color: white;
    width: 150px;
}

.check-offers-button:hover, .recharge-button:hover {
    opacity: 0.9;
}
/* Style for the offers container */
.recharge-schemes #rechargeData ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

/* Style for individual offer items */
.recharge-schemes #rechargeData li {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 5px;
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack content vertically */
}

/* Style for the amount button */
.offer-amount-button {
    background-color: #007bff; /* Primary button color */
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px; /* Space below the amount */
    align-self: flex-start; /* Align button to the start */
    transition: background-color 0.2s ease;
}

.offer-amount-button:hover {
    background-color: #0056b3; /* Darker shade on hover */
}

/* Style for other offer details */
.recharge-schemes #rechargeData li strong {
    color: #333;
}

.recharge-schemes #rechargeData li p {
    margin: 5px 0;
    line-height: 1.4;
    color: #555;
}

/* Style for the filter controls container */
.offers-filters {
    display: flex;
    gap: 20px; /* Space between filter groups */
    margin-bottom: 15px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Style for individual filter groups */
.offers-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 5px; /* Space between label and select */
}

.offers-filters label {
    font-weight: bold;
    color: #555;
}

.offers-filters select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.check-offers-button {
    position: relative; /* स्पिनर को पोजीशन करने के लिए */
    /* अन्य बटन स्टाइल यहाँ */
    padding-right: 30px; /* स्पिनर के लिए जगह बनाने के लिए पैडिंग जोड़ें */
}

.check-offers-button.loading {
    pointer-events: none; /* लोडिंग के दौरान क्लिक्स को डिसेबल करें */
    opacity: 0.8; /* लोडिंग के दौरान थोड़ा अपारदर्शी करें */
}

/* Style for the loading spinner inside the button */
.button-loading-spinner {
    display: inline-block; /* या block */
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff; /* स्पिनर का रंग */
    animation: spin 1s ease-in-out infinite;
    position: absolute; /* बटन के सापेक्ष पोजीशन करें */
    right: 8px; /* बटन के दाईं ओर से दूरी */
    top: 50%;
    transform: translateY(-50%);
}

/* स्पिन एनीमेशन */
@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Responsive adjustments for filters */
@media (max-width: 600px) {
    .offers-filters {
        flex-direction: column; /* Stack filters vertically on small screens */
        gap: 10px;
    }
}

#rechargeData {
    padding: 10px;
}

.amount-group {
    display: flex;
    align-items: center;
}

.amount-label {
    width: 80px;
    margin-right: 10px;
}

.amount-input {
    display: flex;
    align-items: center;
    width: 100%;
}

.amount-input input {
    flex-grow: 1;
    margin-right: 10px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    padding: 20px;
    max-width: 80%;
    margin: 0 auto;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 25%;
    padding: 10px;
    text-align: center;
    transition: border-color 0.3s ease, border-width 0.3s ease;
}

.service-item:hover {
    border-color: green;
    border-width: 1px;
}

.service-item img {
    height: 70px;
    width: 70px;
    margin-bottom: 1px;
}

 .service-item p {
        font-size: 0.9em; /* Slightly smaller font for compactness */
        font-weight: 600;
        margin: 0; /* Remove default paragraph margin */
        color: #007bff; /* Highlight service names */
    }
.service-item a {
    text-decoration: none;
}

.transaction-history table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.transaction-history th, .transaction-history td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
}

.transaction-history th {
    background-color: #f2f2f2;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

.transaction-history tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.transaction-history .status-success {
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    background-color: #5fe65f;
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.transaction-history .status-cooling-period {
    color: white; /* Ya black, agar orange background dark ho */
    font-weight: bold;
    padding: 5px 10px;
    background-color: #3fc6df; /* Ya koi aur color jo aapko theek lage, jaise yellow ya light blue */
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.transaction-history .status-pending {
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    background-color: #FFA500;
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.transaction-history .status-failed {
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    background-color: red;
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.transaction-history .status-refunded {
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    background-color: lightblue;
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.wallet-balance {
    margin-left: 20px;
    padding: 8px 12px;
    border: 1px solid #4CAF50;
    border-radius: 4px;
    background-color: #E8F5E9;
    color: #4CAF50;
    font-weight: bold;
}

.user-transaction-history {
    width: 95%;
    margin: 20px auto;
    border-collapse: collapse;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.user-transaction-history table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.user-transaction-history th, .user-transaction-history td {
    border-bottom: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
}

.user-transaction-history th {
    background-color: #f2f2f2;
    font-weight: 600;
}

.user-transaction-history tr:nth-child(even) {
    background-color: #f9f9f9;
}

.user-transaction-history .status-success {
    color: green;
    font-weight: 600;
}

.user-transaction-history .status-pending {
    color: orange;
    font-weight: 600;
}

.user-transaction-history .status-failed {
    color: red;
    font-weight: 600;
}

.user-transaction-history .status-refunded {
    color: blue;
    font-weight: 600;
}

/* Media Queries */

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 3px 10px 5px 4px ;
        position: relative;
    }
.main-footer{
        display: none; /* मुख्य फ़ुटर को छिपाने के लिए */
    }
    .logo-marquee-container {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .marquee-container {
        width: 100%;
        margin-top: 10px;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        text-align: center;
        position: absolute;
        top: 150px;
        left: 0;
        background-color: #33439b;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 10;
    }

    .main-nav.show {
        display: flex;
    }

    .main-nav a.nav-link {
        padding: 10px;
        text-decoration: none;
        border-bottom: 1px solid #ddd;
    }

    .auth-buttons {
        flex-direction: column;
        width: 100%;
    }

    .auth-buttons a.auth-link {
        width: 100%;
        text-align: center;
    }

    .hamburger-menu {
        display: block;
        cursor: pointer;
        position: absolute;
        bottom: 10px;
        right: 10px;
        background-color: floralwhite;
    }

    .hamburger-menu span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background: black;
    }

    .main-content {
        flex: 1;
    }

    body {
        margin-bottom: 40px;
    }

    .recharge-container {
        flex-direction: column;
        align-items: center;
    }

    .recharge-form, .recharge-schemes, .transaction-history {
        width: 90%;
        margin-right: 0;
    }

    .form-group select {
        width: 100%;
        max-height: 200px;
        overflow-y: auto;
    }

    .transaction-history table,
    .transaction-history thead,
    .transaction-history tbody,
    .transaction-history th,
    .transaction-history td,
    .transaction-history tr {
        display: block;
        padding: 3px;
    }

    .transaction-history thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .transaction-history tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
    }

    .transaction-history td {
        border: none;
        position: relative;
        padding-left: 0;
        text-align: left;
    }

    .transaction-history td:before {
        position: static;
        display: block;
        width: auto;
        padding-right: 0;
        white-space: normal;
        font-weight: bold;
        content: attr(data-label);
        margin-bottom: 5px;
    }

    .transaction-history .status-success,
    .transaction-history .status-pending,
    .transaction-history .status-failed,
    .transaction-history .status-refunded {
        display: block;
        padding: 5px 10px;
        margin-top: 5px;
    }

    .logo-container {
        align-self: flex-start;
    }

    .wallet-info {
        order: 3;
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: flex-start;
        margin-top: 10px;
    }

    .wallet-balance {
        margin-right: 3px;
        padding: 5px 3px;
        border: 1px solid #4CAF50;
        border-radius: 4px;
        background-color: #E8F5E9;
        color: #4CAF50;
        font-weight: bold;
    }

    .logout-btn {
        text-decoration: none;
        padding: 5px 10px;
        background-color: #f44336;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }
    
    .notification-bell-container {
        margin-left: 5px; /* Keep a small margin */
        margin-right: 5px;
        width: 40px; /* Fixed width */
        height: 40px; /* Fixed height */
    }
    .notification-dropdown-content {
        left: 50%; /* Center dropdown horizontally */
        right: auto;
        transform: translateX(-50%); /* Pull back by half its width */
        width: 95%; /* Make it wider on small screens */
        max-width: 95%; /* Ensure it doesn't overflow */
        margin-left: 0; /* Remove previous margin-left */
    }


    .user-transaction-history table, .user-transaction-history thead, .user-transaction-history tbody, .user-transaction-history th, .user-transaction-history td, .user-transaction-history tr {
        display: block;
    }

    .user-transaction-history thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .user-transaction-history tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
    }

    .user-transaction-history td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: left;
    }

    .user-transaction-history td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        content: attr(data-label);
    }
}

/* Tablet Styles (min-width: 601px) */
@media (min-width: 601px) {
    .transaction-history table {
        display: none;
    }

    .transaction-history .ticket-view {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 15px;
    }

    .transaction-history .ticket {
        border: 1px solid #ddd;
        padding: 5px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .transaction-history .ticket .detail {
        display: flex;
        margin-bottom: 2px;
    }

    .transaction-history .ticket .detail strong {
        width: 120px;
        font-weight: bold;
        margin-right: 10px;
        white-space: nowrap;
    }

    .transaction-history .ticket .detail span {
        flex-grow: 1;
    }
}

/* Desktop Styles (min-width: 769px) */
@media (min-width: 769px) {
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
    }

   

    .main-nav {
        display: flex;
        align-items: center;
        flex: 3;
        justify-content: center;
    }

    .main-nav a.nav-link {
        margin: 0 10px;
        text-decoration: none;
        color: white;
        white-space: nowrap;
        border-style: solid;
    }

    .wallet-info {
        display: flex;
        align-items: center;
        flex: 2;
        justify-content: flex-end;
        order: 3;
    }

    .wallet-balance {
        margin-right: 10px;
        padding: 5px 10px;
        border: 1px solid #4CAF50;
        border-radius: 4px;
        background-color: #E8F5E9;
        color: #4CAF50;
        font-weight: bold;
    }

    .logout-btn {
        text-decoration: none;
        padding: 5px 10px;
        background-color: #f44336;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

    .recharge-container {
        display: flex;
        justify-content: space-between;
        padding: 20px;
    }

    .recharge-form, .recharge-schemes, .transaction-history {
        flex: 1;
        margin: 10px;
        padding: 20px;
        border: 1px solid #ddd;
    }
}

/* Small Mobile Styles (max-width: 600px) */
@media (max-width: 600px) {
    .services-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding: 10px;
        MARGIN: 1px 1px 41px 1px;
    }

    .logo-img {
        display: none; /* Ya visibility: hidden; */
    }
    
    .service-item {
        padding: auto-fit;
    }

    .service-item p {
        font-size: 13px;
        color: steelblue;
        
    }
    .service-item a { /* लिंक से अंडरलाइन हटाएं */
        text-decoration: none;
    }
    
}
.addmoney-form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.addmoney-heading {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input[type="number"] {
    width: calc(100% - 22px); /* Adjust width for padding and border */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-buttons {
    text-align: center;
}

.addmoney-button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.addmoney-button:hover {
    background-color: #45a049;
}

/* Mobile-friendly styles */
@media screen and (max-width: 600px) {
    .addmoney-form {
        width: 95%; /* Adjust width for smaller screens */
        padding: 10px;
    }

    .addmoney-button {
        width: 100%; /* Full width button on mobile */
    }
}
.offers-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

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

.offers-table th {
    background-color: #f2f2f2;
}

.amount-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1em;
}

.amount-button:hover {
    background-color: #0056b3;
}

.plan-search-container {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.plan-search-container input[type="text"] {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.plan-search-container button {
    padding: 8px 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.plan-search-container button:hover {
    background-color: #1e7e34;
}
.recharge-schemes {
    /* Adjust width as needed */
    width: 95%;
    margin: 20px auto;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 5px;
}

.plan-search-container {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.plan-search-container input[type="text"] {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.plan-search-container button {
    padding: 8px 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.plan-search-container button:hover {
    background-color: #1e7e34;
}

.offers-table-container {
    max-height: 300px; /* Adjust the height as needed */
    overflow-y: auto; /* Enable vertical scrolling */
    border: 1px solid #eee; /* Optional border for the scrollable area */
    border-radius: 4px;
}

.offers-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0; /* Remove default top margin */
}

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

.offers-table th {
    background-color: #f8f8f8; /* Light background for header */
    font-weight: bold;
}

.offers-table tbody tr:nth-child(even) {
    background-color: #f2f2f2; /* Optional: Alternate row background */
}

.amount-button {
    background-color: #f0f0f0; /* Light background for buttons */
    color: #333; /* Dark text color */
    border: 1px solid #ccc;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    text-align: center;
    display: block; /* Make button take full width of the cell */
    margin: 5px auto; /* Center the button */
}

.amount-button:hover {
    background-color: #e0e0e0;
}
/* Default styling for the Get Bill Details button */
 .get-info-button {
     background-color: #007bff; /* A nice blue color */
     color: white;
     padding: 10px 20px;
     border: none;
     border-radius: 5px;
     font-size: 16px;
     cursor: pointer;
     transition: background-color 0.3s ease; /* Smooth transition for hover effect */
     position: relative; /* To position the loading spinner inside */
     overflow: hidden; /* Clip the spinner if needed */
 }

 /* Hover effect */
 .get-info-button:hover {
     background-color: #0056b3;
 }

 /* Focus effect (optional, for accessibility) */
 .get-info-button:focus {
     outline: none;
     box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);
 }

 /* Styling for the button when it's in the 'loading' state */
 .get-info-button.loading {
     background-color: #165190; /* A greyed-out color to indicate loading */
     color: transparent; /* Hide the text */
     cursor: not-allowed; /* Indicate that the button is not clickable */
     position: relative; /* For the spinner positioning */
 }

 /* Loading spinner animation */
 .get-info-button.loading::after {
     content: '';
     position: absolute;
     top: 50%;
     left: 50%;
     width: 20px;
     height: 20px;
     margin-top: -10px;
     margin-left: -10px;
     border: 2px solid white;
     border-top-color: transparent;
     border-radius: 50%;
     animation: spin 1s linear infinite;
 }

 /* --- More advanced styling (optional) --- */

 /* Slightly raised effect */
 .get-info-button.raised {
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
 }

 .get-info-button.raised:hover {
     box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
 }

 /* Button with an icon (example - you'd need to include an icon library or use a custom icon) */
 .get-info-button.with-icon {
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .get-info-button.with-icon i { 
     margin-right: 8px;
 }
 
 .custom-select-wrapper {
        position: relative;
        width: 100%;
    }

    .custom-select-trigger {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
        background-color: white;
        cursor: pointer;
    }

    .custom-select-trigger span {
        font-size: 15px;
    }

    .custom-select-trigger:after {
        content: "▼";
        font-size: 12px;
        position: absolute;
        right: 10px;
    }

    .custom-options {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        border: 1px solid #ccc;
        border-top: none;
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
        background-color: white;
        z-index: 10;
        display: none;
        max-height: 200px;
        overflow-y: auto;
    }

    .custom-options.open {
        display: block;
    }

    .custom-options input[type="text"] {
        padding: 8px;
        border-bottom: 1px solid #eee;
        width: calc(100% - 16px);
        box-sizing: border-box;
        font-size: 15px;
    }

    .custom-options .option {
        padding: 8px;
        cursor: pointer;
        font-size: 15px;
    }

    .custom-options .option:hover {
        background-color: #f0f0f0;
    }

    .custom-options .option.selected {
        background-color: #007bff;
        color: white;
    }

   

    .additional-field {
        margin-top: 10px;
    }
    /* Style for the "Pay Bill" button */
.recharge-button {
    /* Existing styles for your button */
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease; /* Optional: for a smooth hover effect */
    position: relative; /* Needed for the spinner to be positioned correctly */
    overflow: hidden; /* Clip the spinner if it goes outside */
}

.recharge-button:hover {
    background-color: #0056b3;
}

/* Style for the button when it's in the loading state */
.recharge-button.loading {
    color: transparent !important; /* Hide the text */
    pointer-events: none; /* Disable further clicks while loading */
}

/* CSS for the fast-moving loading spinner */
.recharge-button.loading::after {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    border: 0.2em solid rgba(255, 255, 255, 0.7); /* Light color for the spinner */
    border-top-color: #fff; /* White top color for visibility */
    animation: fastSpin 0.6s infinite linear; /* Adjust the duration for speed */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Keyframes for the fast spinning animation */
@keyframes fastSpin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}