/* Frontend styling for WSP Post & Taxonomy Subscriptions Lite */

.wspptslite-dashboard {
    margin: 20px 0;
}
.sub-table thead td, .sub-table thead th{
	padding:20px 10px !important;
}

.wspptslite-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.wspptslite-tab {
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.wspptslite-tab:hover {
    opacity: 1;
}

.wspptslite-tab.active {
    opacity: 1;
    border-bottom-color: var(--wp--preset--color--primary, #0073aa);
    color: var(--wp--preset--color--primary, #0073aa);
}
 
.wspptslite-tab-content {
    display: none;
    animation: wspptslite-FadeIn 0.4s ease;
}

.wspptslite-tab-content.active {
    display: block;
}

@keyframes wspptslite-FadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Table styling - Minimalistic to adopt theme styles */
.wspptslite-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.wspptslite-table th,
.wspptslite-table td {
    padding: 1.2rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.wspptslite-table th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

/* Button styling - Clean and Premium */
.wspptslite-subscribe-btn {
    padding: 12px 24px;
    cursor: pointer;
    background: var(--wp--preset--color--primary, #0073aa);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.wspptslite-subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

.wspptslite-subscribe-btn.wspptslite-subscribed {
    background: #f0f0f0;
    color: #333;
    box-shadow: none;
}

.wspptslite-subscribe-btn.wspptslite-subscribed:hover {
    background: #e5e5e5;
    color: #000;
}

.wspptslite-subscribe-btn.wspptslite-loading {
    opacity: 0.7;
    cursor: wait;
}

/* Generic layout helpers */
.wspptslite-subscribe-wrapper {
    margin: 1.5rem 0;
}

.wspptslite-dashboard-header {
    background: #f9f9f9;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--wp--preset--color--primary, #0073aa);
}

.wspptslite-logout-link:hover {
    text-decoration: underline !important;
    opacity: 0.8;
}

.wspptslite-account-login-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    text-align: center;
}

.wspptslite-magic-login-form {
    margin-top: 20px;
}

.wspptslite-magic-email:focus {
    outline: none;
    border-color: var(--wp--preset--color--primary, #0073aa) !important;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.wspptslite-magic-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
