/* Connection Status Styles */
.mypowerly-connection-banner {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid;
}

.mypowerly-connected {
    background: #f0f9ff;
    border-left-color: #0ea5e9;
    color: #0369a1;
}

.mypowerly-not-connected {
    background: #fefce8;
    border-left-color: #eab308;
    color: #854d0e;
}

.mypowerly-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mypowerly-banner-icon {
    font-size: 1.25rem;
}

.mypowerly-banner-text {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Status Card */
.mypowerly-status-card {
    text-align: center;
}

.mypowerly-status-card .mypowerly-card-content {
    padding: 2.5rem;
}

/* Admin Connection Styles */
.connection-status-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(44, 90, 160, 0.1);
    border: 1px solid #e1e5e9;
    margin: 20px 0;
}

.connection-status-card.connected {
    border-left: 5px solid #28a745;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 20px;
}

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

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

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.connected {
    background: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.status-dot:not(.connected) {
    background: #dc3545;
}

.connection-info h3 {
    color: #2c5aa0;
    margin-bottom: 15px;
}

.connection-actions {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.connection-benefits {
    margin-top: 30px;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.connection-benefits h4 {
    color: #2c5aa0;
    margin-bottom: 15px;
}

.connection-benefits ul {
    list-style: none;
    padding: 0;
}

.connection-benefits li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.connection-benefits li:last-child {
    border-bottom: none;
}

/* Progress Logs */
.connection-progress-section {
    margin-top: 20px;
}

.progress-logs {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
}

.log-entry {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-timestamp {
    font-size: 0.85em;
    color: #6c757d;
    min-width: 70px;
}

.log-message {
    flex: 1;
}

/* Error Notice */
.error-notice-container {
    background: #fff5f5;
    border: 1px solid #fc8181;
    border-left: 5px solid #e53e3e;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.error-notice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e53e3e;
    margin-bottom: 15px;
}

.troubleshooting-tips {
    margin: 20px 0;
    padding: 15px;
    background: #fffaf0;
    border-radius: 8px;
    border-left: 4px solid #ed8936;
}

.troubleshooting-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #dd6b20;
}

.troubleshooting-list {
    margin: 0;
    padding-left: 20px;
}

.troubleshooting-list li {
    margin-bottom: 5px;
}

.error-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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