/* Status Container Styles */
.status-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.status-message {
    margin: 0;
    color: #6c757d;
}

/* Summary Stats */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #495057;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
    margin-top: 4px;
}

/* Filter Controls */
.filter-controls {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.filter-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    font-size: 14px;
}

/* Table Styles */
.broken-links-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 16px 20px;
    font-weight: 600;
    color: #495057;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    font-size: 13px;
}

.table td {
    padding: 16px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: top;
}

.table tr:hover {
    background: #f8f9fa;
}

.table tr.no-results {
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Link Type Badges */
.link-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.link-type.internal {
    background: #e3f2fd;
    color: #1976d2;
}

.link-type.external {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Status Code Styling */
.status-code {
    font-family: monospace;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-code.error {
    background: #ffebee;
    color: #c62828;
}

.status-code.warning {
    background: #fff3e0;
    color: #ef6c00;
}

/* URL Display */
.url-display {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.url-link {
    color: #1976d2;
    text-decoration: none;
}

.url-link:hover {
    text-decoration: underline;
}

/* Expand Button */
.expand-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.expand-btn:hover {
    background: #005a87;
}

.expand-btn.expanded {
    background: #6c757d;
}

/* Expandable Row */
.expandable-row {
    display: none;
}

.expandable-row.show {
    display: table-row;
}

.expandable-content {
    background: #f8f9fa;
    border-left: 4px solid #007cba;
    padding: 16px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 13px;
    color: #495057;
    word-break: break-word;
}

/* Responsive */
@media(max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .summary-stats {
        grid-template-columns: 1fr;
    }

    .table {
        font-size: 12px;
    }

    .url-display {
        max-width: 200px;
    }
}

.no-results td {
    text-align: center;
    font-style: italic;
    color: #666;
}