﻿/* TaskCodes.css */
.task-codes-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;
    margin-bottom: 1rem;
}

.header-title h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 300;
}

.header-title p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

.header-notice {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    display: inline-block;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 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-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.info {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        color: white;
    }

    .stat-card.warning {
        background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
        color: white;
    }

.task-codes-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.table-header {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-box {
    flex: 1;
    max-width: 400px;
}

.record-count {
    font-size: 0.875rem;
}

.table-task-codes {
    margin-bottom: 0;
}

    .table-task-codes thead {
        background-color: #f8f9fa;
        border-bottom: 2px solid #dee2e6;
    }

    .table-task-codes th {
        font-weight: 600;
        color: #495057;
        padding: 1rem;
        white-space: nowrap;
        border: none;
    }

    .table-task-codes td {
        padding: 1rem;
        vertical-align: middle;
        border: none;
        border-bottom: 1px solid #eee;
    }

    .table-task-codes tbody tr:last-child td {
        border-bottom: none;
    }

    .table-task-codes tbody tr:hover {
        background-color: #f8f9fa;
    }

.task-code {
    background-color: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    color: #495057;
}

.task-info strong {
    color: #212529;
    display: block;
}

.no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

    .no-results .oi {
        font-size: 2rem;
        opacity: 0.3;
        margin-bottom: 0.5rem;
        display: block;
    }

.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

    .empty-state-icon .oi {
        color: #f2994a;
    }

.empty-state h4 {
    color: #495057;
    margin-bottom: 1rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .task-codes-page {
        padding: 1rem 0;
    }

    .page-header {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-actions {
        width: 100%;
    }

        .header-actions .btn {
            width: 100%;
        }

    .header-title h1 {
        font-size: 1.5rem;
    }

    .header-notice {
        margin-top: 0.5rem;
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .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-header {
        flex-direction: column;
        padding: 1rem;
    }

    .search-box {
        max-width: 100%;
        width: 100%;
    }

    .table-responsive {
        font-size: 0.875rem;
    }

    .table-task-codes th,
    .table-task-codes td {
        padding: 0.75rem 0.5rem;
    }

    .task-code {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }
}
