/* ==============================================
   ROBOTS.TXT GENERATOR SPECIFIC STYLES
   ============================================== */

/* Robots.txt Generator Specific Styles */
.tool-title i {
    color: #2563eb;
}

/* Robots Rules Container */
.robots-rules-container {
    background: #f8f9ff;
    border-radius: 10px;
    border: 1px solid #e0e7ff;
    overflow: hidden;
    margin-top: 15px;
}

.robots-rule-item {
    background: white;
    margin: 15px;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e7ff;
    transition: all 0.3s ease;
}

.robots-rule-item:hover {
    border-color: #2563eb;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.1);
}

.robots-rule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e7ff;
}

.robots-rule-header h4 {
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin: 0;
}

.robots-rule-header h4 i {
    color: #2563eb;
}

.rule-number {
    background: #2563eb;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Robots Options */
.robots-option {
    margin-bottom: 20px;
}

.robots-option:last-child {
    margin-bottom: 0;
}

.robots-option label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.user-agent-select,
.custom-user-agent,
.disallow-paths,
.allow-paths,
.sitemap-url,
.crawl-delay {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.user-agent-select:focus,
.custom-user-agent:focus,
.disallow-paths:focus,
.allow-paths:focus,
.sitemap-url:focus,
.crawl-delay:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.disallow-paths,
.allow-paths {
    min-height: 120px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    resize: vertical;
}

/* Custom user agent input */
.custom-user-agent {
    margin-top: 8px;
}

/* Directives Grid */
.directives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.directive-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f8f9ff;
    border-radius: 6px;
    border: 1px solid #e0e7ff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.directive-option:hover {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
}

.directive-option input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.directive-option label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Buttons for Robots Generator */
.url-control-btn.success {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    border-color: #2563eb;
    color: white;
    font-weight: 600;
}

.url-control-btn.success:hover {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.url-control-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.remove-rule {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    padding: 6px 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.remove-rule:hover {
    background: #ff4757;
    border-color: #ff4757;
    color: white;
}

.remove-rule i {
    font-size: 0.9rem;
}

/* Robots Output Container */
.robots-output-container {
    padding: 25px;
}

#robotsOutput {
    min-height: 300px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    background: #f8f9ff;
    border: 1px solid #e0e7ff;
}

.output-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* Instructions */
.instructions-list {
    padding: 25px;
}

.instruction-step {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e8eeff;
}

.instruction-step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-icon i {
    color: white;
    font-size: 1.5rem;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.step-content p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Preview Modal */
.robots-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.robots-preview-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9ff;
    border-bottom: 1px solid #e8eeff;
}

.modal-header h3 {
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.3rem;
}

.modal-header h3 i {
    color: #2563eb;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #ff4757;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    max-height: 60vh;
}

.modal-body pre {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e7ff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

/* Add Rule Button */
.add-rule-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px;
    background: #f8f9ff;
    border: 2px dashed #2563eb;
    border-radius: 8px;
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.add-rule-btn:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.add-rule-btn i {
    font-size: 1.2rem;
}

/* File Size Display */
#fileSize {
    background: #2563eb;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive Design for Robots Generator */
@media (max-width: 768px) {
    .robots-rule-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .robots-rule-header h4 {
        width: 100%;
        justify-content: space-between;
    }
    
    .directives-grid {
        grid-template-columns: 1fr;
    }
    
    .instruction-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
    }
    
    .step-icon i {
        font-size: 1.2rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .output-actions {
        flex-direction: column;
    }
    
    .output-actions .url-action-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .robots-rule-item {
        margin: 10px;
        padding: 15px;
    }
    
    .url-controls {
        flex-direction: column;
    }
    
    .url-control-btn {
        width: 100%;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-body pre {
        padding: 15px;
        font-size: 0.8rem;
    }
}