/**
 * Futturu Plans Tables - Frontend Styles
 * Modern, responsive, and professional design
 */

/* ============================================
   Base Container Styles
   ============================================ */
.futturu-plans-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.futturu-plans-table-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 40px;
}

/* ============================================
   Header Section
   ============================================ */
.futturu-plans-header {
    text-align: center;
    padding: 40px 30px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.futturu-plans-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 15px;
    color: #ffffff;
}

.futturu-plans-description {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   Table Structure
   ============================================ */
.futturu-plans-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.futturu-plans-row {
    display: table-row;
    border-bottom: 1px solid #eef2f7;
}

.futturu-plans-row:hover {
    background-color: #f8fafc;
}

.futturu-plans-cell {
    display: table-cell;
    padding: 18px 20px;
    vertical-align: middle;
    text-align: center;
    border-right: 1px solid #eef2f7;
}

.futturu-plans-cell:last-child {
    border-right: none;
}

/* Feature Name Column */
.futturu-plans-feature-name {
    font-weight: 600;
    color: #4a5568;
    text-align: left;
    width: 25%;
    background-color: #f8fafc;
}

/* ============================================
   Plan Headers
   ============================================ */
.futturu-plans-header-row {
    background-color: #f0f4f8;
}

.futturu-plans-plan-header {
    position: relative;
    padding: 25px 20px !important;
}

.futturu-plan-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.futturu-plan-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 12px;
}

/* ============================================
   Badges
   ============================================ */
.futturu-plan-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.futturu-badge-info {
    background-color: #e3f2fd;
    color: #1976d2;
}

.futturu-badge-success {
    background-color: #e8f5e9;
    color: #388e3c;
}

.futturu-badge-warning {
    background-color: #fff3e0;
    color: #f57c00;
}

.futturu-badge-danger {
    background-color: #ffebee;
    color: #d32f2f;
}

/* ============================================
   Highlighted Plans
   ============================================ */
.futturu-highlighted {
    background-color: #f5f7ff;
    position: relative;
}

.futturu-highlighted::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* ============================================
   Features
   ============================================ */
.futturu-feature-check {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    background-color: #c8e6c9;
    color: #2e7d32;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
}

.futturu-feature-cross {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    color: #bdbdbd;
    font-weight: 300;
    font-size: 1.3rem;
}

/* ============================================
   Value Proposition Row
   ============================================ */
.futturu-plans-value-row {
    background-color: #fafafa;
}

.futturu-plans-value-prop {
    font-style: italic;
    color: #546e7a;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ============================================
   CTA Section
   ============================================ */
.futturu-plans-cta {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.futturu-cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.futturu-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
    color: #ffffff;
}

.futturu-cta-subtext {
    margin-top: 15px;
    color: #718096;
    font-size: 0.95rem;
}

/* ============================================
   Tabs Navigation (for All Tables View)
   ============================================ */
.futturu-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.futturu-tab-btn {
    padding: 14px 28px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.futturu-tab-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.futturu-tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #ffffff;
}

.tab-icon {
    font-size: 1.3rem;
}

.futturu-tab-panel {
    display: none;
}

.futturu-tab-panel.active {
    display: block;
}

/* ============================================
   Messages
   ============================================ */
.futturu-plans-message {
    text-align: center;
    padding: 40px;
    color: #718096;
    font-size: 1.1rem;
    background: #f7fafc;
    border-radius: 8px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
    .futturu-plans-table {
        display: block;
    }
    
    .futturu-plans-row {
        display: block;
        margin-bottom: 30px;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        overflow: hidden;
    }
    
    .futturu-plans-cell {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-right: none;
        border-bottom: 1px solid #eef2f7;
    }
    
    .futturu-plans-cell:last-child {
        border-bottom: none;
    }
    
    .futturu-plans-feature-name {
        background-color: #f8fafc;
        font-weight: 700;
        width: 100%;
        border-bottom: 2px solid #e2e8f0;
    }
    
    .futturu-plans-header-row {
        margin-bottom: 20px;
    }
    
    .futturu-plans-plan-header {
        display: block !important;
        text-align: center;
        padding: 20px !important;
    }
}

@media (max-width: 768px) {
    .futturu-plans-header {
        padding: 30px 20px;
    }
    
    .futturu-plans-title {
        font-size: 1.8rem;
    }
    
    .futturu-plans-description {
        font-size: 1rem;
    }
    
    .futturu-plan-price {
        font-size: 1.5rem;
    }
    
    .futturu-cta-button {
        padding: 15px 35px;
        font-size: 1rem;
    }
    
    .futturu-tabs-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .futturu-tab-btn {
        justify-content: center;
    }
}

/* ============================================
   Admin Styles
   ============================================ */
.futturu-admin-wrap {
    max-width: 1400px;
}

.futturu-admin-tabs {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.futturu-admin-nav-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.futturu-admin-tab {
    padding: 12px 24px;
    background: #f7fafc;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    transition: all 0.3s ease;
}

.futturu-admin-tab:hover {
    background: #edf2f7;
}

.futturu-admin-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.futturu-admin-panel {
    display: none;
}

.futturu-admin-panel.active {
    display: block;
}

.futturu-plans-editor {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.futturu-plan-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.futturu-highlighted-plan {
    border-color: #667eea;
    background: #f5f7ff;
}

.futturu-plan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.futturu-plan-card-header h4 {
    margin: 0;
    color: #2d3748;
}

.futturu-plan-fields p {
    margin-bottom: 15px;
}

.futturu-plan-fields label {
    display: block;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 5px;
}

.futturu-plan-fields input[type="text"],
.futturu-plan-fields textarea,
.futturu-plan-fields select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
}

.futturu-features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.futturu-features-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.futturu-features-list li:last-child {
    border-bottom: none;
}

.futturu-shortcodes-info {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.futturu-shortcodes-info h2 {
    margin-top: 0;
    color: #2d3748;
}

.futturu-shortcodes-info ul {
    list-style: none;
    padding: 0;
}

.futturu-shortcodes-info li {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.futturu-shortcodes-info code {
    background: #edf2f7;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #667eea;
}

.futturu-instructions ol {
    line-height: 2;
    color: #4a5568;
}

/* Spinner for AJAX save */
.spinner.is-active {
    visibility: visible;
    float: none;
    margin-left: 10px;
}
