/* Settings Page Styles for Codeandcore User Registration for CF7 */

:root {
    --cnc-primary: #6c5ce7;
    --cnc-primary-hover: #5b4bc4;
    --cnc-secondary: #a29bfe;
    --cnc-bg: #f0f2f5;
    --cnc-card-bg: #ffffff;
    --cnc-text: #2d3436;
    --cnc-text-muted: #636e72;
    --cnc-success: #00b894;
    --cnc-error: #d63031;
    --cnc-warning: #fdcb6e;
    --cnc-border: #dfe6e9;
    --cnc-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --cnc-radius: 12px;
}

.cnc-cf7-settings-wrap {
    margin: 20px 20px 0 0;
    font-family: 'Poppins', sans-serif;
    color: var(--cnc-text);
}

.cnc-cf7-settings-wrap h1 {
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 28px;
    color: var(--cnc-text);
}

.cnc-cf7-settings-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 25px;
}

.cnc-cf7-card {
    background: var(--cnc-card-bg);
    border-radius: var(--cnc-radius);
    padding: 30px;
    box-shadow: var(--cnc-shadow);
    border: 1px solid var(--cnc-border);
    margin-bottom: 25px;
}

.cnc-cf7-analytics-card h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    margin-top: 0;
    color: var(--cnc-text);
}

.cnc-cf7-analytics-card h2 .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--cnc-primary);
}

.cnc-cf7-tracking-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.cnc-cf7-tracking-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--cnc-text-muted);
}

.cnc-cf7-tracking-list li .dashicons-yes {
    color: var(--cnc-success);
}

.cnc-cf7-notice-info {
    background: #e1f5fe;
    border-left: 4px solid #03a9f4;
    padding: 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.4;
}

.cnc-cf7-notice-info .dashicons-shield {
    color: #03a9f4;
}

.cnc-cf7-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--cnc-border);
}

.cnc-cf7-status-label {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
}

.cnc-cf7-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.cnc-cf7-status-badge.enabled {
    background: #e8f5e9;
    color: #2e7d32;
}

.cnc-cf7-status-badge.disabled {
    background: #ffebee;
    color: #c62828;
}

.cnc-cf7-buttons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.cnc-cf7-buttons .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cnc-cf7-buttons .button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-top: -2px;
}

/* Sidebar Styles */
.cnc-cf7-sidebar-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    margin-top: 0;
}

.cnc-cf7-sidebar-desc {
    color: var(--cnc-text-muted);
    font-size: 13px;
    margin-bottom: 25px;
}

.cnc-cf7-promo-plugin {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--cnc-border);
}

.cnc-cf7-promo-icon-img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.cnc-cf7-promo-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cnc-cf7-promo-plugin h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.cnc-cf7-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 10px;
}

.cnc-cf7-badge-free {
    background: #ebfaf2;
    color: #00b894;
}

.cnc-cf7-badge-featured {
    background: #fff4e5;
    color: #f39c12;
}

.cnc-cf7-promo-plugin p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--cnc-text-muted);
    margin-bottom: 15px;
}

.cnc-cf7-button-purple {
    background: #6c5ce7 !important;
    border-color: #6c5ce7 !important;
    color: white !important;
    width: 100%;
    justify-content: center;
    padding: 10px 15px !important;
    text-align: center;
}

.cnc-cf7-button-purple:hover {
    background: #5b4bc4 !important;
}

.spinner {
    float: none;
    margin-left: 10px;
    margin-top: 0;
    vertical-align: middle;
}

@media (max-width: 1024px) {
    .cnc-cf7-settings-container {
        grid-template-columns: 1fr;
    }
}
