﻿
.equipment-types-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;
}

.types-table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.table-equipment-types {
    margin-bottom: 0;
}

    .table-equipment-types thead {
        background-color: #f8f9fa;
        border-bottom: 2px solid #dee2e6;
    }

    .table-equipment-types th {
        font-weight: 600;
        color: #495057;
        padding: 1rem;
        white-space: nowrap;
        border: none;
    }

    .table-equipment-types td {
        padding: 1rem;
        vertical-align: middle;
        border: none;
        border-bottom: 1px solid #eee;
    }

    .table-equipment-types tbody tr:last-child td {
        border-bottom: none;
    }

    .table-equipment-types tbody tr:hover {
        background-color: #f8f9fa;
    }

.status-icon {
    font-size: 1.2rem;
}

.type-name {
    font-weight: 500;
    color: #212529;
}

.usage-badge {
    background-color: #e9ecef;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    color: #495057;
    display: inline-block;
    min-width: 3rem;
    text-align: center;
}

    .usage-badge.high-usage {
        background-color: #d4edda;
        color: #155724;
    }

    .usage-badge.no-usage {
        background-color: #fff3cd;
        color: #856404;
    }

.action-buttons .btn {
    padding: 0.375rem 0.75rem;
    margin: 0 0.125rem;
}

.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: #495057;
    margin-bottom: 1rem;
}

.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.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

    .stat-card .stat-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        opacity: 0.8;
    }

    .stat-card .stat-value {
        font-size: 2rem;
        font-weight: 600;
        margin: 0;
    }

    .stat-card .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.warning {
        background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
        color: white;
    }

/* Mobile responsive */
@media (max-width: 768px) {
    .equipment-types-page {
        padding: 1rem 0;
    }

    .page-header {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-actions {
        width: 100%;
        display: flex;
        gap: 0.5rem;
        justify-content: center;
    }

        .header-actions .btn {
            flex: 1;
        }

    .header-title h1 {
        font-size: 1.5rem;
    }

    .stats-cards {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .table-responsive {
        font-size: 0.875rem;
    }

    .table-equipment-types th,
    .table-equipment-types td {
        padding: 0.75rem 0.5rem;
    }

    .action-buttons .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }

    .usage-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        min-width: 2.5rem;
    }
}

@media (max-width: 576px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }

    .header-actions {
        flex-direction: column;
    }

        .header-actions .btn {
            width: 100%;
        }
}

