/* Robots.txt Generator Tool Styles */

.toggle-bg {
    transition: all 0.3s ease;
}

.robots-output {
    font-family: "Courier New", Consolas, monospace;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.user-agent-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.user-agent-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.user-agent-header {
    display: flex;
    align-items: center;
    justify-content: between;
    margin-bottom: 8px;
}

.user-agent-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    background: #8b5cf6;
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    display: inline-block;
}

.user-agent-details {
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
}

.path-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.path-tag {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    color: #475569;
    font-family: monospace;
}

.path-tag.allowed {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.path-tag.disallowed {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.sitemap-item {
    display: flex;
    align-items: center;
    justify-content: between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 6px;
    font-size: 13px;
    font-family: monospace;
}

.sitemap-url {
    color: #1e40af;
    flex: 1;
    word-break: break-all;
}

.remove-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.remove-btn:hover {
    background: #dc2626;
}

.analysis-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 14px;
}

.analysis-item.warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
}

.analysis-item.suggestion {
    background: #dbeafe;
    border: 1px solid #3b82f6;
    color: #1e40af;
}

.analysis-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    animation: slideInRight 0.3s ease, slideOutRight 0.3s ease 2.7s;
    animation-fill-mode: forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.template-btn.active {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.modal-backdrop {
    backdrop-filter: blur(4px);
}

.user-agent-item {
    position: relative;
}

.edit-user-agent-btn {
    position: absolute;
    top: 8px;
    right: 80px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-user-agent-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.delete-user-agent-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-user-agent-btn:hover {
    background: #fecaca;
    color: #b91c1c;
}

.score-circle {
    position: relative;
    display: inline-block;
}

.score-circle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    z-index: 1;
}

.score-circle.excellent::before {
    border-color: #10b981;
}

.score-circle.good::before {
    border-color: #f59e0b;
}

.score-circle.poor::before {
    border-color: #ef4444;
}

.robots-preview {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.robots-preview::-webkit-scrollbar {
    width: 8px;
}

.robots-preview::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.robots-preview::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.robots-preview::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@media (max-width: 768px) {
    .user-agent-card {
        padding: 12px;
    }

    .user-agent-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .edit-user-agent-btn,
    .delete-user-agent-btn {
        position: static;
        margin-top: 8px;
        margin-right: 8px;
    }

    .path-list {
        margin-top: 8px;
    }

    .copy-notification {
        left: 20px;
        right: 20px;
        text-align: center;
    }
}
