.arg-container {
    max-width: 800px;
    margin: 2em auto;
    padding: 1.5em;
    background: #eeeeee;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.arg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.arg-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.arg-field label {
    font-weight: 500;
    color: #2c3338;
    font-size: 0.9rem;
}

.arg-field input,
.arg-field select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.arg-field input:focus,
.arg-field select:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
    outline: none;
}

.arg-field input::placeholder {
    color: #8c8f94;
}

.arg-submit,
.arg-copy {
    background-color: #007cba;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.arg-submit {
    width: 100%;
    justify-content: center;
}

.arg-submit:hover,
.arg-copy:hover {
    background-color: #006ba1;
}

.arg-submit:disabled {
    background-color: #8c8f94;
    cursor: not-allowed;
}

.arg-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: arg-spin 1s linear infinite;
}

@keyframes arg-spin {
    to {
        transform: rotate(360deg);
    }
}

.arg-submit:disabled .arg-spinner {
    display: block;
}

.arg-submit:disabled .arg-submit-text {
    opacity: 0.7;
}

.arg-result {
    margin-top: 2em;
    padding: 1.5em;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f8f9fa;
}

.arg-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.arg-result-header h3 {
    margin: 0;
    color: #2c3338;
    font-size: 1.1rem;
}

.arg-copy {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.arg-copy svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.arg-review-text {
    line-height: 1.6;
    color: #2c3338;
    font-size: 1rem;
    background: #fff;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #e2e4e7;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .arg-container {
        padding: 1rem;
        margin: 1em;
    }

    .arg-grid {
        grid-template-columns: 1fr;
    }

    .arg-result {
        padding: 1rem;
    }
}

/* WordPress admin compatibility */
.wp-admin .arg-container {
    box-shadow: none;
    background: transparent;
}

.wp-admin .arg-result {
    background: #fff;
}

#arg-notice {
    margin-top: 10px;
    font-size: 8px;
}