@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.sky-gsc-dashboard {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
}

.sky-gsc-dashboard.sky-seo-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 24px;
}

.sky-gsc-dashboard .sky-seo-section-heading h2 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.sky-gsc-property {
    display: inline-block;
    margin-left: 12px;
    padding: 4px 12px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    -webkit-text-fill-color: #2563eb;
}

.sky-gsc-how-it-works {
    background: #f6f7f7;
    border-left: 4px solid #2271b1;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 0 4px 4px 0;
}
.sky-gsc-how-it-works h3 {
    margin-top: 0;
}
.sky-gsc-how-it-works ol {
    margin-left: 20px;
}
.sky-gsc-how-it-works li {
    margin-bottom: 4px;
}

.sky-gsc-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
    padding: 12px;
    background: #f6f7f7;
    border-radius: 4px;
}
.sky-gsc-ranges .button,
.sky-gcs-actions .button {
    margin-right: 4px;
}
.sky-gsc-ranges .button-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.sky-gsc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0 24px;
}
.sky-gsc-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-top: 4px solid transparent;
}
.sky-gsc-stat-card.sky-gsc-interactive-card {
    cursor: pointer;
    user-select: none;
    background: #ffffff;
    opacity: 0.7;
}
.sky-gsc-stat-card.sky-gsc-interactive-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    opacity: 1;
}

/* Active card styles with GSC colors */
.sky-gsc-stat-card.sky-gsc-interactive-card.active.sky-gsc-stat-clicks {
    border-top-color: #1a73e8;
    background: #fff;
    opacity: 1;
}
.sky-gsc-stat-card.sky-gsc-interactive-card.active.sky-gsc-stat-impressions {
    border-top-color: #8430ce;
    background: #fff;
    opacity: 1;
}
.sky-gsc-stat-card.sky-gsc-interactive-card.active.sky-gsc-stat-ctr {
    border-top-color: #00832d;
    background: #fff;
    opacity: 1;
}
.sky-gsc-stat-card.sky-gsc-interactive-card.active.sky-gsc-stat-position {
    border-top-color: #e37400;
    background: #fff;
    opacity: 1;
}

.sky-gsc-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 4px;
}
.sky-gsc-stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Premium Tabs Navigation */
.sky-gsc-tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #dcdcde;
    margin: 20px 0;
    padding-bottom: 0px;
    flex-wrap: wrap;
}
.sky-gsc-tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    border-radius: 4px 4px 0 0;
    margin-bottom: -1px;
}
.sky-gsc-tab-btn .dashicons {
    font-size: 17px;
    width: 17px;
    height: 17px;
    color: #6b7280;
    transition: color 0.2s;
}
.sky-gsc-tab-btn:hover {
    color: #1d2327;
    background: #f3f4f6;
}
.sky-gsc-tab-btn:hover .dashicons {
    color: #1d2327;
}
.sky-gsc-tab-btn.active {
    border-bottom-color: #2271b1;
    color: #2271b1;
    background: #fff;
}
.sky-gsc-tab-btn.active .dashicons {
    color: #2271b1;
}
.sky-gsc-badge-count {
    background: #dc2626;
    color: #fff;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.sky-gsc-section-title {
    margin-top: 24px;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
}

.sky-gsc-chart {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}
.sky-gsc-chart-empty {
    background: #f6f7f7;
    padding: 20px;
    text-align: center;
    color: #50575e;
    border-radius: 4px;
}
.sky-gsc-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 140px;
    padding-top: 8px;
}
.sky-gsc-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}
.sky-gsc-bar {
    width: 100%;
    background: linear-gradient(180deg, #2271b1 0%, #135e96 100%);
    border-radius: 2px 2px 0 0;
    min-height: 2px;
    transition: opacity 0.2s;
}
.sky-gsc-bar:hover {
    opacity: 0.8;
}
.sky-gsc-bar-label {
    font-size: 10px;
    color: #50575e;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.sky-gsc-table {
    margin-top: 8px;
}
.sky-gsc-table th {
    font-weight: 600;
}
.sky-gsc-table td {
    word-break: break-word;
}
.sky-gsc-table a {
    color: #2271b1;
    text-decoration: none;
}
.sky-gsc-table a:hover {
    text-decoration: underline;
}

.sky-gsc-msg {
    margin-top: 12px;
}
.sky-gsc-msg .notice {
    margin: 0;
}

.dashicons-google {
    line-height: 1.6;
    margin-right: 4px;
    vertical-align: text-bottom;
}

@media (max-width: 782px) {
    .sky-gsc-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .sky-gsc-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Sub-nav (Performance / Errors & 404s) */
.sky-gsc-subnav {
    margin: 12px 0 16px;
}

/* State colors for stat cards */
.sky-gsc-stat-good {
    border-color: #46b450;
    background: #f0f9f1;
}
.sky-gsc-stat-good .sky-gsc-stat-value {
    color: #1e7a32;
}
.sky-gsc-stat-bad {
    border-color: #dc3232;
    background: #fcf0f0;
}
.sky-gsc-stat-bad .sky-gsc-stat-value {
    color: #b32d2e;
}

/* Status badges */
.sky-gsc-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #f0f0f1;
    color: #50575e;
}
.sky-gsc-badge-good {
    background: #dff5dd;
    color: #1e7a32;
}
.sky-gsc-badge-bad {
    background: #fbeaea;
    color: #b32d2e;
}
.sky-gsc-badge-neutral {
    background: #f0f0f1;
    color: #50575e;
}

/* Scan progress bar */
.sky-gsc-scan-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}
.sky-gsc-progress-bar {
    flex: 1;
    height: 8px;
    background: #f0f0f1;
    border-radius: 4px;
    overflow: hidden;
    max-width: 400px;
}
.sky-gsc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1, #135e96);
    width: 0%;
    transition: width 0.3s ease;
}
.sky-gsc-progress-text {
    font-size: 12px;
    color: #50575e;
    font-weight: 500;
    white-space: nowrap;
}

/* Inspections table */
.sky-gsc-inspections td:first-child {
    max-width: 280px;
}
.sky-gsc-inspections td:first-child a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #2271b1;
    text-decoration: none;
}
.sky-gsc-inspections td:first-child .description {
    color: #50575e;
    font-size: 12px;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sky-gsc-reinspect {
    vertical-align: middle;
}
.sky-gsc-reinspect.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 404 recent table */
.sky-gsc-404-recent code {
    background: #f6f7f7;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    display: inline-block;
    max-width: 380px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

/* Segmented Range Control & Toolbar */
.sky-gsc-toolbar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.sky-gsc-ranges {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    gap: 2px;
}
.sky-gsc-ranges .button {
    border: none !important;
    background: transparent !important;
    color: #64748b !important;
    font-weight: 500 !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}
.sky-gsc-ranges .button:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}
.sky-gsc-ranges .button.button-primary {
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3) !important;
}

/* Modernized Tables */
.sky-gsc-table {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden;
    border-spacing: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}
.sky-gsc-table thead th {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 14px 16px !important;
    color: #334155;
    font-weight: 700 !important;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sky-gsc-table tbody td {
    padding: 14px 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 13px;
    color: #0f172a;
    vertical-align: middle;
}
.sky-gsc-table tbody tr:last-child td {
    border-bottom: none !important;
}
.sky-gsc-table tbody tr:hover {
    background-color: #f8fafc !important;
}

/* Modern drill-down trigger styles */
.sky-gsc-drilldown-trigger {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    color: #475569 !important;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
}
.sky-gsc-drilldown-trigger:hover {
    background: #e2e8f0;
    color: #0f172a !important;
}

/* Modern Coach Grid and Cards */
.sky-gsc-coach-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px !important;
    margin-top: 15px;
}
.sky-gsc-coach-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 20px !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02) !important;
    margin: 0 !important;
}
.sky-gsc-coach-card h4 {
    margin: 0 0 6px 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sky-gsc-coach-card p {
    margin: 0 0 16px 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #64748b !important;
}
.sky-gsc-coach-card table {
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    margin-top: 15px !important;
}
.sky-gsc-coach-card table th {
    padding: 8px 12px !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    color: #64748b !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0 !important;
}
.sky-gsc-coach-card table td {
    padding: 10px 12px !important;
    font-size: 13px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
}
.sky-gsc-coach-card table tr:last-child td {
    border-bottom: none !important;
}

/* Explicit columns alignment in Coach cards */
.sky-gsc-coach-card table th:first-child,
.sky-gsc-coach-card table td:first-child {
    word-break: break-all !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}
.sky-gsc-coach-card table tr:not(.sky-gsc-ai-result-row):not(.sky-gsc-detail-row) th:last-child,
.sky-gsc-coach-card table tr:not(.sky-gsc-ai-result-row):not(.sky-gsc-detail-row) td:last-child {
    width: 160px !important;
    min-width: 160px !important;
    text-align: right !important;
}
.sky-gsc-coach-card table tr.sky-gsc-ai-result-row td,
.sky-gsc-coach-card table tr.sky-gsc-detail-row td {
    width: auto !important;
    text-align: left !important;
}

/* Modern AI button styles */
.sky-gsc-ai-optimize-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f6f7f7 !important;
    color: #3c434a !important;
    border: 1px solid #8c8f94 !important;
    border-radius: 6px !important;
    padding: 5px 12px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.15s ease-in-out !important;
    box-shadow: 0 1px 0 #ccc !important;
    height: auto !important;
    line-height: normal !important;
}
.sky-gsc-ai-optimize-btn:hover {
    background: #f0f0f1 !important;
    border-color: #0a4b78 !important;
    color: #0a4b78 !important;
}
.sky-gsc-ai-optimize-btn .dashicons {
    color: #2271b1 !important;
    font-size: 15px !important;
    width: 15px !important;
    height: 15px !important;
    margin-right: 4px !important;
    vertical-align: text-bottom !important;
}

/* AI raw analysis button with guaranteed flexbox centering */
.sky-gsc-raw-ai-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: #2271b1 !important;
    color: #ffffff !important;
    border: 1px solid #135e96 !important;
    border-radius: 6px !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background 0.15s ease-in-out !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    height: 32px !important;
    line-height: normal !important;
    text-decoration: none !important;
}
.sky-gsc-raw-ai-btn:hover {
    background: #135e96 !important;
    color: #ffffff !important;
}
.sky-gsc-raw-ai-btn .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    line-height: 16px !important;
    margin: 0 !important;
    display: inline-block !important;
}

/* Scrollable Container Overrides */
.sky-gsc-perf-tab-content {
    overflow-x: auto;
}


