/* WhatsApp Content Manager Frontend Styles */

.wcm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.wcm-header {
    text-align: center;
    margin-bottom: 40px;
}

.wcm-header h2 {
    color: #25D366;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.wcm-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Cards */
.wcm-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.wcm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.wcm-card-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
}

/* Bot Cards */
.wcm-bot-card {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 15px;
    background: white;
    transition: all 0.3s ease;
}

.wcm-bot-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.wcm-bot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.wcm-bot-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.wcm-bot-status {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.wcm-status-active {
    background: #d4edda;
    color: #155724;
}

.wcm-status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.wcm-status-connecting {
    background: #fff3cd;
    color: #856404;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}

.wcm-status-active .status-indicator {
    background: #28a745;
}

.wcm-status-inactive .status-indicator {
    background: #dc3545;
}

.wcm-status-connecting .status-indicator {
    background: #ffc107;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.wcm-bot-details p {
    margin: 8px 0;
    color: #666;
    font-size: 0.95rem;
}

.wcm-bot-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* QR Code Display */
.wcm-qr-display {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.wcm-qr-container {
    max-width: 300px;
    margin: 0 auto;
}

.wcm-qr-code {
    margin: 20px 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.wcm-qr-instructions {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Destination Cards */
.wcm-destination-card {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 15px;
    background: white;
    transition: all 0.3s ease;
}

.wcm-destination-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.wcm-destination-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.wcm-platform-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.wcm-platform-wordpress {
    background: #0073aa;
    color: white;
}

.wcm-platform-parse {
    background: #169cee;
    color: white;
}

.wcm-destination-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Buttons */
.wcm-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.wcm-btn-primary {
    background: #25D366;
    color: white;
}

.wcm-btn-primary:hover {
    background: #20b358;
    transform: translateY(-1px);
}

.wcm-btn-secondary {
    background: #6c757d;
    color: white;
}

.wcm-btn-secondary:hover {
    background: #5a6268;
}

.wcm-btn-success {
    background: #28a745;
    color: white;
}

.wcm-btn-danger {
    background: #dc3545;
    color: white;
}

.wcm-btn-danger:hover {
    background: #c82333;
}

.wcm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Modals */
.wcm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcm-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.wcm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.wcm-modal-header h3 {
    margin: 0;
    color: #333;
}

.wcm-modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.wcm-modal-close:hover {
    color: #333;
}

/* Forms */
.wcm-form-group {
    margin-bottom: 20px;
    padding: 0 25px;
}

.wcm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.wcm-form-group input,
.wcm-form-group select,
.wcm-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.wcm-form-group input:focus,
.wcm-form-group select:focus,
.wcm-form-group textarea:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.wcm-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

.wcm-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 20px 25px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

/* Pricing Plans */
.wcm-pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 25px;
}

.wcm-plan {
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.wcm-plan:hover {
    border-color: #25D366;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.15);
}

.wcm-plan-popular {
    border-color: #25D366;
    transform: scale(1.05);
}

.wcm-plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #25D366;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.wcm-plan h4 {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    color: #333;
}

.wcm-price {
    font-size: 2rem;
    font-weight: 700;
    color: #25D366;
    margin-bottom: 20px;
}

.wcm-price span {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.wcm-plan ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.wcm-plan li {
    padding: 8px 0;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.wcm-plan li:last-child {
    border-bottom: none;
}

/* Payment Methods */
.wcm-payment-methods {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.wcm-payment-method {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wcm-payment-method:hover {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.05);
}

.wcm-payment-method input[type="radio"] {
    margin-right: 12px;
    width: auto;
}

/* Status indicators */
.wcm-status {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
}

.wcm-status.active {
    background: #d4edda;
    color: #155724;
}

.wcm-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.wcm-status .status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
}

.wcm-status.active .status-indicator {
    background: #28a745;
}

.wcm-status.inactive .status-indicator {
    background: #dc3545;
}

/* Empty states */
.wcm-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* Loading and status messages */
.wcm-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #666;
}

.wcm-success {
    color: #28a745;
    font-weight: 500;
    text-align: center;
    padding: 20px;
}

.wcm-error {
    color: #dc3545;
    font-weight: 500;
    text-align: center;
    padding: 20px;
}

.wcm-info {
    color: #17a2b8;
    font-weight: 500;
    text-align: center;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wcm-container {
        padding: 15px;
    }
    
    .wcm-card-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .wcm-bot-actions,
    .wcm-destination-actions {
        flex-direction: column;
    }
    
    .wcm-pricing-plans {
        grid-template-columns: 1fr;
    }
    
    .wcm-plan-popular {
        transform: none;
    }
    
    .wcm-form-actions {
        flex-direction: column;
    }
}