/* AI Tools Plugin Frontend Styles */

.ai-tool-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ai-tool-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.ai-tool-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.ai-tool-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.ai-tool-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.form-group input[type="range"] {
    padding: 0;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
}

.form-group input[type="number"] {
    max-width: 120px;
}

.range-value {
    text-align: center;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.ai-tool-submit {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ai-tool-submit:hover {
    background: #005a87;
}

.ai-tool-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.rate-limit-info {
    font-size: 12px;
    color: #666;
}

.ai-tool-result {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.result-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.copy-result {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.copy-result:hover {
    background: #218838;
}

.result-content {
    white-space: pre-wrap;
    line-height: 1.6;
    color: #333;
    background: white;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.result-preview {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.5;
}

.ai-tool-loading {
    text-align: center;
    padding: 40px;
}

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

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

.captcha-group {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* Glitch Text Specific Styles */
.glitch-effect {
    animation: glitch 0.3s infinite;
    position: relative;
    color: #00ff00;
    font-family: 'Courier New', monospace;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Small Text Specific Styles */
.superscript-preview {
    vertical-align: super;
    font-size: 0.7em;
}

.subscript-preview {
    vertical-align: sub;
    font-size: 0.7em;
}

.small-caps-preview {
    font-variant: small-caps;
    font-size: 0.9em;
}

/* DND Name Generator Specific Styles */
.name-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.name-list li {
    padding: 8px 12px;
    margin: 5px 0;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.name-list li:hover {
    background: #e9ecef;
}

.copy-single {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.copy-single:hover {
    background: #138496;
}

/* Status indicators */
.status-active {
    color: #28a745;
    font-weight: 600;
}

.status-inactive {
    color: #dc3545;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-tool-container {
        margin: 10px;
        padding: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 20px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .result-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .ai-tool-header h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .ai-tool-container {
        margin: 5px;
        padding: 10px;
    }
    
    .ai-tool-header h3 {
        font-size: 18px;
    }
    
    .ai-tool-submit {
        width: 100%;
        padding: 15px;
    }
}

