.seo-audit-result {
    background: #1e1e2f;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.seo-score h2 {
    font-size: 36px;
    color: #0f0;
}

.seo-issues ul {
    list-style: disc;
    padding-left: 20px;
}

.seo-issues li {
    margin-bottom: 5px;
}
/* Loading state */
#start_audit.loading {
    background: #444 !important;
    cursor: not-allowed;
}

.audit-loading {
    color: #888;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

/* Result styling */
.seo-audit-result {
    background: #111;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #222;
}

.seo-score-circle {
    text-align: center;
    margin-bottom: 25px;
}

.score-value {
    font-size: 3.5rem;
    font-weight: bold;
    color: #0f0; /* green for good score, or make dynamic */
}


.seo-issues-section h3 {
    color: #ff6b6b;
    margin-bottom: 15px;
}

.audit-issues-list {
    list-style: none;
    padding: 0;
}

.audit-issues-list li {
    background: #1a0000;
    color: #ffcccc;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 6px;
    border-left: 4px solid #ff4444;
}

.go-error {
    color: #ff6b6b;
    background: #2a0000;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #660000;
}

.aiware-seo-audit {
    /*max-width: 1400px;*/
    margin: 0 auto;
    padding: 40px 20px;
    /*background: #0a0a0a;*/
    color: #e0e0e0;
}
.check-card.warning {
    background-color: #fdedb5fa;
    color: black;
    border-color: #fdedb5fa;
}
.audit-header {
    background: #111;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 40px;
}
/* Base card styling - common for all states */
.check-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;          /* light gray border */
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Hover effect for all cards */
.check-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

/* Pass / Success state - Green */
.check-card.pass {
    border-left: 4px solid #22c55e;      /* green left border */
    background-color: rgba(34, 197, 94, 0.05); /* very light green bg */
    color: #166534;                      /* dark green text */
}

/* Warning state - Yellow/Orange */
.check-card.warning {
    border-left: 4px solid #f59e0b;      /* yellow-orange border */
    background-color: rgba(245, 158, 11, 0.08); /* light yellow bg */
    color: #92400e;                      /* dark orange text */
}

/* Fail / Error state - Red */
.check-card.fail {
    border-left: 4px solid #ef4444;      /* red border */
    background-color: rgba(239, 68, 68, 0.08); /* light red bg */
    color: #991b1b;                      /* dark red text */
}

/* Icon styling (inside check-card) */
.check-card .check-icon {
    font-size: 1.5rem;
    font-weight: bold;
    min-width: 32px;
    text-align: center;
}

/* Pass icon color */
.check-card.pass .check-icon {
    color: #22c55e;
}

/* Warning icon color */
.check-card.warning .check-icon {
    color: #f59e0b;
}

/* Fail icon color */
.check-card.fail .check-icon {
    color: #ef4444;
}

/* Description text */
.check-card .check-content strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.check-card .check-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: inherit;
    font-size: 15px;
}
.check-content strong {
    font-size: 15px !important;
}
/* Optional: prevent wrapping for long descriptions (like Modern Image Formats) */
.check-card .check-desc.no-wrap {
    /*white-space: nowrap;*/
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive - allow wrapping on small screens */
@media (max-width: 600px) {
    .check-card .check-desc {
        white-space: normal;
        word-wrap: break-word;
    }
}

.audit-header h1 {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.url-input-row {
    display: flex;
    max-width: 780px;
    margin: 0 auto 20px;
    gap: 12px;
}

.url-wrapper {
    flex: 1;
    display: flex;
    background: #1c1c1e;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
}

.url-globe {
    padding: 16px 18px;
    background: #222;
    color: #777;
    font-size: 1.3rem;
}

#audit_url {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.15rem;
    padding: 16px;
}

.audit-btn {
    background: #f59e0b;
    color: #000;
    font-weight: 700;
    padding: 0 32px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-btn {
    background: #222;
    color: #aaa;
    border: 1px solid #444;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
}

.download-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.stat-card {
    background: #111;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #1e1e1e;
}


.stat-small {
    color: #999;
    font-size: 0.95rem;
}

/* Gauge */
.score-ring {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
}

.ring-bg {
    fill: none;
    stroke: #222;
    stroke-width: 14;
}

.ring-progress {
    fill: none;
    stroke: #f59e0b;
    stroke-width: 14;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    stroke-dasharray: 327;
    stroke-dashoffset: 327;
    transition: stroke-dashoffset 1.2s ease;
}

.score-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-label { color: #aaa; font-size: 1.1rem; }
.score-status { color: #f59e0b; font-weight: 600; }

/* Tabs */
.audit-tabs {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid #222;
    margin-bottom: 30px;
}

.tab {
    padding: 16px 32px;
    background: transparent;
    border: none;
    color: #888;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    white-space: nowrap;
}

.tab.active {
    color: #f59e0b !important;
    border-bottom: 4px solid #f59e0b;
}
button.tab:hover {
    background-color: unset;
    color: black;
}
/* Checklist */
.check-card {
    background: #111;
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 1px solid #1e1e1e;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
.audit-main-grid {
    display: flex;
    gap: 20px;
}
div#checklist-panel {
    width: 60%;
}
aside.priority-sidebar {
    width: 40%;
}
.check-icon {
    font-size: 1.8rem;
    min-width: 32px;
}

.pass .check-icon { color: #22c55e; }
.fail .check-icon { color: #ef4444; }

.check-card strong { font-size: 1.15rem; display: block; margin-bottom: 6px; }

/* Sidebar */
.priority-box {
    background: #190000;
    border: 1px solid #4c0000;
    border-radius: 12px;
    padding: 24px;
}

.priority-box h3 {
    color: #f87171;
    margin: 0 0 18px;
    font-size: 1.4rem;
}

/* Priority fixes list - with green tick icons */
#priority-fixes-list ul {
    list-style: none;          /* Remove default bullets */
    padding: 0;
    margin: 0;
}

#priority-fixes-list ul li {
    position: relative;
    padding-left: 28px;        /* Space for the tick icon */
    margin-bottom: 12px;
    color: #e2e8f0;
    font-size: 15px;
    line-height: 1.5;
}

/* Green tick icon before each item */
#priority-fixes-list ul li::before {
    content: "✓";              /* Unicode checkmark */
    position: absolute;
    left: 0;
    color: #22c55e;            /* Bright green */
    font-size: 18px;
    font-weight: bold;
    line-height: 1.5;
}

/* Optional: hover effect for better UX */
#priority-fixes-list ul li:hover {
    color: white;
    transform: translateX(4px);
    transition: all 0.2s ease;
}

/* Loading */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.85);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f59e0b;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
/* Make ring transition smooth */
#progress-ring {
    transition: stroke 0.6s ease, stroke-dashoffset 0.8s ease;
    stroke-linecap: round;
}

/* Priority list style */
.priority-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.priority-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(239, 68, 68, 0.15);
    color: #fecaca;
}
.priority-list li:last-child {
    border-bottom: none;
}
.no-priority {
    color: #86efac;
    font-style: italic;
    padding: 10px 0;
}
/* Force one-line descriptions for long text */
.check-desc {
    white-space: nowrap;           /* Prevents wrapping */
    overflow: hidden;              /* Hides overflow if too long */
    text-overflow: ellipsis;       /* Shows ... if truncated */
    max-width: 100%;               /* Fits container */
}

/* Optional: Allow wrapping only if screen is very small */
@media (max-width: 600px) {
    .check-desc {
        white-space: normal;
        word-wrap: break-word;
    }
}
.check-desc.no-wrap-desc {
    display: flex;
    gap: 2px;
}
[type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover {
    background-color: transparent !Important;
    color: #fff;
    text-decoration: none;
}
/* Score inner text colors - match the ring */
.score-excellent {
    color: #22c55e !important; /* green */
    font-weight: bold;
}

.score-warning {
    color: #f59e0b !important; /* yellow/orange */
    font-weight: bold;
}

.score-poor {
    color: #ef4444 !important; /* red */
    font-weight: bold;
}

/* Optional: make the background or border match too (if you want stronger effect) */
.score-inner.score-poor {
    color: #ef4444;
}

.score-inner.score-warning {
    color: #f59e0b;
}

.score-inner.score-excellent {
    color: #22c55e;
}
/* Or create a specific class for Modern Image Formats */
.no-wrap-desc {
    white-space: nowrap !important;
}
.stat-big#load-time {
    min-width: 60px;           /* prevents jumping when digits change */
    text-align: right;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr; /* 5 columns */
    gap: 16px;
    margin-bottom: 32px;
    background: black; /* dark background like reference */
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #1e293b;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Main Score Card (circular) */
.stat-card.score-main {
    grid-column: span 1;
    background: #222222;
    border-radius: 16px;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180px;
}

.score-ring {
    position: relative;
    width: 165px;
    height: 165px;
}

.ring-bg {
    fill: none;
    stroke: #334155;
    stroke-width: 8;
}

.ring-progress {
    fill: none;
    stroke: #f59e0b; /* yellow-orange like reference */
    stroke-width: 8;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 1s ease, stroke 0.8s ease;
}

.score-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.score-number {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: #f59e0b; /* yellow-orange number */
}

.score-label {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    margin: 8px 0 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-status {
    font-size: 14px;
    font-weight: 600;
    line-height: 13px;
}

/* Other Stat Cards */
.stat-card {
    background: #222222;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 12px;
    color: #94a3b8;
}

.stat-big {
    font-size: 25px;
    font-weight: 800;
    color: white;
    margin: 8px 0;
}

.stat-small {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.download-btn {
    display: none; /* hidden initially */
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.download-btn:disabled {
    background: #4b5563;
    cursor: not-allowed;
    opacity: 0.6;
}
/* Responsive adjustments */
@media (max-width: 1200px) {
    .stat-card.score-main {
        grid-column: span 3;
    }
}