/* Client Data Pipelines Page Styling */

.pipelines-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 30px;
}

.pipelines-header {
    text-align: center;
    margin-bottom: 50px;
}

.pipelines-title {
    font-size: 2.5rem;
    color: #145392;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-icon {
    font-size: 2.5rem;
}

.pipelines-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin: 0;
}

/* Alert Styling */
.pipeline-alert {
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid #dc3545;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Stats Cards */
.pipelines-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #145392;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(20, 83, 146, 0.15);
}

.stat-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #145392;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Table Wrapper */
.table-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

/* Table Styling */
.pipelines-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.pipelines-table thead {
    background: linear-gradient(135deg, #145392 0%, #1a6bb8 100%);
}

.pipelines-table thead th {
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 18px 20px;
    text-align: left;
    border: none;
}

.pipelines-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.pipelines-table tbody tr:hover {
    background-color: #f0f9ff;
    transform: scale(1.01);
}

.pipelines-table tbody tr:last-child {
    border-bottom: none;
}

.pipelines-table tbody td {
    padding: 16px 20px;
    color: #333;
    font-size: 0.95rem;
    vertical-align: middle;
    border: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 300px;
}

.pipelines-table tbody td:last-child {
    word-break: break-all;
    max-width: none;
}

.pipelines-table tbody td:first-child {
    font-weight: 600;
    color: #145392;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #145392;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.empty-state p {
    color: #666;
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .pipelines-container {
        padding: 0 20px;
    }
    
    .table-wrapper {
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .pipelines-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .pipelines-subtitle {
        font-size: 1rem;
    }
    
    .pipelines-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .pipelines-table {
        font-size: 0.85rem;
    }
    
    .pipelines-table thead th,
    .pipelines-table tbody td {
        padding: 12px 15px;
    }
    
    /* Stack table on mobile */
    .pipelines-table thead {
        display: none;
    }
    
    .pipelines-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        padding: 15px;
    }
    
    .pipelines-table tbody td {
        display: block;
        text-align: left;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .pipelines-table tbody td:last-child {
        border-bottom: none;
    }
    
    .pipelines-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #145392;
        display: block;
        margin-bottom: 5px;
        font-size: 0.85rem;
        text-transform: uppercase;
    }
}

