.blogsync-wrap {
    max-width: 1200px;
    margin-right: 20px;
}

.blogsync-container {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}

.blogsync-main {
    flex: 1;
    min-width: 0;
}

.blogsync-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.blogsync-card,
.blogsync-upload-box,
.blogsync-progress-box,
.blogsync-usage-card,
.blogsync-upgrade-card,
.blogsync-help-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 16px;
}

.blogsync-upload-box {
    text-align: center;
    padding: 48px 24px;
    border: 2px dashed #c3c4c7;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.blogsync-upload-box:hover,
.blogsync-upload-box.drag-over {
    border-color: #2271b1;
    background: #f0f6fc;
}

.blogsync-upload-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #2271b1;
    margin-bottom: 16px;
}

.blogsync-upload-box h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.blogsync-upload-box p {
    margin: 0 0 20px;
    color: #646970;
}

.blogsync-options {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    margin-top: 16px;
}

.blogsync-options h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 14px;
}

.blogsync-checkbox {
    display: block;
    margin-bottom: 12px;
    cursor: pointer;
}

.blogsync-checkbox:last-child {
    margin-bottom: 0;
}

.blogsync-checkbox input {
    margin-right: 8px;
}

.blogsync-progress-box {
    text-align: center;
    padding: 48px 24px;
}

.blogsync-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    animation: blogsync-spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.blogsync-progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f1;
    border-radius: 4px;
    margin: 20px 0;
    overflow: hidden;
}

.blogsync-progress-fill {
    height: 100%;
    background: #2271b1;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.blogsync-progress-step {
    color: #646970;
    font-size: 13px;
}

.blogsync-success-header {
    text-align: center;
    margin-bottom: 24px;
}

.blogsync-success-header .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #00a32a;
    margin-bottom: 8px;
}

.blogsync-success-header h2 {
    margin: 0;
    color: #00a32a;
}

.blogsync-results-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f6f7f7;
    border-radius: 4px;
}

.blogsync-results-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.blogsync-results-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blogsync-results-actions .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.blogsync-preview {
    margin-bottom: 24px;
}

.blogsync-preview h3,
.blogsync-html-output h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.blogsync-preview-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.blogsync-html-output textarea {
    width: 100%;
    height: 200px;
    font-family: monospace;
    font-size: 12px;
    padding: 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    resize: vertical;
}

.blogsync-usage-card h3,
.blogsync-upgrade-card h3,
.blogsync-help-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 14px;
}

.blogsync-usage-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.blogsync-usage-label {
    color: #646970;
}

.blogsync-usage-value {
    font-weight: 600;
}

.blogsync-usage-bar {
    height: 8px;
    background: #f0f0f1;
    border-radius: 4px;
    margin-top: 12px;
    overflow: hidden;
}

.blogsync-usage-bar-fill {
    height: 100%;
    background: #2271b1;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.blogsync-usage-bar-fill.warning {
    background: #dba617;
}

.blogsync-usage-bar-fill.danger {
    background: #d63638;
}

.blogsync-upgrade-card p {
    margin: 0 0 16px;
    color: #646970;
}

.blogsync-help-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.blogsync-help-card li {
    margin-bottom: 8px;
}

.blogsync-help-card li:last-child {
    margin-bottom: 0;
}

.blogsync-connect-container {
    max-width: 600px;
    margin: 40px auto;
}

.blogsync-connect-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
}

.blogsync-connect-icon .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #2271b1;
    margin-bottom: 16px;
}

.blogsync-connect-card h2 {
    margin: 0 0 8px;
}

.blogsync-connect-card > p {
    margin: 0 0 32px;
    color: #646970;
}

.blogsync-connect-steps {
    text-align: left;
    margin-bottom: 32px;
}

.blogsync-step {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.blogsync-step:last-child {
    margin-bottom: 0;
}

.blogsync-step-number {
    width: 32px;
    height: 32px;
    background: #2271b1;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.blogsync-step-content h4 {
    margin: 0 0 4px;
    font-size: 14px;
}

.blogsync-step-content p {
    margin: 0;
    color: #646970;
    font-size: 13px;
}

.blogsync-connect-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.blogsync-free-features {
    background: #f6f7f7;
    border-radius: 4px;
    padding: 20px;
    text-align: left;
}

.blogsync-free-features h4 {
    margin: 0 0 12px;
    font-size: 14px;
}

.blogsync-free-features ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.blogsync-free-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.blogsync-free-features li:last-child {
    margin-bottom: 0;
}

.blogsync-free-features .dashicons {
    color: #00a32a;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.blogsync-settings-container {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}

.blogsync-settings-main {
    flex: 1;
    min-width: 0;
}

.blogsync-settings-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.blogsync-connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.blogsync-connection-status.connected {
    background: #edfaef;
    color: #00a32a;
}

.blogsync-connection-status.disconnected {
    background: #fcf0f1;
    color: #d63638;
}

.blogsync-connection-status .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

#blogsync-toggle-key {
    margin-left: 8px;
    vertical-align: middle;
}

#blogsync-toggle-key .dashicons {
    vertical-align: middle;
}

.blogsync-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-top: 16px;
}

.blogsync-message.success {
    background: #edfaef;
    color: #00a32a;
    border: 1px solid #00a32a;
}

.blogsync-message.error {
    background: #fcf0f1;
    color: #d63638;
    border: 1px solid #d63638;
}

.blogsync-features-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.blogsync-features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.blogsync-features-list .dashicons {
    color: #00a32a;
}

#blogsync-account-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

#blogsync-settings-spinner {
    float: none;
    margin-left: 8px;
    visibility: hidden;
}

#blogsync-settings-spinner.is-active {
    visibility: visible;
}

@media (max-width: 960px) {
    .blogsync-container,
    .blogsync-settings-container {
        flex-direction: column;
    }

    .blogsync-sidebar,
    .blogsync-settings-sidebar {
        width: 100%;
    }
}
