/**
 * Admin page styles for BooPixel AI Chat Connect for n8n
 */

/* PRO Badge in Menu */
.boochat-connect-pro-badge {
    display: inline-block;
    background: #d63638;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    text-transform: uppercase;
    line-height: 1.4;
    vertical-align: middle;
}

.boochat-connect-wrap {
    margin: 20px 20px 0 0;
    padding-right: 40px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 782px) {
    .boochat-connect-wrap {
        margin: 10px 10px 0 0;
        padding-right: 20px;
    }
}

.boochat-connect-wrap h1 {
    margin-bottom: 20px;
}

.boochat-connect-content {
    margin-top: 20px;
}

/* Settings and Customization pages use same layout as Main Panel */

.boochat-connect-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    padding: 24px;
    margin-bottom: 0;
    border-radius: 0;
    transition: box-shadow 0.2s ease;
}

.boochat-connect-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.boochat-connect-card-hero {
    background: #fff;
    border: 1px solid #ccd0d4;
}

.boochat-connect-status-card {
    padding: 20px;
    overflow: visible;
}

.boochat-connect-card h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.boochat-connect-card h3 {
    margin-top: 0;
    color: #23282d;
}

.boochat-connect-card p {
    line-height: 1.6;
    color: #555;
}

.boochat-connect-card table {
    margin-top: 15px;
}

.boochat-connect-card table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.boochat-connect-card table tr:last-child td {
    border-bottom: none;
}

.boochat-connect-card .button {
    margin-top: 10px;
}

.boochat-connect-status-success {
    color: green;
}

.boochat-connect-status-error {
    color: red;
}

/* PRO Upgrade Page Styles - Using Main Panel Layout */

/* Features List */

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.feature-list li {
    padding: 10px 0;
    font-size: 15px;
    color: #50575e;
    line-height: 1.5;
    border-bottom: 1px solid #f0f0f1;
}

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

/* PRO Features Enhanced */

.boochat-connect-pro-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 20px;
}

.boochat-connect-pro-feature-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.boochat-connect-pro-feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #2271b1 0%, #1B8EF0 100%);
}

.boochat-connect-pro-feature-icon {
    font-size: 48px;
    line-height: 1;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1d2327;
    border-radius: 0;
    border: none;
    color: #fff;
}

.boochat-connect-pro-feature-content {
    flex: 1;
}

.boochat-connect-pro-feature-content h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
    line-height: 1.3;
}

.boochat-connect-pro-feature-content p {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #646970;
    line-height: 1.6;
}

.boochat-connect-pro-feature-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.boochat-connect-pro-feature-benefits li {
    font-size: 14px;
    color: #646970;
    line-height: 1.6;
    padding: 0;
    border: none;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.boochat-connect-pro-feature-benefits li:before {
    content: '✓';
    color: #00a32a;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Pricing Card in Sidebar */

.price-card {
    background: #f8f9fa;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 24px;
    max-width: 100%;
    width: 100%;
    margin: 16px 0 0 0;
    box-sizing: border-box;
    text-align: center;
}

/* Price styling in sidebar */
.boochat-connect-sidebar .price-card {
    margin-top: 0;
}

.price-card h3 {
    margin-top: 0;
    font-size: 24px;
    color: #1d2327;
}

.price {
    margin: 20px 0;
    font-size: 42px;
    font-weight: 600;
    color: #1d2327;
    line-height: 1;
}

.price .currency {
    font-size: 24px;
    vertical-align: top;
}

.price .amount {
    font-size: 48px;
}

.price .period {
    font-size: 16px;
    font-weight: normal;
    color: #646970;
    margin-left: 4px;
}

.price-description {
    color: #646970;
    margin-bottom: 24px;
    font-size: 14px;
}


.license-form {
    margin-top: 20px;
}

.boochat-connect-pro-active {
    background: #fff;
    border: 1px solid #ccd0d4;
}

.boochat-connect-pro-active h2 {
    margin-top: 0;
    font-size: 20px;
    color: #1d2327;
    font-weight: 600;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 12px;
}

.boochat-connect-pro-active p {
    color: #646970;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.license-info {
    margin-top: 20px;
}

.license-info code {
    background: #f0f0f1;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}
