.chatgpt-cg-form-container {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}

.chatgpt-cg-form-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.chatgpt-cg-form-actions .button {
    margin-right: 10px;
}

.chatgpt-cg-stats-container {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}

.chatgpt-cg-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    min-width: 100px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #2271b1;
}

.chatgpt-cg-queue-container {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}

.chatgpt-cg-queue-container h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#clear-queue-btn {
    margin-left: 12px;
}

.chatgpt-cg-queue-table {
    margin-top: 15px;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-pending {
    background: #f0f6fc;
    color: #0969da;
    border: 1px solid #0969da;
}

.status-processing {
    background: #fff8e1;
    color: #f57c00;
    border: 1px solid #f57c00;
}

.status-completed {
    background: #f0f9f0;
    color: #388e3c;
    border: 1px solid #388e3c;
}

.status-failed {
    background: #ffebee;
    color: #d32f2f;
    border: 1px solid #d32f2f;
}

.status-success {
    background: #f0f9f0;
    color: #388e3c;
    border: 1px solid #388e3c;
}

.status-duplicate {
    background: #fff3e0;
    color: #f57c00;
    border: 1px solid #f57c00;
}

#chatgpt-cg-container h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatgpt-cg-loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.chatgpt-cg-loading-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    text-align: center;
}

.chatgpt-cg-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chatgpt-cg-notice {
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

.chatgpt-cg-notice.success {
    background: #f0f9f0;
    border-left-color: #388e3c;
    color: #2e7d32;
}

.chatgpt-cg-notice.error {
    background: #ffebee;
    border-left-color: #d32f2f;
    color: #c62828;
}

.chatgpt-cg-notice.warning {
    background: #fff8e1;
    border-left-color: #f57c00;
    color: #ef6c00;
}

.form-table td textarea {
    width: 100%;
    max-width: 500px;
}

.form-table td input[type="text"],
.form-table td input[type="password"] {
    width: 100%;
    max-width: 400px;
}

#generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chatgpt-cg-form-container.disabled {
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 768px) {
    .chatgpt-cg-stats { flex-direction: column; }
    .stat-item { min-width: auto; }
    .chatgpt-cg-queue-table { overflow-x: auto; }
    .chatgpt-cg-form-container,
    .chatgpt-cg-stats-container,
    .chatgpt-cg-queue-container { padding: 15px; }
}
