/*
 * Modern Card-Based Styles for the Application List Table
 */

/* Only apply these styles on the application list screen */
.post-type-application .wp-list-table {
    border: none;
}

/* Hide the original table header and footer columns */
.post-type-application .wp-list-table thead,
.post-type-application .wp-list-table tfoot {
    display: none;
}

/* Turn the table body into a responsive grid container for the cards */
.post-type-application .wp-list-table tbody {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-gap: 20px;
}

/* Style each table row as a card */
.post-type-application .wp-list-table tr {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 0;
    position: relative;
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.post-type-application .wp-list-table tr:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* Reset cell styles */
.post-type-application .wp-list-table td {
    display: block;
    width: 100%;
    border: none;
    padding: 10px 20px;
}

/* Use the data-colname attribute to create labels for our data */
.post-type-application .wp-list-table td:not(.column-title):not(.column-cb)::before {
    content: attr(data-colname);
    display: block;
    font-weight: 600;
    color: #50575e;
    margin-bottom: 5px;
    font-size: 12px;
    text-transform: uppercase;
}

/* Style the main title (Applicant) as a card header */
.post-type-application .wp-list-table .column-title {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.post-type-application .wp-list-table .column-title strong {
    font-size: 1.1rem;
    color: #2271b1;
}

.post-type-application .wp-list-table .column-title .row-actions {
    font-size: 13px;
    padding-top: 5px;
}

/* Style the Resume/CV link to look like a button */
.post-type-application .wp-list-table .column-resume a {
    display: inline-block;
    background: #e7f5ff;
    color: #0d6efd;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
}

.post-type-application .wp-list-table .column-resume a:hover {
    background: #d0eaff;
}


/* Handle the checkbox */
.post-type-application .wp-list-table .column-cb {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0;
}

.post-type-application .wp-list-table .column-cb input[type="checkbox"] {
    transform: scale(1.5);
}

/* Hide empty cells and unnecessary columns */
.post-type-application .wp-list-table .column-date,
.post-type-application .wp-list-table td.hidden {
    display: none;
}
/* Style for remaining days text */
.remaining-days {
    font-size: 0.9rem;
    font-weight: 600;
}