/* Robots.txt Generator Styles */

/* Rules Container */
#rulesContainer {
    max-height: 500px;
    overflow-y: auto;
    padding: 0.5rem;
}

/* Rule Item */
.rule-item {
    background-color: var(--bs-light);
    transition: all 0.2s ease;
}

.rule-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .rule-item {
    background-color: rgba(30, 34, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Common Paths Section */
.common-paths-section {
    background-color: rgba(13, 110, 253, 0.05);
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 0.375rem;
    padding: 1rem;
}

[data-bs-theme="dark"] .common-paths-section {
    background-color: rgba(77, 171, 247, 0.1);
    border-color: rgba(77, 171, 247, 0.2);
}

.common-path-checkbox {
    cursor: pointer;
}

.common-path-label {
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
}

/* Preset Buttons */
.preset-buttons .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Output Container */
#outputRobotsTxt {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    background-color: var(--bs-light);
    color: var(--bs-body-color);
    resize: vertical;
}

[data-bs-theme="dark"] #outputRobotsTxt {
    background-color: rgba(30, 34, 42, 0.8);
    color: #e1e5e9;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Statistics Cards */
.stat-card {
    text-align: center;
    padding: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bs-primary);
    display: block;
    margin-bottom: 0.25rem;
}

[data-bs-theme="dark"] .stat-value {
    color: #4dabf7;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--bs-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Test Section */
.test-section {
    background-color: rgba(255, 193, 7, 0.05);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 0.375rem;
    padding: 1rem;
}

[data-bs-theme="dark"] .test-section {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.2);
}

/* Installation Instructions */
.installation-section {
    background-color: rgba(25, 135, 84, 0.05);
    border: 1px solid rgba(25, 135, 84, 0.2);
    border-radius: 0.375rem;
    padding: 1.5rem;
}

[data-bs-theme="dark"] .installation-section {
    background-color: rgba(25, 135, 84, 0.1);
    border-color: rgba(25, 135, 84, 0.2);
}

.installation-section ol {
    padding-left: 1.5rem;
}

.installation-section li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* Best Practices */
.best-practices-list {
    list-style: none;
    padding-left: 0;
}

.best-practices-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.best-practices-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--bs-success);
    font-weight: bold;
}

/* Bot Icons/Labels */
.bot-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Form Styling Improvements */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-text {
    font-size: 0.875rem;
    color: var(--bs-secondary);
}

/* Card Headers */
.card-header {
    font-weight: 600;
}

.card-header h5 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Alert Styling */
.alert {
    border-radius: 0.375rem;
    margin-bottom: 0;
}

/* Scrollbar Styling */
#rulesContainer::-webkit-scrollbar,
#outputRobotsTxt::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#rulesContainer::-webkit-scrollbar-track,
#outputRobotsTxt::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

#rulesContainer::-webkit-scrollbar-thumb,
#outputRobotsTxt::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

#rulesContainer::-webkit-scrollbar-thumb:hover,
#outputRobotsTxt::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] #rulesContainer::-webkit-scrollbar-track,
[data-bs-theme="dark"] #outputRobotsTxt::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] #rulesContainer::-webkit-scrollbar-thumb,
[data-bs-theme="dark"] #outputRobotsTxt::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

[data-bs-theme="dark"] #rulesContainer::-webkit-scrollbar-thumb:hover,
[data-bs-theme="dark"] #outputRobotsTxt::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Button Improvements */
.toolBtn {
    transition: all 0.2s ease;
    font-weight: 500;
}

.toolBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.toolBtn:active {
    transform: translateY(0);
}

/* Filter SVG for buttons */
.filter-svg {
    filter: brightness(0) invert(1);
}

[data-bs-theme="dark"] .filter-svg {
    filter: none;
}

/* Radio Button Styling */
.form-check-input[type="radio"] {
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 767px) {
    .rule-item .row {
        gap: 0.5rem;
    }
    
    .preset-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .preset-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }
    
    #rulesContainer {
        max-height: 400px;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .installation-section,
    .test-section,
    .common-paths-section {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .card-header h5 {
        font-size: 1rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .form-control,
    .form-select {
        font-size: 0.9rem;
    }
    
    .toolBtn {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#outputContainer {
    animation: fadeIn 0.3s ease;
}

/* Focus States */
.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    border-color: #4dabf7;
    box-shadow: 0 0 0 0.2rem rgba(77, 171, 247, 0.25);
}

/* Print Styles */
@media print {
    .toolBtn,
    .preset-buttons,
    .test-section,
    .form-group:not(#outputContainer) {
        display: none !important;
    }
    
    #outputContainer {
        display: block !important;
    }
    
    #outputRobotsTxt {
        border: 1px solid #000;
        background: white;
        color: black;
    }
}