.statistics-tab .stat-card,
.statistics-tab .card {
    background: var(--bg-card) !important;
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid var(--border-subtle);
}

.statistics-tab .stat-value,
.statistics-tab .card-title.text-primary {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
}

.statistics-tab .stat-label,
.statistics-tab .card-text.text-muted {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.statistics-tab .table th {
    font-weight: 600;
    color: #666;
}

.statistics-tab .table td {
    vertical-align: middle;
}

.statistics-tab .built-in {
    background-color: #f8f9fa;
}

.statistics-tab .badge {
    font-size: 0.75em;
    padding: 0.25em 0.5em;
}

.statistics-tab .metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.statistics-tab .metric-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease-in-out;
}

.statistics-tab .metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.statistics-tab .metric-value {
    font-size: 32px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 8px;
}

.statistics-tab .metric-label {
    font-size: 14px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.statistics-tab canvas {
    max-height: 300px;
    margin: 0 auto;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.metric-value {
    font-size: 2rem;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Charts */
.chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 2rem;
}

/* Tables */
.table-responsive {
    margin-bottom: 1.5rem;
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.table td {
    vertical-align: middle;
}

.built-in {
    background-color: rgba(0, 123, 255, 0.05);
}

.badge-outline {
    background-color: transparent;
    border: 1px solid #007bff;
    color: #007bff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Card styles */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Statistics Tab Styles */

/* Chart Containers */
.chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 2rem;
}

/* Metrics Grid */
.statistics-tab .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.statistics-tab .col-md-3 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Metric Cards */
.statistics-tab .card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border-radius: 8px;
    overflow: hidden;
}

.statistics-tab .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.statistics-tab .card-body {
    padding: 1.5rem 1rem;
}

.statistics-tab .card-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.statistics-tab .card-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Tables */
.statistics-tab .table {
    margin-bottom: 2rem;
}

.statistics-tab .table th {
    background-color: #f8f9fa;
    border-top: none;
}

.statistics-tab .table-sm td, 
.statistics-tab .table-sm th {
    padding: 0.5rem;
}

.statistics-tab .table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Built-in content type styling */
.statistics-tab .built-in {
    background-color: rgba(0, 123, 255, 0.03);
}

.statistics-tab .badge-outline {
    display: inline-block;
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    font-size: 0.7rem;
    margin-right: 0.5rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .chart-container {
        height: 300px;
    }
    
    .statistics-tab .col-md-3 {
        margin-bottom: 1rem;
    }
}

/* Overview Tab Styles */
.overview-tab .table th {
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-elevated) !important;
    border-color: var(--border-subtle) !important;
    width: 30%;
}

.overview-tab .table td {
    word-break: break-word;
    max-width: 70%;
    color: var(--text-secondary);
}

.overview-tab .text-muted {
    color: var(--text-muted) !important;
}

.overview-tab .table-hover tbody tr:hover {
    background: rgba(99, 132, 255, 0.04) !important;
}

/* System field styling */
.overview-tab tr.text-muted th {
    font-style: italic;
    color: #adb5bd !important;
}

.overview-tab tr.text-muted td {
    color: #adb5bd !important;
}

/* Item counts by language */
.item-counts-by-lang {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.item-counts-by-lang .lang-chip {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--cyan);
    font-weight: 500;
}

/* Sites tab caution */
.sites-caution {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--warning);
}
.sites-caution i {
    flex-shrink: 0;
    font-size: 1.1rem;
}

/* Overview sub-tabs (Fields | System Fields | Renderings) */
.overview-sub-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.5rem;
}
.overview-sub-tab {
    font-size: 0.88rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s;
}
.overview-sub-tab:hover {
    color: var(--text-primary);
    background: rgba(99, 132, 255, 0.08);
}
.overview-sub-tab.active {
    color: var(--accent-bright);
    background: rgba(99, 132, 255, 0.12);
    font-weight: 500;
}
.overview-sub-tab .tab-count {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-left: 0.25rem;
}

/* Field value cell - expandable code (3 lines, expand on click) */
.overview-tab .field-value-cell {
    max-width: 100%;
}
.overview-tab .field-value-cell.expandable {
    cursor: pointer;
}
.overview-tab .field-value-cell.expandable .field-display:not(.field-code-expanded) {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.overview-tab .field-value-cell.expandable .field-display:not(.field-code-expanded)::after {
    content: ' (click to expand)';
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}
.overview-tab .field-value-cell.expandable .field-display.field-code-expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}
.overview-tab .field-value-cell.expandable .field-display.field-code-expanded::after {
    content: ' (click to collapse)';
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Field value formatting */
.overview-tab .field-long-text {
    max-height: 100px;
    overflow: auto;
    white-space: pre-wrap;
}

.overview-tab .field-code,
.overview-tab .field-display .field-code {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-elevated);
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
}

.overview-tab .card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 10px;
}

/* Renderings section styling */
.overview-tab h6 {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.overview-tab .table {
    margin-bottom: 1.5rem;
}

.overview-tab .alert {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Style for placeholder names */
.overview-tab td:nth-child(2) {
    font-family: monospace;
    color: #0366d6;
}

/* Style for controller/action and view paths */
.overview-tab td:nth-child(4) {
    font-family: monospace;
    font-size: 0.9rem;
    color: #28a745;
}

/* Type column styling */
.overview-tab td:nth-child(3) {
    font-weight: 500;
}

/* Responsive fix for loading indicator */
.overview-tab .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
} 