/**
 * QuantumLayers Dataset Detail Page Styles - Dark Mode
 */

.ql-dataset-detail {
    min-height: 100vh;
    padding: 40px 0;
}

.ql-dataset-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* Breadcrumb */
.ql-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #B8B8B8;
}

.ql-breadcrumb a {
    color: #9B8FE8;
    text-decoration: none;
    transition: all 0.2s;
}

.ql-breadcrumb a:hover {
    text-decoration: underline;
    color: #AA9EED;
}

.ql-breadcrumb span {
    margin: 0 8px;
}

/* Header */
.ql-dataset-header {
    background: linear-gradient(135deg, #252525 0%, #2A2A2A 100%);
    padding: 30px;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
    border: 1px solid rgba(139, 127, 219, 0.15);
}

.ql-dataset-header h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(155, 143, 232, 0.3);
}

.ql-dataset-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    color: #B8B8B8;
    font-size: 14px;
}

.ql-dataset-meta-row > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ql-status-badge {
    padding: 6px 12px;
    border-radius: 2px;
    font-weight: 600;
    font-size: 13px;
}

.ql-status-ready {
    background: rgba(111, 207, 151, 0.2);
    color: #6FCF97;
    border: 1px solid rgba(111, 207, 151, 0.3);
}

.ql-status-processing {
    background: rgba(242, 201, 76, 0.2);
    color: #F2C94C;
    border: 1px solid rgba(242, 201, 76, 0.3);
}

.ql-status-error {
    background: rgba(235, 87, 87, 0.2);
    color: #EB5757;
    border: 1px solid rgba(235, 87, 87, 0.3);
}

/* Stats Grid */
.ql-detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ql-stat-card {
    background: linear-gradient(135deg, #252525 0%, #2A2A2A 100%);
    padding: 25px;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    text-align: center;
    border: 1px solid rgba(139, 127, 219, 0.2);
    transition: all 0.2s;
}

.ql-stat-card:hover {
    border-color: rgba(139, 127, 219, 0.5);
    box-shadow: 0 8px 24px rgba(139, 127, 219, 0.3);
}

.ql-stat-label {
    color: #B8B8B8;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.ql-stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #9B8FE8;
    text-shadow: 0 2px 8px rgba(155, 143, 232, 0.4);
}

/* Insights Section */
.ql-insights-section {
    background: linear-gradient(135deg, #252525 0%, #2A2A2A 100%);
    padding: 30px;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
    border: 1px solid rgba(139, 127, 219, 0.15);
}

.ql-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(139, 127, 219, 0.2);
}

.ql-section-header h2 {
    margin: 0;
    font-size: 24px;
    color: #FFFFFF;
}

.ql-insights-filter {
    display: flex;
    gap: 10px;
}

.ql-filter-btn {
    padding: 8px 16px;
    border: 2px solid rgba(139, 127, 219, 0.3);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #B8B8B8;
    transition: all 0.2s;
}

.ql-filter-btn:hover {
    border-color: #8B7FDB;
    color: #9B8FE8;
    background: rgba(139, 127, 219, 0.1);
}

.ql-filter-btn.active {
    background: linear-gradient(135deg, #7C6FD6 0%, #9B8FE8 100%);
    border-color: #8B7FDB;
    color: white;
    box-shadow: 0 4px 12px rgba(139, 127, 219, 0.3);
}

.ql-insights-grid {
    display: grid;
    gap: 20px;
}


.ql-insight-card.warning {
    border-left-color: #F2C94C;
    background: rgba(242, 201, 76, 0.05);
}

.ql-insight-card.highlight {
    border-left-color: #56CCF2;
    background: rgba(86, 204, 242, 0.05);
}

.ql-insight-card.info {
    border-left-color: #9B8FE8;
    background: linear-gradient(135deg, #2C2440 0%, #342850 100%);
}

.ql-insight-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.ql-insight-title {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
}

.ql-insight-category {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    color: #B8B8B8;
}

.ql-insight-body {
    color: #B8B8B8;
    line-height: 1.6;
    margin-bottom: 10px;
}

.ql-insight-body strong {
    color: #FFFFFF;
}

.ql-insight-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(139, 127, 219, 0.2);
}

/* Columns Section */
.ql-columns-section {
    background: linear-gradient(135deg, #252525 0%, #2A2A2A 100%);
    padding: 30px;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
    border: 1px solid rgba(139, 127, 219, 0.15);
}

.ql-columns-grid {
    display: grid;
    gap: 20px;
}

.ql-column-card {
    border: 1px solid rgba(139, 127, 219, 0.3);
    border-radius: 2px;
    padding: 20px;
    background: linear-gradient(135deg, #2C2440 0%, #342850 100%);
    transition: all 0.2s;
}

.ql-column-card:hover {
    border-color: #8B7FDB;
    box-shadow: 0 4px 16px rgba(139, 127, 219, 0.2);
}

.ql-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ql-column-name {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
}

.ql-type-badge {
    background: linear-gradient(135deg, #7C6FD6 0%, #9B8FE8 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(139, 127, 219, 0.4);
}

.ql-column-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    font-size: 13px;
    color: #B8B8B8;
}

.ql-column-stats > div {
    display: flex;
    flex-direction: column;
}

.ql-column-stats strong {
    color: #FFFFFF;
    margin-bottom: 4px;
}

.ql-sample-values {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(139, 127, 219, 0.2);
}

.ql-sample-values strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #B8B8B8;
}

.ql-sample-list {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #B8B8B8;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 2px;
    border: 1px solid rgba(139, 127, 219, 0.2);
}

/* Empty State */
.ql-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.ql-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.4;
    filter: drop-shadow(0 2px 8px rgba(139, 127, 219, 0.3));
}

.ql-empty-state p {
    font-size: 16px;
    color: #B8B8B8;
}

/* Loading */
.ql-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.ql-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(139, 127, 219, 0.2);
    border-top-color: #9B8FE8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(155, 143, 232, 0.3);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .ql-dataset-detail {
        padding: 20px 0px;
    }

    .ql-dataset-header h1 {
        font-size: 24px;
    }

    .ql-dataset-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ql-detail-stats {
        grid-template-columns: 1fr;
    }

    .ql-insights-filter {
        flex-wrap: wrap;
    }

    .ql-actions-bar {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .ql-column-stats {
        grid-template-columns: 1fr;
    }
}
