.aimd-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.aimd-form-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 20px;
}

.aimd-title {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
}

.aimd-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.aimd-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aimd-form-group label {
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.aimd-form-group textarea,
.aimd-form-group select {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.aimd-form-group textarea:focus,
.aimd-form-group select:focus {
    outline: none;
    border-color: #4caf50;
}

.aimd-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.aimd-form-group select {
    background-color: #fff;
    cursor: pointer;
}

.aimd-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.aimd-btn-primary {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    width: 100%;
    padding: 14px;
}

.aimd-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.aimd-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.aimd-btn-loader {
    display: inline-block;
}

.aimd-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px;
    border-radius: 6px;
    margin-top: 10px;
}

.aimd-limit-message {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 12px;
    border-radius: 6px;
    margin-top: 10px;
    font-weight: 500;
}

.aimd-result {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 20px;
}

.aimd-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.aimd-result-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.aimd-btn-copy {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
}

.aimd-btn-copy:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.aimd-btn-copy.copied {
    background: #6c757d;
}

.aimd-message-output {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    line-height: 1.8;
    color: #333;
    font-size: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
    border-left: 4px solid #4caf50;
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.aimd-btn-loader::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
}






