/* Enhanced filter styling */
.subscribers-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    align-items: center;
}

.subscribers-filters .filter-group {
    display: flex;
    align-items: center;
    position: relative;
}

.subscribers-filters label {
    margin-right: 10px;
    font-weight: 600;
    color: #23282d;
    min-width: 60px;
}

.subscribers-filters select {
    min-width: 200px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid #dcdcde;
    padding: 0 10px;
    background-color: #f6f7f7;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
    transition: all 0.2s ease;
}

.subscribers-filters select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 2px solid transparent;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.subscribers-filters input[type="text"] {
    min-width: 300px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid #dcdcde;
    padding: 0 35px 0 10px;
    background-color: #f6f7f7;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
    transition: all 0.2s ease;
}

.subscribers-filters input[type="text"]:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 2px solid transparent;
}

.search-input-wrapper .dashicons {
    position: absolute;
    right: 10px;
    color: #646970;
    pointer-events: none;
}

.subscribers-filters .button {
    height: 40px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f6f7f7;
    border-color: #dcdcde;
    color: #50575e;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-left: auto;
}

.subscribers-filters .button:hover {
    background-color: #f0f0f1;
    border-color: #c3c4c7;
    color: #3c434a;
}

.subscribers-filters .button .dashicons {
    margin-right: 5px;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Enhanced stats cards */
.subscribers-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    flex: 1;
    min-width: 200px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    margin-top: 0;
    color: #50575e;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.stat-card .stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #23282d;
    margin: 15px 0 5px;
    position: relative;
    z-index: 2;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #2271b1;
}

.stat-card.active-subscribers::before {
    background-color: #0a7d33;
}

.stat-card.paused-subscribers::before {
    background-color: #b78105;
}

.stat-card.cancelled-subscribers::before {
    background-color: #d63638;
}

.stat-card.total-revenue::before {
    background-color: #2271b1;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.03);
    z-index: 1;
}

/* Table styling enhancements */
.subscribers-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

.subscribers-table th {
    background-color: #f9f9f9;
    font-weight: 600;
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
    color: #23282d;
    font-size: 14px;
}

.subscribers-table td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.subscribers-table tr:last-child td {
    border-bottom: none;
}

.subscribers-table tr:hover td {
    background-color: #f9f9f9;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .subscribers-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .subscribers-filters .filter-group {
        margin-bottom: 15px;
        width: 100%;
    }
    
    .subscribers-filters label {
        min-width: 80px;
    }
    
    .subscribers-filters select,
    .subscribers-filters input[type="text"] {
        width: 100%;
        flex-grow: 1;
    }
    
    .subscribers-filters .button {
        width: 100%;
        margin-left: 0;
    }
    
    .search-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-group label {
        margin-bottom: 5px;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
}

/* Improve table responsiveness */
@media screen and (max-width: 1200px) {
    .subscribers-table {
        display: block;
        overflow-x: auto;
    }
}

/* Add this to your subscribers CSS file */
.renewal-type {
    display: inline-block;
    font-size: 12px;
    color: #646970;
    font-style: italic;
    margin-left: 5px;
}

/* Make the subscription details table more readable */
.subscription-details table th,
.subscription-details table td {
    padding: 12px;
}

.subscription-details table th {
    background-color: #f0f0f1;
    font-weight: 600;
    color: #23282d;
} 