﻿input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}


.table-container {
    position: relative;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
}

.table-loading .loading-overlay {
    display: flex;
}

/* Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Styles */
#errorMessage {
    color: red;
    display: none;
}

/* Spinner Styles */
.loading-spinner {
    color: white;
    font-size: 3rem;
}







.info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    text-align: center;
}

    .info div {
        font-size: 14px;
        color: #000;
    }

        .info div span {
            display: block;
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .info div i {
            display: block;
            font-size: 18px;
            color: #5b73e8;
            margin-bottom: 4px;
        }

.price {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #000;
}


.note {
    font-size: 11px;
    color: #888;
    margin-top: 10px;
}

.subscribe-button {
    margin-top: 15px;
    background-color: #000;
    color: #ffcc00;
    padding: 10px 0;
    text-align: center;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.edit-button {
    margin-top: 15px;
    background-color: #000;
    color: #ffcc00;
    padding: 10px 0;
    text-align: center;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}


/* Custom Modal Styles - Renamed from .modal to .custom-modal */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1051; /* Higher than Bootstrap's default 1050 */
}

    .custom-modal.active {
        opacity: 1;
        visibility: visible;
    }

    .custom-modal .modal-backdrop {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(5px);
        z-index: -1;
    }

    .custom-modal .modal-container {
        background: white;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        width: 90%;
        max-width: 400px;
        transform: translateY(20px);
        transition: transform 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .custom-modal.active .modal-container {
        transform: translateY(0);
    }

    .custom-modal .modal-close {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(0,0,0,0.05);
        cursor: pointer;
        transition: all 0.2s ease;
        z-index: 10;
    }

        .custom-modal .modal-close:hover {
            background: rgba(0,0,0,0.1);
        }

        .custom-modal .modal-close svg {
            width: 20px;
            height: 20px;
        }

    .custom-modal .modal-header {
        padding: 24px 24px 16px;
        text-align: center;
        background: linear-gradient(135deg, #6e8efb, #a777e3);
        color: white;
        position: relative;
    }



.subscribe-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(110, 142, 251, 0.3);
}

    .subscribe-now:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(110, 142, 251, 0.4);
    }

    .subscribe-now svg {
        margin-left: 8px;
        transition: transform 0.2s ease;
    }

    .subscribe-now:hover svg {
        transform: translateX(4px);
    }

.validity {
    margin-top: 12px;
    font-size: 14px;
    color: #000;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }

    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.full-width-field {
    width: 100%;
}

.form-group {
    margin-bottom: 1rem;
}

.modal-content {
    border: none;
}

.input-group.border-bottom {
    border-bottom: 1px solid #dee2e6 !important;
}

.form-control:focus, .form-select:focus {
    box-shadow: none;
}

.form-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
}

.form-label.small {
    font-size: 0.75rem;
}

.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.05);
}

.suspended-banner {
    position: absolute;
    top: -1px;
    right: -1px;
    background: #ff3b30;
    color: white;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 0 20px 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: -2px 2px 4px rgba(0,0,0,0.1);
    z-index: 1;
}



/* Network Selection */
.network-selection {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 8px 0 15px !important;
    flex-wrap: wrap;
}

.network-logo-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100px;
}

    .network-logo-wrapper:hover {
        transform: scale(1.05);
    }

    .network-logo-wrapper.selected {
        transform: scale(1.1);
    }

.logo-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.network-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    padding: 15px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.network-logo-wrapper.selected .network-logo {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border: 2px solid #4361ee;
}

.package-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    color: white;
    border-radius: 50%;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    border: 3px solid white;
    padding: 0 5px;
    z-index: 2;
}

.network-name {
    margin-top: 12px;
    font-weight: 700;
    color: #666;
    font-size: 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.network-logo-wrapper.selected .network-name {
    color: #4361ee;
    font-weight: 800;
}

.network-logo-wrapper.selected .logo-container::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #4361ee;
    border-radius: 2px;
}

/* Network Specific Colors */
#jazz-count {
    background: linear-gradient(135deg, #f72585, #b5179e);
    box-shadow: 0 3px 10px rgba(247,37,133,0.3);
}

#telenor-count {
    background: linear-gradient(135deg, #4cc9f0, #4895ef);
    box-shadow: 0 3px 10px rgba(76,201,240,0.3);
}

#zong-count {
    background: linear-gradient(135deg, #f8961e, #f3722c);
    box-shadow: 0 3px 10px rgba(248,150,30,0.3);
}

#ufone-count {
    background: linear-gradient(135deg, #43aa8b, #4d908e);
    box-shadow: 0 3px 10px rgba(67,170,139,0.3);
}

.network-logo-wrapper.selected#jazz-wrapper .network-logo {
    border-color: #f72585;
}

.network-logo-wrapper.selected#telenor-wrapper .network-logo {
    border-color: #4cc9f0;
}

.network-logo-wrapper.selected#zong-wrapper .network-logo {
    border-color: #f8961e;
}

.network-logo-wrapper.selected#ufone-wrapper .network-logo {
    border-color: #43aa8b;
}

.network-logo-wrapper.selected#jazz-wrapper .logo-container::after {
    background: #f72585;
}

.network-logo-wrapper.selected#telenor-wrapper .logo-container::after {
    background: #4cc9f0;
}

.network-logo-wrapper.selected#zong-wrapper .logo-container::after {
    background: #f8961e;
}

.network-logo-wrapper.selected#ufone-wrapper .logo-container::after {
    background: #43aa8b;
}

.network-logo-wrapper.selected#jazz-wrapper .network-name {
    color: #f72585;
}

.network-logo-wrapper.selected#telenor-wrapper .network-name {
    color: #4cc9f0;
}

.network-logo-wrapper.selected#zong-wrapper .network-name {
    color: #f8961e;
}

.network-logo-wrapper.selected#ufone-wrapper .network-name {
    color: #43aa8b;
}

@media (max-width: 576px) {
    #receiptModal .modal-dialog {
        margin: 1rem auto;
        max-width: 95%;
    }
}

.table td, .table th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-cancelled {
    background-color: #dc3545;
    color: white;
}

.badge-pending {
    background-color: #ffc107;
    color: black;
}

.badge-processing {
    background-color: #0d6efd;
    color: white;
}

.badge-refunded {
    background-color: #17a2b8;
    color: white;
}

.badge-declined {
    background-color: #a71d2a;
    color: white;
}

.badge-rejected {
    background-color: #fd7e14;
    color: white;
}
.badge-failed {
    background-color: #fd7e14;
    color: white;
}

.badge-reversed {
    background-color: #6f42c1;
    color: white;
}

.badge-default {
    background-color: #6c757d;
    color: white;
}
