/**
 * Placement Table Styles
 * Save this file as: assets/css/placement-table.css
 */

.placement-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.placement-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.placement-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.placement-table thead th {
    background-color: #dc3545;
    color: #ffffff;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.placement-table thead th:first-child {
    border-top-left-radius: 8px;
    width: 80px;
}

.placement-table thead th:last-child {
    border-top-right-radius: 8px;
    width: 150px;
    text-align: center;
}

.placement-table tbody tr {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.placement-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.placement-table tbody tr:last-child {
    border-bottom: none;
}

.placement-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.placement-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

.placement-table tbody td {
    padding: 16px 20px;
    color: #212529;
    font-size: 15px;
    vertical-align: middle;
}

.placement-table tbody td:first-child {
    font-weight: 600;
    color: #495057;
}

.placement-table tbody td:last-child {
    text-align: center;
}

.placement-download-btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: #5cb85c;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: capitalize;
    box-shadow: 0 2px 4px rgba(92, 184, 92, 0.2);
}

.placement-download-btn:hover {
    background-color: #449d44;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(92, 184, 92, 0.3);
    color: #ffffff;
}

.placement-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(92, 184, 92, 0.2);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .placement-table-wrapper {
        border-radius: 4px;
    }

    .placement-table thead th {
        padding: 12px 15px;
        font-size: 14px;
    }

    .placement-table tbody td {
        padding: 12px 15px;
        font-size: 14px;
    }

    .placement-table thead th:first-child,
    .placement-table tbody td:first-child {
        width: 60px;
    }

    .placement-download-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .placement-table thead th {
        padding: 10px 10px;
        font-size: 12px;
    }

    .placement-table tbody td {
        padding: 10px 10px;
        font-size: 13px;
    }

    .placement-download-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .placement-table tbody tr:hover {
        transform: none;
    }
}

/* Animation states for GSAP */
.placement-table-animated .placement-table-row {
    opacity: 0;
    transform: translateY(20px);
}

/* Loading state */
.placement-table-wrapper.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Zebra striping (optional) */
.placement-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.placement-table tbody tr:nth-child(even):hover {
    background-color: #f0f0f0;
}

/* Print styles */
@media print {
    .placement-table-wrapper {
        box-shadow: none;
    }

    .placement-download-btn {
        display: none;
    }

    .placement-table tbody tr {
        page-break-inside: avoid;
    }
}