﻿
.jobs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
}

.page-header {
    background-color : white;
    color: #1a5632;
    text-align: center;
    padding: 30px;
    border-radius: 20px 20px 0 0;
    margin-bottom: 0;
}

    .page-header h1 {
        margin: 0;
        font-size: 28px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .page-header i {
        font-size: 32px;
        opacity: 0.9;
    }

.table-container {
    background: #ffffff;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 20px 40px rgba(16, 40, 28, 0.12);
    border: 2px solid rgba(26, 86, 50, 0.1);
    border-top: none;
    overflow: hidden;
}

.table-content {
    padding: 30px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 15px;
    border-radius: 12px;
    overflow: hidden;
}

    .modern-table thead {
        background: linear-gradient(135deg, #1a5632, #2e7d4f);
    }

    .modern-table th {
        padding: 18px 20px;
        text-align: left;
        font-weight: 600;
        color: #ffffff;
        border: none;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        position: relative;
    }

        .modern-table th:not(:last-child)::after {
            content: '';
            position: absolute;
            right: 0;
            top: 25%;
            height: 50%;
            width: 1px;
            background: rgba(255, 255, 255, 0.25);
        }

    .modern-table tbody tr {
        transition: all 0.3s ease;
        border-bottom: 1px solid #f1f3f4;
    }

        .modern-table tbody tr:hover {
            background: linear-gradient(135deg, rgba(26, 86, 50, 0.06), rgba(26, 86, 50, 0.02));
            transform: translateX(5px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

    .modern-table td {
        padding: 16px 20px;
        color: #2c3e50;
        border: none;
        vertical-align: middle;
    }

    .modern-table tbody tr:last-child {
        border-bottom: none;
    }

/* Action button styling */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #1a5632;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

    .action-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(26, 86, 50, 0.4);
        background: #14472a;
        color: white;
        text-decoration: none;
    }

    .action-btn i {
        font-size: 12px;
    }

/* Row number styling */
.row-number {
    background: #2e7d4f;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

/* Loading and empty states */
.loading-row, .empty-row {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #98FB98;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Status indicators */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-open {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.status-closing {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

/* Responsive design */
@media (max-width: 768px) {
    .jobs-container {
        padding: 10px;
    }

    .page-header {
        padding: 20px;
        border-radius: 15px 15px 0 0;
    }

        .page-header h1 {
            font-size: 22px;
        }

    .table-content {
        padding: 20px 15px;
    }

    .modern-table th,
    .modern-table td {
        padding: 12px 15px;
        font-size: 13px;
    }

    .modern-table th {
        font-size: 12px;
    }

    /* Stack table on very small screens */
    @media (max-width: 600px) {
        .table-wrapper {
            border-radius: 8px;
        }

        .modern-table,
        .modern-table thead,
        .modern-table tbody,
        .modern-table th,
        .modern-table td,
        .modern-table tr {
            display: block;
        }

            .modern-table thead tr {
                position: absolute;
                top: -9999px;
                left: -9999px;
            }

            .modern-table tr {
                border: 1px solid #dee2e6;
                border-radius: 8px;
                margin-bottom: 10px;
                padding: 15px;
                background: white;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            }

            .modern-table td {
                border: none;
                padding: 8px 0;
                position: relative;
                padding-left: 30%;
            }

                .modern-table td:before {
                    content: attr(data-label) ": ";
                    position: absolute;
                    left: 0;
                    width: 25%;
                    font-weight: 600;
                    color: #98FB98;
                    text-transform: uppercase;
                    font-size: 11px;
                    letter-spacing: 0.3px;
                }
    }
}

/* Animation for table rows */
.modern-table tbody tr {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

    .modern-table tbody tr:nth-child(1) {
        animation-delay: 0.1s;
    }

    .modern-table tbody tr:nth-child(2) {
        animation-delay: 0.2s;
    }

    .modern-table tbody tr:nth-child(3) {
        animation-delay: 0.3s;
    }

    .modern-table tbody tr:nth-child(4) {
        animation-delay: 0.4s;
    }

    .modern-table tbody tr:nth-child(5) {
        animation-delay: 0.5s;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

