/* Crawler v3.0 - Styles */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --accent: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --dark-bg: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Header */
.header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-content {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

/* Container */
.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tab:hover {
    color: var(--text-primary);
    background: rgba(37, 99, 235, 0.05);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.badge {
    display: inline-block;
    background: var(--danger);
    color: white;
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    margin-left: 0.25rem;
    font-weight: 600;
}

/* Session Tabs */
.session-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: var(--surface);
    border-radius: 6px;
    border: 1px solid var(--border);
    overflow-x: auto;
}

.session-tab {
    padding: 0.5rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.813rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.session-tab:hover {
    background: var(--surface);
}

.session-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.session-tab-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0 0.25rem;
    font-size: 1rem;
    line-height: 1;
}

.session-tab-close:hover {
    opacity: 0.7;
}

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.813rem;
    font-weight: 500;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.2s;
    resize: vertical;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.helper-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

button {
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.813rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    color: var(--text-primary);
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--bg);
    color: var(--text-primary);
}

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

.btn-success {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Status */
.status {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.813rem;
    margin-top: 1rem;
    border-left: 3px solid;
}

.status.info {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

.status.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border-left-color: var(--accent);
}

.status.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-left-color: var(--danger);
}

.status.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border-left-color: var(--warning);
}

/* Icon */
.icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    transition: width 0.3s;
    width: 0%;
}

.progress-text {
    font-size: 0.813rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-align: center;
}

/* Search */
.search-container {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.search-input {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input input {
    width: 100%;
    padding-left: 2.5rem;
}

.search-input .icon {
    position: absolute;
    left: 0.75rem;
    color: var(--text-muted);
}

/* Filter Section */
.filter-section {
    margin-bottom: 1rem;
}

.filter-section label {
    display: block;
    margin-bottom: 0.5rem;
}

/* Bulk Actions */
.bulk-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 1rem;
}

.bulk-action-select {
    padding: 0.5rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.813rem;
    font-family: inherit;
    cursor: pointer;
    min-width: 200px;
}

.bulk-action-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Floating Action Bar */
.floating-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 2px solid var(--primary);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 1rem 2rem;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.floating-action-content {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.floating-action-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.floating-count {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.875rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    font-size: 0.813rem;
    cursor: pointer;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--text-primary);
    transform: none;
    box-shadow: none;
}

.floating-action-right {
    display: flex;
    gap: 0.75rem;
}

/* Inline Actions (for single selection) */
.inline-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.inline-actions button {
    flex: 1;
}

/* Accordion */
.accordion-item {
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--surface);
    cursor: pointer;
    user-select: none;
}

.accordion-header:hover {
    background: var(--bg);
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.accordion-url {
    font-size: 0.813rem;
    color: var(--primary);
    font-weight: 500;
}

.accordion-score {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.accordion-toggle {
    color: var(--text-secondary);
    transition: transform 0.2s;
}

.accordion-toggle.open {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 1.5rem;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.accordion-content.open {
    display: block;
}

/* Score with Tooltip */
.score-with-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.score-tooltip {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    background: var(--surface);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: normal;
    max-width: 300px;
    min-width: 200px;
    z-index: 99999;
    transition: opacity 0.2s, visibility 0.2s;
    font-size: 0.75rem;
    line-height: 1.6;
    pointer-events: none;
}

.score-with-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.score-with-tooltip:hover .score-tooltip {
    visibility: visible;
    opacity: 1;
}

.score-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--border);
}

.tooltip-check {
    color: var(--accent);
}

.tooltip-warning {
    color: #f59e0b;
}

.tooltip-error {
    color: var(--danger);
}

/* Tables */
.table-container {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.813rem;
}

thead {
    background: var(--bg);
}

th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
    cursor: pointer;
    user-select: none;
}

th:hover {
    background: rgba(37, 99, 235, 0.05);
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

tbody tr:hover {
    background: var(--bg);
}

tbody tr:last-child td {
    border-bottom: none;
}

.sort-indicator {
    display: inline-block;
    margin-left: 0.25rem;
    opacity: 0.3;
}

.sort-indicator.active {
    opacity: 1;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-200 {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent);
}

.status-301, .status-302 {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.status-404, .status-500 {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

/* Score Badge */
.score-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.688rem;
    font-weight: 600;
}

.score-excellent {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent);
}

.score-good {
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary);
}

.score-fair {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.score-poor {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

/* Tooltip */
.tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-secondary);
    font-size: 0.688rem;
    cursor: help;
    margin-left: 0.375rem;
    position: relative;
}

.tooltip-trigger:hover {
    background: var(--primary);
    color: white;
}

.tooltip-content {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-bg);
    color: white;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    line-height: 1.5;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--dark-bg);
}

.tooltip-trigger:hover .tooltip-content {
    opacity: 1;
}

.tooltip-list {
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 200px;
    max-width: 300px;
    white-space: normal;
}

.tooltip-list li {
    padding: 0.25rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.tooltip-list li::before {
    content: '•';
    color: var(--primary-light);
    font-weight: bold;
}

.tooltip-check {
    color: #4ade80;
}

.tooltip-check::before {
    content: '✓';
}

.tooltip-warning {
    color: #fbbf24;
}

.tooltip-warning::before {
    content: '⚠';
}

.tooltip-error {
    color: #f87171;
}

.tooltip-error::before {
    content: '✗';
}

/* Accordion */
.accordion-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion-header {
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: var(--bg);
}

.accordion-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.accordion-icon {
    transition: transform 0.2s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* Accordion body */
.accordion-body {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

/* Comparison Input */
.comparison-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.comparison-input-group textarea {
    flex: 1;
}

/* SEO Optimizer Workspace */
.seo-optimizer-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.seo-url-header {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seo-main-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.seo-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.current-meta {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.813rem;
}

.meta-label {
    color: var(--text-muted);
    font-size: 0.688rem;
    margin-bottom: 0.25rem;
}

.meta-value {
    color: var(--text-secondary);
    line-height: 1.5;
}

.competitors-section {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.competitors-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.competitor-input-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.competitor-input-row textarea {
    flex: 1;
    resize: vertical;
}

.competitors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.competitor-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    position: relative;
}

.competitor-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.competitor-remove:hover {
    color: var(--danger);
}

.competitor-url {
    font-size: 0.75rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    word-break: break-all;
}

.competitor-meta-item {
    margin-bottom: 0.75rem;
}

.competitor-meta-item:last-child {
    margin-bottom: 0;
}

.input-wrapper {
    position: relative;
}

.copy-btn {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.copy-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.copy-btn.copied {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.score-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 1.5rem;
    background: var(--bg);
    border-radius: 6px;
    border: 1px solid var(--border);
}

.score-item {
    text-align: center;
}

.score-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.score-value {
    font-size: 2rem;
    font-weight: 700;
}

/* Redirect Rules */
.redirect-rule {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 180px auto;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.redirect-rule input {
    font-size: 0.813rem;
}

.redirect-rule button {
    padding: 0.5rem 0.75rem;
}

/* History Items */
.history-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.history-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.history-domain {
    font-size: 0.813rem;
    color: var(--text-secondary);
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.history-stat {
    text-align: center;
}

.history-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.history-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.history-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--surface);
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body ul, .modal-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.modal-body pre {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.813rem;
    margin: 1rem 0;
}

/* Animations */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 1024px) {
    .seo-main-grid {
        grid-template-columns: 1fr;
    }
    
    .competitors-grid {
        grid-template-columns: 1fr;
    }
    
    .redirect-rule {
        grid-template-columns: 1fr;
    }
    
    .score-comparison {
        grid-template-columns: 1fr;
    }
    
    .bulk-actions-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .bulk-actions-bar > div {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .tabs {
        gap: 0.25rem;
    }
    
    .tab {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    button {
        width: 100%;
        justify-content: center;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .comparison-input-group {
        flex-direction: column;
    }
}
