/* Inherit variables from style.css */

/* Main Layout */
.flex-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start; /* Cards align top */
    gap: 2rem;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
}

/* Card Containers */
.back-container1, .back-container2 {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.back-container1:hover, .back-container2:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08); /* Slightly elevated */
}

.back-container1 {
    flex: 2; /* Takes more space */
}

.back-container2 {
    flex: 1; /* Takes less space */
    min-width: 350px;
}

/* Headers & Tools */
.header-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

h2 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-green);
    font-size: 1.5rem;
    margin: 0;
}

/* Filter Select */
.ds-list {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    margin: 0;
    cursor: pointer;
    background-color: #fdfdfd;
    outline: none;
    transition: border 0.3s ease;
}

.ds-list:focus {
    border-color: var(--primary-green);
}

/* Table Styling */
.table-widget {
    overflow-x: auto;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 0.5rem;
}

thead th {
    background-color: var(--bg-color);
    color: var(--primary-green);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    font-size: 0.95rem;
    border-bottom: 2px solid #e0e0e0;
}

thead th:first-child {
    border-top-left-radius: 8px;
}

thead th:last-child {
    border-top-right-radius: 8px;
}

tbody td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    color: var(--text-dark);
    vertical-align: middle;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background-color: #f9fdf9; /* Light green hover */
}

/* Status Badges */
.status {
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.status--Nuevo {
    background: #e8f5e9;
    color: #2e7d32;
}

.status--Visto {
    background: #fff3e0;
    color: #ef6c00;
}

/* Action Tags/Buttons inside table */
.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: filter 0.2s;
    cursor: pointer;
}

.tag:hover {
    filter: brightness(0.95);
}

.tag--Detalles {
    background: #e3f2fd;
    color: #1976d2;
}

.tag--Aceptar {
    background: #e8f5e9;
    color: #2e7d32;
}

.tag--Rechazar {
    background: #ffebee;
    color: #c62828;
}

/* Pagination */
.pagination {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 0;
}

.pagination a {
    text-decoration: none;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background-color: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .flex-container {
        flex-direction: column;
    }
    
    .back-container1, .back-container2 {
        width: 100%;
        min-width: 0; /* Allow shrinking */
    }
    
    .header-tools {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ds-list {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .back-container1, .back-container2 {
        padding: 1.5rem;
    }
    
    .tags {
        flex-direction: column; /* Stack actions on very small screens */
    }
}


