/**
 * On-Page SEO Section Styles
 */

.onpage-seo-section {
    padding: 20px 0;
}

.security-checklist-inline {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.security-checklist-inline .ssl-item-wrapper {
    flex: 1;
    min-width: 200px;
}

.crawl-checklist-inline {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.crawl-checklist-inline .crawl-item-wrapper {
    flex: 1;
    min-width: 200px;
}

/* Score Overview */
.score-overview-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4ff 100%);
    border: 1px solid #e0e7ff;
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
    transition: all 0.3s ease;
}

.score-overview-card:hover {
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.12);
}

.score-circle-container {
    position: relative;
    display: inline-block;
    width: 140px;
    height: 140px;
}

.score-circle-container svg {
    position: absolute;
    top: 0;
    left: 0;
}

.score-text-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.score-number {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    color: #1a365d;
    text-shadow: none;
}

.score-label {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 4px;
    color: #475569;
    font-weight: 600;
}

.section-title {
    color: #1a365d;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 0;
}

.score-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2d3748;
    background: #f7fafc;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: white;
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stat-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.stat-icon-circle.success {
    background: rgba(40, 167, 69, 0.12);
    color: #22863a;
}

.stat-icon-circle.danger {
    background: rgba(220, 53, 69, 0.12);
    color: #cb2431;
}

.stat-icon-circle.info {
    background: rgba(255, 193, 7, 0.12);
    color: #9e6200;
}

.stat-details {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-value {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: #1a365d;
}

.stat-label-small {
    font-size: 12px;
    opacity: 0.75;
    color: #475569;
    font-weight: 600;
}

.progress-modern {
    background: #e2e8f0;
    border-radius: 12px;
    height: 8px;
    overflow: hidden;
    position: relative;
}

.progress-bar-modern {
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0;
    transition: width 1s ease-in-out;
    position: relative;
    overflow: hidden;
}

.progress-bar-modern.excellent {
    background: #10b981;
}

.progress-bar-modern.good {
    background: #0ea5e9;
}

.progress-bar-modern.fair {
    background: #f59e0b;
}

.progress-bar-modern.poor {
    background: #ef4444;
}

.progress-label {
    font-weight: 700;
    color: white;
    font-size: 14px;
    text-shadow: none;
    display: none;
}

/* Analysis Cards */
.analysis-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.analysis-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.card-header-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: none;
}

.card-header-custom i {
    font-size: 26px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.card-header-custom h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: white;
    flex: 1;
}

.card-body {
    padding: 25px;
}

/* Content Preview */
.content-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 18px;
    border-radius: 10px;
    border-left: 5px solid #667eea;
    font-size: 15px;
    line-height: 1.7;
    color: #212529;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.metrics-row {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #495057;
}

.metric {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.3s;
}

.metric:hover {
    background: #e9ecef;
    transform: translateX(3px);
}

.metric i {
    color: #667eea;
    font-size: 16px;
}

.metric strong {
    color: #2d3748;
}

/* Progress Wrapper */
.progress-wrapper {
    background: #e9ecef;
    height: 10px;
    border-radius: 10px;
    overflow: visible;
    position: relative;
}

.progress-bar-slim {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s ease;
    position: relative;
}

.progress-bar-slim.success {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.progress-bar-slim.warning {
    background: linear-gradient(90deg, #ffc107 0%, #fd7e14 100%);
}

.progress-bar-slim.danger {
    background: linear-gradient(90deg, #dc3545 0%, #e83e8c 100%);
}

.progress-tooltip {
    position: absolute;
    right: -10px;
    top: -28px;
    background: #2d3748;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.progress-bar-slim:hover .progress-tooltip {
    opacity: 1;
}

/* SERP Preview */
.serp-preview-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    max-width: 600px;
}

.serp-url {
    color: #1a0dab;
    font-size: 14px;
    margin-bottom: 5px;
}

.serp-title {
    color: #1a0dab;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.3;
}

.serp-title:hover {
    text-decoration: underline;
}

.serp-description {
    color: #545454;
    font-size: 14px;
    line-height: 1.5;
}

/* Stat Boxes */
.stat-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s;
    height: 100%;
}

.stat-box.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 4px solid #28a745;
}

.stat-box.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #ffc107;
}

.stat-box.danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left: 4px solid #dc3545;
}

.stat-box.info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left: 4px solid #17a2b8;
}

.stat-icon {
    font-size: 36px;
    opacity: 0.8;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 14px;
    color: #495057;
    margin-bottom: 5px;
    font-weight: 600;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #212529;
    line-height: 1;
}

.stat-note {
    font-size: 13px;
    color: #495057;
    margin-top: 5px;
    font-weight: 500;
}

/* Stat Box Modern */
.stat-box-modern {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border-radius: 15px;
    transition: all 0.3s;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.stat-box-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stat-box-modern.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
}

.stat-box-modern.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
}

.stat-box-modern.danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
}

.stat-box-modern.info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 2px solid #17a2b8;
}

.stat-icon-large {
    font-size: 48px;
    opacity: 0.9;
}

.stat-value-large {
    font-size: 42px;
    font-weight: 800;
    color: #212529;
    line-height: 1;
    margin-bottom: 5px;
}

/* Metric Cards */
.metric-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.metric-card:hover {
    transform: translateY(-5px);
}

.metric-value {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Metric Cards Light */
.metric-card-light {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.metric-card-light:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.metric-icon {
    font-size: 28px;
    color: #667eea;
    margin-bottom: 10px;
}

.metric-value-light {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #212529;
    line-height: 1;
}

.metric-label-light {
    font-size: 13px;
    font-weight: 700;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Content Quality Meter */
.content-quality-meter {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.quality-meter-label {
    font-weight: 700;
    color: #2d3748;
    font-size: 15px;
}

.quality-scale-wrapper {
    position: relative;
    padding-bottom: 5px;
}

.quality-scale {
    position: relative;
    height: 50px;
    display: flex;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.quality-segment {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
    padding: 5px;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0.4;
}

.quality-segment.active {
    opacity: 1;
    transform: scaleY(1.15);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.3), 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.quality-segment:first-child {
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
}

.quality-segment:last-child {
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
}

.segment-value {
    font-size: 13px;
    font-weight: 800;
    margin-top: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.segment-label {
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.quality-segment.poor { 
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}
.quality-segment.fair { 
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}
.quality-segment.good { 
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}
.quality-segment.excellent { 
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}



/* Keyword Tables */
.table-responsive {
    margin-top: 15px;
}

.table {
    font-size: 14px;
}

.table th {
    background: #e9ecef;
    font-weight: 700;
    color: #212529;
    border-bottom: 2px solid #dee2e6;
    font-size: 14px;
}

.table td {
    color: #212529;
    font-weight: 500;
}

.table-hover tbody tr:hover {
    background: #f1f3f5;
}

/* Heading List */
.heading-list-container {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
}

.heading-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.heading-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.heading-item:last-child {
    border-bottom: none;
}

.heading-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #212529;
    font-weight: 500;
}

/* Technical Checklist */
.technical-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s;
}

.checklist-item.pass {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.checklist-item.fail {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.check-icon {
    font-size: 24px;
}

.check-label {
    font-weight: 700;
    color: #212529;
    margin-bottom: 3px;
    font-size: 15px;
}

.check-extra {
    font-size: 13px;
    color: #495057;
    font-weight: 500;
}

/* Security Items */
.security-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s;
}

.security-item.secure {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 4px solid #28a745;
}

.security-item.insecure {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left: 4px solid #dc3545;
}

.security-item i {
    font-size: 32px;
}

.security-label {
    font-weight: 700;
    color: #212529;
    margin-bottom: 5px;
    font-size: 14px;
}

.security-status {
    font-size: 18px;
    font-weight: 800;
    color: #212529;
}

/* Crawl Items */
.crawl-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
}

.crawl-item.pass {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.crawl-item.fail {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.crawl-item i {
    font-size: 32px;
    opacity: 0.8;
}

.crawl-label {
    font-weight: 700;
    color: #212529;
    margin-bottom: 5px;
    font-size: 14px;
}

.crawl-status {
    font-size: 18px;
    font-weight: 800;
    color: #212529;
}

/* Test Results */
.test-group {
    margin-bottom: 25px;
}

.test-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.test-item-wrapper {
    position: relative;
}

.test-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.test-item.pass {
    border-left: 4px solid #28a745;
}

.test-item.fail {
    border-left: 4px solid #dc3545;
}

.test-item:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    background: #f9fafb;
}

.test-item.expanded {
    border-radius: 8px 8px 0 0;
}

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.test-expand-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.test-expand-icon i {
    transition: transform 0.3s ease;
}

.test-explanation-pane {
    background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 100%);
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 20px;
    margin-top: 0;
    border-left: 4px solid #667eea;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.test-explanation-content {
    font-size: 14px;
    line-height: 1.6;
    color: #2d3748;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.test-explanation-content::before {
    content: '💡';
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.test-explanation-content {
    position: relative;
}

.test-name {
    font-weight: 700;
    color: #212529;
    font-size: 15px;
}

.test-score {
    background: #e9ecef;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 700;
    color: #212529;
}

.test-reason {
    font-size: 14px;
    color: #212529;
    line-height: 1.6;
    margin-bottom: 8px;
    font-weight: 500;
}

.test-recommendation {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    padding: 10px;
    border-radius: 5px;
    font-size: 13px;
    color: #856404;
    margin-top: 10px;
}

.test-recommendation i {
    margin-right: 5px;
}

/* Progress Bars */
.progress {
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
}

.bg-excellent { background-color: #28a745 !important; }
.bg-good { background-color: #17a2b8 !important; }
.bg-fair { background-color: #ffc107 !important; }
.bg-poor { background-color: #dc3545 !important; }

/* Badges */
.badge {
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
}

.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.badge-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.badge-modern.badge-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.badge-modern.badge-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #212529;
}

.badge-modern.badge-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.badge-modern.badge-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.badge-modern i {
    font-size: 14px;
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

/* Keyword Analysis Tabs - Unique Classes */
.keyword-tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    border-bottom: 2px solid #e9ecef;
    gap: 0;
}

.keyword-tab-item {
    margin: 0;
    padding: 0;
}

.keyword-tab-button {
    border: none;
    background: transparent;
    color: #6c757d;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.keyword-tab-button:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.keyword-tab-button.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
    border-bottom-color: #667eea;
}

.keyword-tab-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.keyword-tab-content {
    position: relative;
    min-height: 200px;
}

.keyword-tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.keyword-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keep original nav-tabs for other sections if needed */
.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 600;
    padding: 12px 20px;
    transition: all 0.3s;
    cursor: pointer;
    background: transparent;
}

.nav-tabs .nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.nav-tabs .nav-link.active {
    color: #667eea;
    background: none;
    border-bottom: 3px solid #667eea;
    cursor: default;
}

/* Responsive */
@media (max-width: 768px) {
    .score-overview-card {
        padding: 24px 16px;
    }
    
    .score-stats {
        flex-direction: row;
        gap: 10px;
        justify-content: flex-start;
    }
    
    .stat-item {
        padding: 12px 14px;
        flex: 1;
        min-width: 0;
        font-size: 13px;
    }
    
    .stat-icon-circle {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .stat-label-small {
        font-size: 11px;
    }
    
    .metric-card {
        margin-bottom: 15px;
    }
    
    .technical-checklist {
        grid-template-columns: 1fr;
    }
    
    .score-number {
        font-size: 38px;
    }
    
    .stat-value-large {
        font-size: 32px;
    }
    
    .stat-icon-large {
        font-size: 40px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .card-header-custom h4 {
        font-size: 18px;
    }
    
    .metrics-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .badge-modern {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .metric-card-light {
        padding: 15px;
    }
    
    .metric-value-light {
        font-size: 28px;
    }
    
    .metric-label-light {
        font-size: 12px;
    }
    
    .metric-icon {
        font-size: 24px;
    }
    
    .quality-scale-wrapper {
        padding-top: 70px;
    }
    
    .marker-label-box {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.analysis-card {
    animation: slideIn 0.5s ease-out;
}

/* List Group */
.list-group-item {
    border-left: none;
    border-right: none;
    padding: 12px;
    font-size: 13px;
}

.list-group-item:first-child {
    border-top: none;
}

.collapse {
    display: none;
}

.collapse.show {
    display: block;
}

.tech-item-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.tech-item-clickable {
    cursor: pointer;
    transition: all 0.3s;
}

.tech-item-clickable:hover {
    background: rgba(0, 0, 0, 0.02);
}

.tech-expand-icon {
    margin-left: auto;
    color: #667eea;
    transition: transform 0.3s ease;
}

.tech-explanation-pane {
    background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 100%);
    border: 1px solid #dee2e6;
    border-top: none;
    padding: 15px;
    margin-top: 0;
    border-left: 4px solid #667eea;
    font-size: 14px;
    line-height: 1.6;
    color: #2d3748;
    animation: slideDown 0.3s ease;
}

.ssl-item-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.ssl-item-clickable {
    cursor: pointer;
    transition: all 0.3s;
}

.ssl-item-clickable:hover {
    background: rgba(0, 0, 0, 0.02);
}

.ssl-expand-icon {
    margin-left: auto;
    color: #667eea;
    transition: transform 0.3s ease;
}

.ssl-explanation-pane {
    background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 100%);
    border: 1px solid #dee2e6;
    border-top: none;
    padding: 15px;
    margin-top: 0;
    border-left: 4px solid #667eea;
    font-size: 14px;
    line-height: 1.6;
    color: #2d3748;
    animation: slideDown 0.3s ease;
}

.crawl-item-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.crawl-item-clickable {
    cursor: pointer;
    transition: all 0.3s;
}

.crawl-item-clickable:hover {
    background: rgba(0, 0, 0, 0.02);
}

.crawl-expand-icon {
    margin-left: auto;
    color: #667eea;
    transition: transform 0.3s ease;
}

.crawl-explanation-pane {
    background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 100%);
    border: 1px solid #dee2e6;
    border-top: none;
    padding: 15px;
    margin-top: 0;
    border-left: 4px solid #667eea;
    font-size: 14px;
    line-height: 1.6;
    color: #2d3748;
    animation: slideDown 0.3s ease;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
}

.alert i {
    font-size: 20px;
}

/* Links Analysis Compact */
.links-analysis-compact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.links-metrics-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.links-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 14px;
    background: #f8fafc;
    border-radius: 8px;
    min-width: 70px;
}

.links-metric.internal {
    background: rgba(102, 126, 234, 0.1);
}

.links-metric.external {
    background: rgba(236, 72, 153, 0.1);
}

.links-metric-value {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.links-metric.internal .links-metric-value {
    color: #667eea;
}

.links-metric.external .links-metric-value {
    color: #ec4899;
}

.links-metric-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.links-chart-mini {
    margin-left: auto;
    width: 80px;
    height: 80px;
}

.links-tabs {
    display: flex;
    gap: 6px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
}

.links-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.links-tab:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.links-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.08);
}

.links-tab i {
    font-size: 12px;
}

.tab-count {
    background: #e5e7eb;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.links-tab.active .tab-count {
    background: #667eea;
    color: white;
}

.links-tab-content {
    position: relative;
}

.links-panel {
    display: none;
}

.links-panel.active {
    display: block;
}

.links-scroll {
    max-height: 180px;
    overflow-y: auto;
    padding: 8px 0;
}

.links-scroll::-webkit-scrollbar {
    width: 6px;
}

.links-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.links-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.links-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.link-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.link-item:hover {
    background: #f8fafc;
}

.link-item i {
    flex-shrink: 0;
    font-size: 14px;
    color: #667eea;
    margin-top: 2px;
}

.link-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.link-text {
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.link-url {
    font-size: 11px;
    color: #667eea;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.link-url:hover {
    text-decoration: underline;
}

.links-empty {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.links-showing {
    padding: 6px 10px;
    background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 100%);
    border-left: 3px solid #667eea;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
    border-radius: 0 6px 6px 0;
}

.onpage-expandable-card {
    position: relative;
}

.card-header-custom.onpage-card-clickable {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.card-header-custom.onpage-card-clickable:hover {
    background-color: rgba(102, 126, 234, 0.08);
}

.card-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header-title h4 {
    margin: 0;
}

.onpage-card-info-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.onpage-card-hint {
    font-size: 11px;
    color: #6c757d;
    opacity: 1;
    transition: opacity 0.5s ease-out;
    white-space: nowrap;
}

.onpage-card-hint.onpage-hint-fade {
    opacity: 0;
}

.onpage-card-info-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.onpage-card-info-icon span {
    color: white;
    font-size: 14px;
    font-weight: bold;
    font-style: normal;
    line-height: 1;
}

.onpage-card-info-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.onpage-card-info-icon.onpage-info-active {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.1);
}

.onpage-card-explanation-panel {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border: 1px solid #e0e7ff;
    border-radius: 12px;
    padding: 16px;
    margin: 12px 16px;
    animation: onpageSlideDown 0.3s ease-out;
}

@keyframes onpageSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.onpage-explanation-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.onpage-explanation-importance {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.onpage-explanation-desc {
    color: #4a5568;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.onpage-explanation-impact {
    background: rgba(102, 126, 234, 0.1);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    color: #5a67d8;
    margin-bottom: 12px;
    border-left: 3px solid #667eea;
}

.onpage-explanation-metrics {
    font-size: 12px;
    color: #4a5568;
}

.onpage-explanation-metrics ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.onpage-explanation-metrics li {
    margin-bottom: 4px;
    line-height: 1.5;
}

.onpage-card-expanded {
    background-color: rgba(102, 126, 234, 0.02);
}
