﻿/* ServiceList.css */
.service-list-page {
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 0.75rem 0;
}

.page-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-title h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 300;
}

.header-title p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

    .stat-card .stat-icon {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
        opacity: 0.8;
    }

    .stat-card .stat-value {
        font-size: 1.75rem;
        font-weight: 600;
        margin: 0;
    }

.stat-label {
    color: white;
    font-size: 0.875rem;
    margin: 0;
}

.stat-card.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-card.success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    color: white;
}

.stat-card.danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
}

.services-table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.table-services {
    margin-bottom: 0;
}

    .table-services thead {
        background-color: #f8f9fa;
        border-bottom: 2px solid #dee2e6;
    }

    .table-services th {
        font-weight: 600;
        color: #495057;
        padding: 1rem;
        white-space: nowrap;
        border: none;
    }

    .table-services td {
        padding: 1rem;
        vertical-align: middle;
        border: none;
        border-bottom: 1px solid #eee;
    }

    .table-services tbody tr:last-child td {
        border-bottom: none;
    }

    .table-services tbody tr:hover {
        background-color: #f8f9fa;
    }

.status-icon {
    font-size: 1.2rem;
}

.service-info strong {
    color: #212529;
}

.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
    display: block;
}

.empty-state h4 {
    color: #495057;
    margin-bottom: 1rem;
}

.empty-state p {
    margin-bottom: 2rem;
}

/* Truncate string helper */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .service-list-page {
        padding: 1rem 0;
    }

    .page-header {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-title h1 {
        font-size: 1.5rem;
    }

    .stats-cards {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

        .stat-card .stat-icon {
            font-size: 1.5rem;
        }

        .stat-card .stat-value {
            font-size: 1.5rem;
        }

    .table-responsive {
        font-size: 0.875rem;
    }

    .table-services th,
    .table-services td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }
}

/* Note: If TruncateString extension method doesn't exist, add this helper class */
@media (max-width: 767px) {
    .service-info small {
        display: block;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
