/* Disabled button and spinner styles */
#fetch_lnps_data:disabled {
    border-color: #ccc;
    background: #f7f7f7;
    cursor: default;
    color: #9e9e9e;
}
.spinner-voip {
    margin-top: 0;
    float: none;
    top: -5px;
    position: relative;
}

/* ====== ADMIN LNP TABLE STYLES ====== */
.lnp-table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.lnp-table thead {
    background: #2271b1;
}

.lnp-table th {
    color: #fff !important;
    font-weight: 600;
}

.lnp-table th, .lnp-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

.lnp-table tbody tr:hover {
    background: #f1f6fb;
    transition: background 0.2s ease-in-out;
}

/* Zebra striping */
.lnp-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

/* Header button styling */
#fetch_lnps_data {
    background-color: #2c7be5;
    color: white;
    border-radius: 4px;
    padding: 6px 12px;
    border: none;
    cursor: pointer;
}
#fetch_lnps_data:hover {
    background-color: #1a68d1;
}

/* Spinner positioning fix */
.spinner-voip.is-active {
    visibility: visible;
}
.spinner-voip {
    margin-left: 10px;
    visibility: hidden;
}

/* ====== ADMIN CAMPAIGN TABLE STYLES ====== */
.campaign-table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.campaign-table thead {
    background: #2271b1;
}

.campaign-table th {
    color: #fff !important;
    font-weight: 600;
}

.campaign-table th, .campaign-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

.campaign-table tbody tr:hover {
    background: #f1f6fb;
    transition: background 0.2s ease-in-out;
}

/* Zebra striping */
.campaign-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

/* Header button styling */
#fetch_campaigns_data {
    background-color: #2c7be5;
    color: white;
    border-radius: 4px;
    padding: 6px 12px;
    border: none;
    cursor: pointer;
}
#fetch_campaigns_data:hover {
    background-color: #1a68d1;
}

/* Spinner positioning fix */
.spinner-campaign.is-active {
    visibility: visible;
}
.spinner-campaign {
    margin-left: 10px;
    visibility: hidden;
}

/* ====== FRONTEND LNP TABLE STYLES ====== */
.lnp-table-container {
    margin: 30px 0;
    overflow-x: auto;
    border-radius: 12px;
    background: #fff;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

table.lnp-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    border-radius: 10px;
    overflow: hidden;
}

div#lnp-orders-table_filter {
    display: none;
}

table.lnp-table thead th {
    background: linear-gradient(135deg, #0073aa, #005f8d);
    color: #fff;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.5px;
}

table.lnp-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    color: #333;
}

table.lnp-table tbody tr:nth-child(even) {
    background: #f9fbfd;
}

table.lnp-table tbody tr:hover {
    background: #eaf6ff;
    transition: background 0.2s ease-in-out;
}

/* ====== FRONTEND CAMPAIGN TABLE STYLES ====== */
.campaign-table-container {
    margin: 30px 0;
    overflow-x: auto;
    border-radius: 12px;
    background: #fff;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

table.campaign-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    border-radius: 10px;
    overflow: hidden;
}

div#campaign-table_filter {
    display: none;
}

table.campaign-table thead th {
    background: linear-gradient(135deg, #0073aa, #005f8d);
    color: #fff;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.5px;
}

table.campaign-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    color: #333;
}

table.campaign-table tbody tr:nth-child(even) {
    background: #f9fbfd;
}

table.campaign-table tbody tr:hover {
    background: #eaf6ff;
    transition: background 0.2s ease-in-out;
}

/* ====== RESPONSIVE STYLING FOR BOTH TABLES ====== */
@media (max-width: 768px) {
    table.lnp-table thead, 
    table.campaign-table thead {
        display: none;
    }
    
    table.lnp-table, 
    table.lnp-table tbody, 
    table.lnp-table tr, 
    table.lnp-table td,
    table.campaign-table, 
    table.campaign-table tbody, 
    table.campaign-table tr, 
    table.campaign-table td {
        display: block;
        width: 100%;
    }
    
    table.lnp-table tr,
    table.campaign-table tr {
        margin-bottom: 15px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        padding: 10px;
    }
    
    table.lnp-table td,
    table.campaign-table td {
        text-align: right;
        padding: 10px 8px;
        position: relative;
    }
    
    table.lnp-table td::before,
    table.campaign-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: 600;
        color: #0073aa;
        text-transform: capitalize;
    }
}
