@charset "utf-8";
/* CSS Document */
/**
 * AI Web Upgrade - User Dashboard Styles
 * Styles for Ultimate Member integration tabs
 */

/* ===========================
   Usage Stats Cards
   =========================== */
.aiwebupgrade-usage-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.usage-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.usage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.usage-icon {
    font-size: 36px;
    opacity: 0.9;
}

.usage-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.usage-value {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

/* ===========================
   Audit History
   =========================== */
.aiwebupgrade-audit-history {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.aiwebupgrade-audit-history h3 {
    margin: 0 0 25px 0;
    font-size: 24px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.audits-table-wrapper {
    overflow-x: auto;
}

.audits-table {
    width: 100%;
    border-collapse: collapse;
}

.audits-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.audits-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.audits-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.audits-table tbody tr:hover {
    background-color: #f8f9fa;
}

.audits-table td {
    padding: 15px;
    vertical-align: middle;
}

.website-cell {
    display: flex;
    flex-direction: column;
}

.website-cell strong {
    color: #2c3e50;
    margin-bottom: 4px;
}

.website-cell small {
    color: #7f8c8d;
    font-size: 12px;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-processing {
    background-color: #fff3cd;
    color: #856404;
}

.status-failed {
    background-color: #f8d7da;
    color: #721c24;
}

/* Type Badges */
.type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.type-free {
    background-color: #e8e8e8;
    color: #666;
}

.type-pro {
    background-color: #e3f2fd;
    color: #1976d2;
}

.type-enterprise {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

/* Action Buttons */
.btn-view-audit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-view-audit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* No Audits State */
.no-audits {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.no-audits p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* ===========================
   Subscription Tab
   =========================== */
.aiwebupgrade-um-subscription-tab {
    max-width: 1200px;
    margin: 0 auto;
}

.current-subscription {
    margin-bottom: 50px;
}

.current-subscription h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.current-plan-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.plan-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.plan-header h2 {
    margin: 15px 0 0 0;
    font-size: 32px;
    color: #2c3e50;
}

.plan-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-label {
    font-weight: 600;
    color: #7f8c8d;
}

.detail-value {
    font-weight: 700;
    color: #2c3e50;
    font-size: 18px;
}

.active-features h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.feature-enabled {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 6px;
    color: #2e7d32;
}

.feature-icon {
    font-weight: bold;
    font-size: 16px;
}

/* ===========================
   Tier Comparison Table
   =========================== */
.tier-comparison {
    margin-bottom: 40px;
}

.tier-comparison h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.comparison-table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.comparison-table th {
    padding: 20px;
    font-weight: 600;
}

.tier-header {
    text-align: center;
}

.tier-header h4 {
    margin: 10px 0 0 0;
    font-size: 18px;
}

.popular-badge {
    display: inline-block;
    background: #ffd700;
    color: #2c3e50;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-top: 8px;
    text-transform: uppercase;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.comparison-table tbody tr:hover {
    background-color: #f8f9fa;
}

.comparison-table td {
    padding: 15px;
    text-align: center;
}

.feature-name {
    text-align: left !important;
    font-weight: 500;
    color: #2c3e50;
}

.check-mark {
    color: #27ae60;
    font-size: 24px;
    font-weight: bold;
}

.cross-mark {
    color: #e74c3c;
    font-size: 20px;
}

.feature-text {
    font-weight: 600;
    color: #3498db;
}

/* Upgrade Buttons */
.btn-upgrade,
.btn-contact,
.btn-current,
.btn-contact-us {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-upgrade {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-contact {
    background: #95a5a6;
    color: white;
}

.btn-contact:hover {
    background: #7f8c8d;
}

.btn-current {
    background: #e0e0e0;
    color: #7f8c8d;
    cursor: not-allowed;
}

.btn-contact-us {
    background: #3498db;
    color: white;
}

.btn-contact-us:hover {
    background: #2980b9;
}

/* ===========================
   Upgrade Notice
   =========================== */
.upgrade-notice {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
}

.notice-icon {
    font-size: 48px;
}

.notice-content h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
}

.notice-content p {
    margin: 0 0 15px 0;
    color: #5a5a5a;
}

/* ===========================
   Quick Action
   =========================== */
.quick-action {
    text-align: center;
    margin-top: 30px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-large {
    font-size: 18px;
    padding: 18px 50px;
}

/* Limit Reached */
.limit-reached {
    text-align: center;
    padding: 40px;
    background: #fff3cd;
    border-radius: 12px;
    margin-top: 30px;
}

.limit-reached p {
    font-size: 18px;
    color: #856404;
    margin-bottom: 20px;
}

/* ===========================
   Modal
   =========================== */
.aiwebupgrade-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    padding: 10px 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #000;
}

.modal-body {
    padding: 30px;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .aiwebupgrade-usage-stats {
        grid-template-columns: 1fr;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px;
        font-size: 13px;
    }
    
    .tier-header h4 {
        font-size: 14px;
    }
    
    .usage-value {
        font-size: 22px;
    }
}

/* ===========================
   Utility Classes
   =========================== */
.text-muted {
    color: #95a5a6;
    font-style: italic;
}

.aiwebupgrade-tier-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
