/* Queryra Admin Styles */

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

.queryra-main {
    flex: 1;
    max-width: 800px;
}

.queryra-sidebar {
    width: 300px;
}

.queryra-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    padding: 20px;
    margin-bottom: 20px;
}

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

.queryra-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.queryra-stat:last-child {
    border-bottom: none;
}

.queryra-stat-label {
    font-weight: 500;
    color: #555;
}

.queryra-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #2271b1;
}

#queryra-connection-status,
#queryra-sync-status {
    display: inline-block;
    margin-left: 10px;
    padding: 5px 10px;
    border-radius: 3px;
}

.queryra-status-success {
    background: #d7f0d7;
    color: #2e7d32;
}

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

.queryra-status-loading {
    color: #666;
}

/* Loading spinner */
.queryra-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2271b1;
    border-radius: 50%;
    animation: queryra-spin 1s linear infinite;
    vertical-align: middle;
    margin-right: 5px;
}

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

/* Disabled button styling */
.button-disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}

#queryra-test-hint {
    font-style: italic;
}
