/**
 * Billboard Auth Helper Styles - WordPress Standard Classes
 */

/* Auth Required Messages */
.bpcrm-auth-required,
.bpcrm-sync-required {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
}

.bpcrm-auth-message,
.bpcrm-sync-message {
    margin-bottom: 0;
}

.bpcrm-auth-message h3,
.bpcrm-sync-message h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #495057;
    font-size: 20px;
}

.bpcrm-auth-message p,
.bpcrm-sync-message p {
    margin-bottom: 20px;
    color: #6c757d;
    line-height: 1.5;
}

/* Action Buttons */
.bpcrm-auth-actions,
.bpcrm-sync-actions {
    margin-bottom: 15px;
}

.bpcrm-auth-actions .button,
.bpcrm-sync-actions .button {
    margin: 0 5px;
    padding: 10px 20px;
    font-size: 14px;
    min-width: 120px;
}

.bpcrm-retry-sync {
    position: relative;
}

.bpcrm-retry-sync:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bpcrm-retry-sync.loading::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Sync Status Messages */
.bpcrm-sync-status {
    padding: 10px;
    border-radius: 4px;
}

.bpcrm-sync-status.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.bpcrm-sync-status.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Sync Error Display */
.bpcrm-sync-error {
    margin: 15px 0;
    padding: 15px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    border-left: 4px solid #ffc107;
}

.bpcrm-sync-error p {
    margin: 0;
    color: #856404;
}

.bpcrm-sync-error strong {
    color: #721c24;
}

/* Help Text */
.bpcrm-sync-help {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.bpcrm-sync-help p {
    margin: 0;
    color: #868e96;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bpcrm-auth-required,
    .bpcrm-sync-required {
        margin: 10px;
        padding: 15px;
    }
    
    .bpcrm-auth-actions .button,
    .bpcrm-sync-actions .button {
        display: block;
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }
    
    .bpcrm-auth-message h3,
    .bpcrm-sync-message h3 {
        font-size: 18px;
    }
}

/* Integration with Existing Styles */
.bpcrm-auth-required .button-primary,
.bpcrm-sync-required .button-primary {
    background-color: var(--bpcrm-primary-color, #007cba);
    border-color: var(--bpcrm-primary-color, #007cba);
}

.bpcrm-auth-required .button-primary:hover,
.bpcrm-sync-required .button-primary:hover {
    background-color: var(--bpcrm-primary-color, #005a87);
    border-color: var(--bpcrm-primary-color, #005a87);
}

/* Login/Register Popup Trigger Styles */
.bpcrm-show-login-popup,
.bpcrm-show-register-popup {
    text-decoration: none;
    transition: all 0.3s ease;
}

.bpcrm-show-login-popup:hover,
.bpcrm-show-register-popup:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Auth/Sync message containers spacing */
.notice .auth-message,
.notice .sync-message {
    margin: 0;
}

.notice .auth-message h3,
.notice .sync-message h3 {
    margin-top: 0;
    margin-bottom: 10px;
} 