/* =============================================================================
   KUWARE LINKCHECKER - CONSOLIDATED STYLES
   Generated from template files
   ============================================================================= */

/* -----------------------------------------------------------------------------
   CSS VARIABLES AND ROOT STYLES (from base.html)
   ----------------------------------------------------------------------------- */
:root {
    --primary-color: #1155cc;
    --secondary-color: #cc6600;
    --accent-color: #229944;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --text-primary: #212529;
    --text-secondary: #333;
    --border-color: #d3d3d3;
    --light-color: #cfe2f3;
    --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --bs-btn-active-bg: #1155cc;
    --bs-btn-active-border-color: #1155cc;
    --bs-primary: #1155cc;
    -bs-success: #229944;
}

/* -----------------------------------------------------------------------------
   GLOBAL STYLES (from base.html)
   ----------------------------------------------------------------------------- */
* {
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #F8F9FA;
    color: var(--text-primary);
    overflow: hidden;
}

a{
    color: var(--primary-color);
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* -----------------------------------------------------------------------------
   LAYOUT CONTAINERS (from base.html)
   ----------------------------------------------------------------------------- */
.main-container {
    height: 100vh;
    overflow: hidden;
}

.main-wrapper {
    margin-left: 300px;
    padding: 30px 25px;
    height: 100vh;
    overflow-y: auto;
    width: calc(100% - 300px);
}

/* -----------------------------------------------------------------------------
   SIDEBAR STYLES (from base.html)
   ----------------------------------------------------------------------------- */
.sidebar {
    width: 300px;
    background: white;
    border-right: 1px solid var(--border-color);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow: hidden;
    padding: 0;
    z-index: 100;
}

.nav-scroll-area {
    padding-bottom: 20px;
}

.nav-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.nav-scroll-area::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.nav-scroll-area::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}

.sidebar .nav-link {
    color: var(--text-secondary);
    padding: 0.65rem 1rem;
    border-radius: 4px;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.sidebar-account .btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.sidebar-account .dropdown-menu {
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.5rem;
}

.sidebar-account .dropdown-item {
    border-radius: 4px;
    margin: 0.125rem 0;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.sidebar-account .dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

.sidebar-account .dropdown-item.text-danger:hover {
    background-color: var(--danger-color);
    color: white !important;
}

/* -----------------------------------------------------------------------------
   CARD STYLES (from base.html)
   ----------------------------------------------------------------------------- */
.card {
    border: none;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-header {
    background-color: var(--light-color);
}

/* -----------------------------------------------------------------------------
   BUTTON STYLES (from base.html and other templates)
   ----------------------------------------------------------------------------- */
.btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 4px;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Google Login Button (from base.html) */
.google-login-btn {
    background-color: #4285f4;
    text-align: left;
    border: none;
    color: #fff;
    font-size: 18px;
    border-radius: 2px;
    padding: 1px 20px 1px 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.google-login-btn svg {
    width: 45px;
    height: 45px;
    margin-right: 20px;
    padding: 10px;
    background: #fff;
    border-radius: 1px;
}

.google-login-btn:hover {
    box-shadow: 0 0 3px 3px rgba(66, 133, 244, .3);
    background-color: #4285f4;
}

/* Download and Action Buttons (from scan_results_new.html) */
.download-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.download-btn:hover {
    background-color: #218838;
    color: white;
    text-decoration: none;
}

.rescan-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.rescan-btn:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
}

/* Back Button (from page_analysis.html) */
.back-btn {
    background-color: #6b7280;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn:hover {
    background-color: #4b5563;
    color: white;
    text-decoration: none;
}

/* Filter Buttons (from scan_results_new.html) */
.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

.filter-btn:hover:not(.active) {
    transform: translateY(-1px);
}

/* -----------------------------------------------------------------------------
   FORM STYLES (from base.html)
   ----------------------------------------------------------------------------- */
.form-control, .form-select {
    border-radius: 5px;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(17, 85, 204, 0.25);
}

/* -----------------------------------------------------------------------------
   TABLE STYLES (from base.html and multiple templates)
   ----------------------------------------------------------------------------- */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    font-size: 15px;
}

/* Mistakes Table Styles (from scan_results_new.html) */
.mistakes-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.mistakes-table th {
    background-color: #f9fafb;
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.mistakes-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
    background-color: white;
}

/* URLs Table (from url_list_results.html) */
.urls-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
}

.urls-table th {
    background-color: #f9fafb;
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.urls-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
    background-color: #ffffff;
}

/* -----------------------------------------------------------------------------
   ALERT AND PROGRESS STYLES (from base.html)
   ----------------------------------------------------------------------------- */
.alert, .progress {
    padding: 8px 12px;
}

.alert-dismissible .btn-close {
    padding: 12px;
}

/* -----------------------------------------------------------------------------
   STATS AND METRICS STYLES (from multiple templates)
   ----------------------------------------------------------------------------- */
.stats-card {
    border-left: 5px solid;
    border-color: var(--primary-color);
}

.stats-card.success {
    border-color: var(--accent-color);
}

.stats-card.warning {
    border-color: var(--warning-color);
}

.stats-card.danger {
    border-color: var(--danger-color);
}

/* Summary Stats (from scan_results_new.html) */
.summary-stats {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}

.summary-stat {
    text-align: center;
    flex: 1;
    min-width: 150px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.summary-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.summary-icon.links {
    color: var(--primary-color);
}

.summary-icon.internal {
    color: #28a745;
}

.summary-icon.external {
    color: #17a2b8;
}

.summary-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 0.5rem;
}

.summary-label {
    color: #6c757d;
    font-weight: 500;
}

.summary-desc {
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 400;
    margin-top: 2px;
}

/* -----------------------------------------------------------------------------
   BADGE STYLES (from base.html and multiple templates)
   ----------------------------------------------------------------------------- */
.badge {
    border-radius: 3px;
    font-weight: 500;
}

table .badge {
    min-width: 70px;
}

/* Status Badges */
.status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 9pt;
    font-weight: bold;
}

.status.success {
    background-color: #d4f4dd;
    color: #22543d;
}

.status.error {
    background-color: #fed7d7;
    color: #742a2a;
}

.status.warning {
    background-color: #fef5e7;
    color: #744210;
}

.status.info {
    background-color: #e6f4ff;
    color: #0052cc;
}

/* URL Type Badges (from url_list_results.html) */
.url-type {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.url-type.internal {
    background-color: #d1fae5;
    color: #059669;
}

.url-type.external {
    background-color: #dbeafe;
    color: #2563eb;
}

/* -----------------------------------------------------------------------------
   NAVIGATION STYLES (from multiple templates)
   ----------------------------------------------------------------------------- */
.nav-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 2rem;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 500;
    padding: 1rem 1.5rem;
    margin-bottom: -2px;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: none;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--primary-color);
}

/* Filter Tabs (from url_list_results.html) */
.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.filter-tab {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.filter-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

/* -----------------------------------------------------------------------------
   HEADER STYLES (from multiple templates)
   ----------------------------------------------------------------------------- */
.header-gradient {
    margin-bottom: 2rem;
}

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

.header-section {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 2rem 0;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.page-url {
    font-size: 0.9rem;
    color: #3b82f6;
    margin-top: 0.25rem;
}

/* -----------------------------------------------------------------------------
   SECTION STYLES (from multiple templates)
   ----------------------------------------------------------------------------- */
.content-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.section-header {
    background-color: #f9fafb;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 8px 8px 0 0;
}

/* PDF-specific section header overrides */
@media print {
    .section-header {
        font-size: 14pt;
        font-weight: bold;
        color: #333;
        padding: 10px;
        background-color: #f5f5f5;
        border-left: 4px solid #4a90e2;
        margin-bottom: 15px;
        border-radius: 0;
    }
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.section-content {
    padding: 1.5rem;
}

.summary-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* PDF-specific summary section overrides */
@media print {
    .summary-section {
        margin-bottom: 40px;
    }
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 2rem;
}

/* Mistake Sections (from multiple templates) */
.mistake-section {
    margin-bottom: 3rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
}

.mistake-header {
    background-color: #f9fafb;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.mistake-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.mistake-url {
    color: #3b82f6;
    text-decoration: none;
}

.mistake-url:hover {
    text-decoration: underline;
}

/* URL Section (from url_list_results.html) */
.url-section {
    margin-bottom: 3rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
}

.url-header {
    background-color: #f9fafb;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.url-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

/* -----------------------------------------------------------------------------
   ERROR AND CONTEXT STYLES (from multiple templates)
   ----------------------------------------------------------------------------- */
.error-word {
    font-weight: 600;
    color: #dc2626;
}

.correction-word {
    font-weight: 600;
    color: #059669;
}

.context-text {
    color: #6b7280;
    line-height: 1.6;
    max-width: 500px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.action-dots {
    color: #9ca3af;
    font-weight: bold;
    text-align: center;
}

/* -----------------------------------------------------------------------------
   FOOTER STYLES (from base.html)
   ----------------------------------------------------------------------------- */
.footer {
    background-color: black;
    color: white;
    padding: 1rem 0;
    margin-top: 3rem;
    text-align: center;
}

.footer p {
    margin-bottom: 0;
}

/* -----------------------------------------------------------------------------
   LOGIN PAGE STYLES (from base.html)
   ----------------------------------------------------------------------------- */
.login-page > .row {
    height: 100vh;
    display: flex;
    align-items: center;
}

.login-page .card:hover {
    transform: none;
}

/* -----------------------------------------------------------------------------
   SCROLL BAR STYLES (from base.html)
   ----------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background-color: #aaa;
    border-radius: 6px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
    width: 15px;
}

/* -----------------------------------------------------------------------------
   PAGE INSIGHTS STYLES (from scan_results_new.html and page_analysis.html)
   ----------------------------------------------------------------------------- */
.insights-score-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.insights-score-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.metric-icon-container {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audit-item {
    transition: background-color 0.2s;
}

.audit-item:hover {
    background-color: #f8f9fa;
}

.score-circle {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.performance-good {
    background-color: #d4edda;
    color: #155724;
}

.performance-average {
    background-color: #fff3cd;
    color: #856404;
}

.performance-poor {
    background-color: #f8d7da;
    color: #721c24;
}

/* Insights Section (from page_analysis.html) */
.insights-section {
    padding: 1.5rem;
}

.insight-block {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
}

.insight-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.scores-grid {
    display: grid;
    gap: 1rem;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.score-label {
    font-weight: 500;
    color: #374151;
}

.score-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Score Color Classes */
.score-0, .score-1, .score-2, .score-3, .score-4 { color: #dc2626; }
.score-5, .score-6, .score-7 { color: #f59e0b; }
.score-8, .score-9, .score-10 { color: #16a34a; }

/* -----------------------------------------------------------------------------
   SUBSCRIPTION MANAGEMENT STYLES (from manage_subscription.html)
   ----------------------------------------------------------------------------- */

.plan-col {
    padding: 15px 15px 0;
}

.pricing-col {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    min-height: 600px;
}

.plan-col.is-highlighted .pricing-col {
    background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);
    color: white;
    border-color: #1a73e8;
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.3);
}

.plan-col.is-highlighted .head {
    position: absolute;
    top: -5px;
    left: 15px;
    background: #34a853;
    color: white;
    padding: 5px 15px;
    border-radius: 0 0 8px 8px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.pricing-col h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 20px 0 15px 0;
}

.plan-price {
    margin: 20px 0;
}

.price-col-text {
    font-size: 48px;
    font-weight: bold;
}

.plan-col.is-highlighted .PriceColumn-interval {
    color: rgba(255, 255, 255, 0.8);
}

.pricing-col h5 {
    font-size: 14px;
    color: #666;
    margin: 15px 0 25px 0;
}

.plan-col.is-highlighted h5 {
    color: rgba(255, 255, 255, 0.9);
}

.price-list {
    text-align: left;
    margin: 8px 0;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.price-list .material-icons {
    margin-right: 10px;
    font-size: 18px;
}

.pricing-col .btn {
    margin-top: 30px;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    width: auto;
    min-width: 150px;
}

.without-discount {
    color: #999;
    font-size: 24px;
    display: block;
    margin-bottom: 5px;
}

.plan-col.is-highlighted .without-discount {
    color: rgba(255, 255, 255, 0.7);
}

/* Hover effects */
.pricing-col:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.plan-col.is-highlighted .pricing-col:hover {
    box-shadow: 0 10px 30px rgba(66, 133, 244, 0.4);
}

/* Button styling */
.btn-success {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

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

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

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

/* -----------------------------------------------------------------------------
   PDF REPORT STYLES (from lbt_style_report.html)
   ----------------------------------------------------------------------------- */
@page {
    size: A4;
    margin: 1.5cm;
}

/* Main Title */
.main-title {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

.main-title h1 {
    font-size: 24pt;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.main-title .subtitle {
    font-size: 14pt;
    color: #666;
    margin-bottom: 5px;
}

.main-title .date {
    font-size: 11pt;
    color: #888;
}

/* Summary Section - merged with existing styles */

.summary-section h2 {
    font-size: 16pt;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.summary-table {
    width: 100%;
    margin-bottom: 20px;
}

.summary-table td {
    padding: 8px 0;
    vertical-align: top;
}

.summary-table td:first-child {
    width: 200px;
    font-weight: bold;
    color: #555;
}

.summary-table td:last-child {
    color: #333;
}

.metrics-grid {
    display: table;
    width: 100%;
    margin: 20px 0;
}

.metrics-row {
    display: table-row;
}

.metric-box {
    display: table-cell;
    width: 25%;
    padding: 15px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.metric-value {
    font-size: 24pt;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 10pt;
    color: #666;
    text-transform: uppercase;
}

/* Section Headers */
.section {
    margin-bottom: 30px;
    page-break-inside: avoid;
}

/* PDF-specific section header styling - merged with existing .section-header */

/* URL styling */
.url {
    word-break: break-word;
    font-family: 'Courier New', monospace;
    font-size: 9pt;
    color: #2563eb;
}

/* Severity badges */
.severity {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 9pt;
}

.severity.high, .severity.critical {
    background-color: #fee;
    color: #c00;
    font-weight: bold;
}

.severity.medium {
    background-color: #fff8e6;
    color: #f90;
}

.severity.low {
    background-color: #f0f8ff;
    color: #069;
}

/* No issues message */
.no-issues {
    padding: 20px;
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 4px;
    text-align: center;
    color: #0369a1;
    font-weight: bold;
}

/* Page break */
.page-break {
    page-break-before: always;
}

/* Analysis summary */
.analysis-summary {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 3px solid #4a90e2;
}

.analysis-summary p {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* -----------------------------------------------------------------------------
   PDF REPORT PROFESSIONAL STYLES (from pdf_report.html)
   ----------------------------------------------------------------------------- */
/* Professional PDF Styling */
@page {
    size: A4;
    margin: 1cm;
    @top-center {
        content: "KUWARE - Website Analysis Report";
        font-family: 'Arial', sans-serif;
        font-size: 10pt;
        color: #666;
    }
    @bottom-center {
        content: "Page " counter(page) " of " counter(pages);
        font-family: 'Arial', sans-serif;
        font-size: 10pt;
        color: #666;
    }
}

/* Header Section */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 8px;
}

.header h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.header .subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.scan-info {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 6px;
    text-align: left;
    margin-top: 20px;
}

.scan-info table {
    width: 100%;
    color: white;
}

.scan-info td {
    padding: 8px 0;
    vertical-align: top;
}

.scan-info td:first-child {
    font-weight: bold;
    width: 150px;
}

/* Overview Section */
.overview {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 5px solid #3498db;
}

.overview h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card .icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.stat-card .label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.stat-card .value {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
}

/* Section Styling */
.section.broken-links h2 { background: #e74c3c; }
.section.mistakes h2 { background: #f39c12; }
.section.pages h2 { background: #27ae60; }
.section.seo h2 { background: #9b59b6; }

/* Table Styling */
.table-container {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

td {
    padding: 12px 10px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.4;
}

tr:nth-child(even) td {
    background: #f8f9fa;
}

tr:hover td {
    background: #e3f2fd;
    box-shadow: none;
}

/* Success Messages */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    border-left: 5px solid #28a745;
}

/* Subsection Headers */
.subsection {
    background: #6c5ce7;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 20px 0 15px 0;
    font-size: 16px;
    font-weight: bold;
}

/* Responsive adjustments for PDF */
@media print {
    .header {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .section h2 {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Special styling for different issue types */
.broken-links-table th { background: #c0392b; }
.spelling-table th { background: #e67e22; }
.grammar-table th { background: #8e44ad; }
.pages-table th { background: #27ae60; }
.seo-table th { background: #16a085; }

/* -----------------------------------------------------------------------------
   SPECIALIZED STYLES (from various templates)
   ----------------------------------------------------------------------------- */
/* Info Grid (from page_analysis.html) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background-color: #f9fafb;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 1rem;
    color: #1f2937;
    word-break: break-word;
}

/* Headings and Links Lists (from page_analysis.html) */
.headings-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.heading-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.heading-item:last-child {
    border-bottom: none;
}

.heading-level {
    font-weight: bold;
    color: #3b82f6;
    margin-right: 1rem;
    min-width: 2rem;
}

.heading-text {
    color: #1f2937;
    line-height: 1.5;
}

.links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.link-item:last-child {
    border-bottom: none;
}

.link-text {
    color: #3b82f6;
    text-decoration: none;
    word-break: break-all;
    flex: 1;
}

.link-text:hover {
    text-decoration: underline;
}

.url-link {
    color: #3b82f6;
    text-decoration: none;
    word-break: break-all;
}

.url-link:hover {
    text-decoration: underline;
}

.link-status {
    margin-left: 1rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.status-ok {
    background-color: #d1fae5;
    color: #065f46;
}

.status-error {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Issues and SEO Fixes (from page_analysis.html) */
.issues-section {F
    margin-bottom: 2rem;
}

.issue-item {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 1rem;
    background-color: #ffffff;
}

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

.issue-title {
    font-weight: 600;
    color: #1f2937;
}

.issue-severity {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.severity-critical {
    background-color: #fee2e2;
    color: #991b1b;
}

.severity-high {
    background-color: #fef3c7;
    color: #92400e;
}

.severity-medium {
    background-color: #dbeafe;
    color: #1e40af;
}

.severity-low {
    background-color: #f3f4f6;
    color: #4b5563;
}

.issue-description {
    color: #6b7280;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.issue-fix {
    background-color: #f0f9ff;
    padding: 0.75rem;
    border-radius: 4px;
    border-left: 3px solid #3b82f6;
}

.fix-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.fix-text {
    font-size: 0.9rem;
    color: #1f2937;
    margin: 0;
}

/* No Data/Error States */
.no-data, .no-errors, .no-issues, .no-insights, .no-urls {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.no-errors h3, .no-issues h3 {
    color: #10b981;
    margin-bottom: 1rem;
}

.no-insights h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.no-insights ul {
    text-align: left;
    display: inline-block;
}

/* Search Box (from url_list_results.html) */
.search-box {
    width: 100%;
    max-width: 400px;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Statistics (from url_list_results.html) */
.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.stats-group {
    display: flex;
    gap: 3rem;
    align-items: center;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #059669;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin: 0;
}

/* Actions column styling */
.table th:nth-child(5), 
.table td:nth-child(5) {
    width: 120px;
    text-align: center;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Re-audit Button (from page_analysis.html) */
#reaudit-btn {
    background-color: #6b7280;
    border-color: #6b7280;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

#reaudit-btn:hover {
    background-color: #4b5563;
    border-color: #4b5563;
    color: white;
}

#reaudit-btn:disabled {
    background-color: #9ca3af;
    border-color: #9ca3af;
    color: white;
}

/* See More Button */
.see-more-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
}

/* Override any existing purple theme */
.bg-primary{ 
    background-color: var(--primary-color) !important; 
}

.text-primary{
    color: var(--primary-color) !important;
}

.asteriskField{
    color: var(--danger-color);
    margin-left: 2px;
}

.alert-info {
    --bs-alert-color: var(--primary-color);
    --bs-alert-bg: var(--light-color);
}

/* -----------------------------------------------------------------------------
   READONLY ELEMENT STYLES
   ----------------------------------------------------------------------------- */
input[readonly],
textarea[readonly],
select[readonly],
.form-control[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #dee2e6;
    opacity: 0.8;
}

input[readonly]:focus,
textarea[readonly]:focus,
select[readonly]:focus,
.form-control[readonly]:focus {
    box-shadow: none;
}

/* Readonly field wrapper (for Django readonly fields) */
.readonly {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.5;
    min-height: calc(1.5em + 0.75rem + 2px);
    display: block;
    width: 100%;
}

/* End of consolidated stylses */

.btn{
    font-weight: 600;
}

.what-we-check-item i{
    font-size: 20px;
    margin-top: 5px;
}

.action-btns a, .action-btns button{
    font-size: 13px;
    padding: 3px 10px;
    min-width: 37px;
}

.action-btns button{
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.pricing-col{
    padding: 30px 0 35px;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
    border-radius: 30px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    border: 3px solid var(--primary-color);
    background: #f5f5f7;
  }
  .pricing-col h3{
    text-align: center;
    color: #000;
    font-weight: 600;
    margin-bottom: 5px;
  }
  .pricing-col .plan-price{
    margin: 0 20px;
    text-align: center;
  }
  .pricing-col .plan-price .price-col-text{
    font-size: 3.2rem;
    font-weight: 600;
  } 
  .pricing-col h5{
    margin: 5px 40px 20px;
    text-align: center;
    font-weight: 500;
    font-size: 15px;
  }
  .pricing-col .price-list{
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 30px 5px;
    min-height: 24px;
  }
  .pricing-col .price-list i{
    font-size: 24px;
  }
  .pricing-col .price-list i.fa-check-square{
    color: var(--accent-color);
  }
  .pricing-col .price-list i.fa-square-xmark{
    color: var(--danger-color);
  }
  .pricing-col a.btn-success{
    margin: 20px 40px 0;
  }
  .plan-col .head{
    display: none;
  }
  .plan-col.is-highlighted .pricing-col{
    background: var(--primary-color);
    scale: 1.07;
    overflow: hidden;
    position: relative;
    border: 0;
  }
  .plan-col.is-highlighted .pricing-col *{
  color: #fff;
  }
  .plan-col.is-highlighted .head{
    background: linear-gradient(90deg, var(--accent-color) 0%, #54c751 50%, var(--accent-color) 100%);
    transform: rotate(-45deg);
    position: absolute;
    padding: 5px;
    text-align: center;
    width: 183px;
    top: 1.5rem;
    left: -3.5rem;
    border: 2px solid #91ff69;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.2);
    display: block;
  }
  .plan-col.is-highlighted a.btn-success{
    background: var(--danger-color);
    box-shadow: none;
    border-color: var(--danger-color);
  }