/* Modern Subscriber Manager Dashboard Styles */
.subscriber-manager-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    font-family: 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: #2d3748;
    background: #f8fafc;
}

.sm-header {
    background: linear-gradient(135deg, #4c6ef5 0%, #3b5bdb 100%);
    color: white;
    padding: 30px 40px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.sm-header::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.sm-header::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.sm-header h1 {
    margin: 0 0 15px;
    font-size: 28px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.sm-stats {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    min-width: 200px;
    flex: 1;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.25);
}

.stat-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.stat-card p {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.sm-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.sm-form-section, .sm-list-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.sm-form-section:hover, .sm-list-section:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.sm-form-section h2, .sm-list-section h2 {
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf2f7;
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
}

.sm-form .form-section-header {
    margin: 25px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf2f7;
    font-size: 17px;
    font-weight: 600;
    color: #4c6ef5;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #2d3748;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4c6ef5;
    box-shadow: 0 0 0 3px rgba(76, 110, 245, 0.15);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.sm-button {
    background: linear-gradient(to right, #4c6ef5, #3b5bdb);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: block;
    text-align: center;
    box-shadow: 0 4px 6px rgba(76, 110, 245, 0.3);
}

.sm-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(76, 110, 245, 0.4);
}

.sm-search-box {
    margin-bottom: 20px;
    position: relative;
}

.sm-search-box::before {
    content: "\f179";
    font-family: dashicons;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.sm-search-box input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.sm-search-box input:focus {
    border-color: #4c6ef5;
    box-shadow: 0 0 0 3px rgba(76, 110, 245, 0.15);
    background: white;
}

.sm-subscriber-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
    border-radius: 12px;
    overflow: hidden;
}

.sm-subscriber-table th {
    background: #4c6ef5;
    color: white;
    text-align: left;
    padding: 16px 20px;
    font-weight: 600;
    border: none;
}

.sm-subscriber-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #edf2f7;
    background: white;
}

.sm-subscriber-table tbody tr {
    transition: background 0.3s ease;
}

.sm-subscriber-table tbody tr:hover {
    background-color: #f8fafc;
}

.sm-subscriber-table tbody tr:last-child td {
    border-bottom: none;
}

.sm-action-btn {
    padding: 9px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sm-action-btn::before {
    font-family: dashicons;
    font-size: 16px;
}

.view-btn {
    background: #edf2ff;
    color: #4c6ef5;
}

.view-btn::before {
    content: "\f177";
}

.view-btn:hover {
    background: #e0e7ff;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(76, 110, 245, 0.15);
}

.edit-btn {
    background: #fff4e6;
    color: #fd7e14;
    margin-left: 8px;
}

.edit-btn::before {
    content: "\f464";
}

.edit-btn:hover {
    background: #ffe8cc;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(253, 126, 20, 0.15);
}

.sm-no-results {
    text-align: center;
    padding: 40px;
    color: #a0aec0;
    font-size: 16px;
    background: white;
    border-radius: 12px;
}

.sm-notice {
    background: #fff8e5;
    border-left: 4px solid #ffb900;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 16px;
}

/* Modal Styles */
.sm-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.sm-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 16px;
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    animation: modalAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sm-close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.sm-close-modal:hover {
    color: #e53e3e;
    background: #fff5f5;
}

/* View Details Styles */
.sm-view-container h2 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf2f7;
    color: #4c6ef5;
    font-size: 24px;
}

.sm-view-section {
    margin-bottom: 30px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
}

.sm-view-section h3 {
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
    font-size: 18px;
    font-weight: 600;
}

.sm-view-row {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.sm-view-label {
    width: 200px;
    font-weight: 600;
    color: #4a5568;
    font-size: 15px;
}

.sm-view-value {
    flex: 1;
    font-weight: 500;
    color: #2d3748;
    font-size: 16px;
}

/* Responsive design */
@media (max-width: 1200px) {
    .sm-container {
        flex-direction: column;
    }
    
    .sm-header {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .sm-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-card {
        min-width: 100%;
    }
    
    .sm-header {
        padding: 20px;
        border-radius: 12px;
    }
    
    .sm-header h1 {
        font-size: 24px;
    }
    
    .sm-view-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .sm-view-label {
        width: 100%;
    }
}

/* Loading and Error States */
.sm-loading, .sm-error {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    border-radius: 12px;
}

.sm-loading {
    color: #4c6ef5;
    background: #f0f5ff;
}

.sm-error {
    color: #e53e3e;
    background: #fff5f5;
}

/* Floating action button */
.sm-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #4c6ef5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 6px 15px rgba(76, 110, 245, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    text-decoration: none;
}

.sm-fab:hover {
    transform: translateY(-5px) rotate(90deg);
    box-shadow: 0 10px 25px rgba(76, 110, 245, 0.5);
}