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

/* User Agent Blocks */
.user-agent-block {
    border: 2px solid #e5e7eb;
    transition: var(--transition);
}

.user-agent-block:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.user-agent-block .card-body {
    background: #f9fafb;
}

/* Custom Agent Input */
.custom-agent-input {
    animation: fadeIn 0.3s ease;
}

/* Input Groups */
.input-group-text {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    border: none;
    min-width: 100px;
}

/* Rule Inputs */
.allow-rule,
.disallow-rule {
    font-family: 'Courier New', monospace;
    font-size: 0.938rem;
}

/* Remove Buttons */
.remove-rule,
.remove-sitemap,
.remove-user-agent {
    transition: var(--transition);
}

.remove-rule:hover,
.remove-sitemap:hover,
.remove-user-agent:hover {
    transform: scale(1.1);
}

/* Add Buttons */
.add-allow-rule,
.add-disallow-rule {
    font-size: 0.875rem;
}

/* Preset Buttons */
.preset-btn {
    transition: var(--transition);
}

.preset-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.preset-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Code Output */
.code-output {
    background: #1e293b;
    border-radius: 12px;
    padding: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
}

.code-output pre {
    margin: 0;
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.938rem;
    line-height: 1.6;
}

.code-output code {
    color: #e2e8f0;
}

/* Scrollbar Styling */
.code-output::-webkit-scrollbar {
    width: 8px;
}

.code-output::-webkit-scrollbar-track {
    background: #0f172a;
    border-radius: 4px;
}

.code-output::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.code-output::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Copy & Download Buttons */
#copyBtn,
#downloadBtn {
    transition: var(--transition);
}

#copyBtn:hover,
#downloadBtn:hover {
    transform: translateY(-2px);
}

/* Practice Cards */
.practice-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    border: 2px solid transparent;
}

.practice-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.practice-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(249, 115, 22, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.practice-icon i {
    font-size: 1.75rem;
}

.practice-card h5 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.practice-card p {
    font-size: 0.938rem;
    line-height: 1.6;
    margin: 0;
}

/* Sitemap Container */
#sitemapContainer .input-group {
    animation: fadeIn 0.3s ease;
}

/* User Agents Container */
#userAgentsContainer .user-agent-block {
    animation: fadeInUp 0.4s ease;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alert Styling */
.alert-info {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-light);
    color: var(--dark-color);
}

.alert-info code {
    background: rgba(37, 99, 235, 0.15);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: var(--primary-dark);
    font-weight: 600;
}

/* Validation Links */
.list-unstyled a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.list-unstyled a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Form Labels */
.form-label.fw-semibold {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .user-agent-block .card-body {
        padding: 1rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        border-radius: 0.375rem !important;
        margin-bottom: 0.5rem;
    }

    .code-output {
        padding: 1rem;
        font-size: 0.813rem;
    }

    .input-group-text {
        min-width: 80px;
        font-size: 0.875rem;
    }
}

/* Success State */
#generatedCodeSection .card {
    animation: fadeInUp 0.5s ease;
}

/* Button Group Responsive */
@media (max-width: 576px) {
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 0.5rem;
    }

    .d-flex.justify-content-between>div {
        width: 100%;
    }

    .d-flex.justify-content-between button {
        width: 100%;
    }
}