* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffc500;
    min-height: 100vh;
    color: #323130;
    padding: 20px;
}

.dashboard-container {
    max-width: 70%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 20px;
    min-height: calc(100vh - 40px);
}

/* Header Principal */
.header-card {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    text-align: center;
    border-bottom: 4px solid #000;
}

.header-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 10px;
    text-shadow: 1px 2px 8px rgba(0,0,0,0.1);
}

.header-subtitle {
    color: #000;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Panel de Acciones Principales */
.main-actions-card {
    background: linear-gradient(135deg, #F3F2F1 0%, #FFFFFF 100%);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 12px 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    grid-row: 2;
    grid-column: 1;
    border-left: 6px solid #000;
}

.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #FFFFFF;
    padding: 10px 0;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: 2px solid #000;
    cursor: pointer;
}

.action-button:hover {
    background: #ffc500;
    color: #000;
    box-shadow: 0 12px 36px rgba(255,197,0,0.3);
    border-color: #ffc500;
    transform: translateY(-2px);
}

.action-button i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.secondary-link {
    color: #000;
    text-decoration: underline dotted;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 2px;
    font-weight: 700;
    transition: color 0.2s;
}
.secondary-link:hover {
    color: #ffc500;
    background: #F3F2F1;
    border-radius: 6px;
}

/* Panel de Navegación */
.navigation-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(43,87,154,0.12);
    grid-row: 3;
    grid-column: 1;
}

.nav-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
    text-align: center;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.nav-item {
    background: linear-gradient(135deg, #F3F2F1 0%, #FFFFFF 100%);
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    text-decoration: none;
    color: #323130;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #E1DFDD;
    font-size: 0.85rem;
}

.nav-item:hover {
    background: #ffc500;
    color: #000;
    box-shadow: 0 5px 15px rgba(255,197,0,0.3);
    transform: translateY(-2px);
}

/* Panel de Consulta */
.query-card {
    grid-column: 2;
    grid-row: 2 / 5;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 18px 18px 18px 18px;
    box-shadow: 0 8px 32px rgba(43,87,154,0.12);
    display: flex;
    flex-direction: column;
}

.query-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}
.query-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.query-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}
.search-box {
    display: flex;
    align-items: center;
    background: #F3F2F1;
    border-radius: 8px;
    padding: 4px 10px;
    border: 1px solid #E1DFDD;
    min-width: 210px;
}
.search-box input {
    border: none;
    background: none;
    outline: none;
    padding: 3px 0 3px 0;
    width: 140px;
    font-size: 0.92rem;
    color: #323130;
}
.search-box i {
    color: #000;
    margin-right: 6px;
}
.view-all-btn {
    background: #000;
    color: #FFFFFF;
    padding: 7px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.3s ease;
    border: 1px solid #000;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
}
.view-all-btn i {
    font-size: 1.1em;
}
.view-all-btn:hover {
    background: #ffc500;
    color: #000;
    box-shadow: 0 5px 15px rgba(255,197,0,0.3);
    transform: translateY(-1px);
}
.query-table-container {
    flex: 1;
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid #E1DFDD;
    max-height: 340px;
    min-height: 120px;
}
.query-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    font-size: 0.93rem;
}
.query-table th, .query-table td {
    border: 1px solid #b0b0b0 !important;
    background-clip: padding-box;
}
.query-table thead {
    background: #000;
    color: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 10;
    height: 32px;
}
.query-table th {
    padding: 6px 8px;
    text-align: left;
    font-weight: 600;
    border: none;
}
.query-table td {
    padding: 8px;
    border-bottom: 1px solid #E1DFDD;
    color: #323130;
}
.query-table tbody tr:hover {
    background-color: #F3F2F1;
}
.query-table tbody tr:nth-child(even) {
    background-color: #FAFAFA;
}
.query-table tbody tr:nth-child(even):hover {
    background-color: #E1DFDD;
}
.query-table-container::-webkit-scrollbar {
    width: 8px;
}
.query-table-container::-webkit-scrollbar-track {
    background: #F3F2F1;
    border-radius: 4px;
}
.query-table-container::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 4px;
}
.query-table-container::-webkit-scrollbar-thumb:hover {
    background: #ffc500;
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-container {
        max-width: 90%;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto;
    }
    
    .main-actions-card {
        grid-column: 1;
        grid-row: 2;
    }
    
    .navigation-card {
        grid-column: 1;
        grid-row: 3;
    }
    
    .query-card {
        grid-column: 1;
        grid-row: 4;
    }
    
    .header-card:last-child {
        grid-column: 1;
        grid-row: 5;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        max-width: 95%;
        gap: 15px;
    }
    
    .header-title {
        font-size: 1.8rem;
    }
    
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .query-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .query-controls {
        flex-direction: column;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .dual-table {
        border-spacing: 15px 0;
        table-layout: auto;
    }
    
    .table-cell {
        width: 100%;
        display: block;
        padding: 0 5px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.dashboard-container > * {
    animation: fadeIn 0.6s ease-out;
}

/* Estilos para el botón de solicitar ingreso */
.solicitar-ingreso-btn {
    background: #000;
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: 2px solid #000;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.solicitar-ingreso-btn:hover {
    background: #ffc500;
    color: #000;
    box-shadow: 0 12px 36px rgba(255,197,0,0.3);
    border-color: #ffc500;
    transform: translateY(-2px);
}

.solicitar-ingreso-btn i {
    font-size: 1.2rem;
}

/* Contenedor dual para mostrar dos tablas lado a lado */
.dual-container {
    width: 100%;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.table-cell {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.table-cell .query-header {
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
}

.table-cell .query-table-container {
    min-height: 200px;
    width: 100%;
}

/* Alinear específicamente la tabla de registros pendientes */
.table-cell:last-child {
    justify-content: flex-start;
}

.table-cell:last-child .query-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.table-cell:last-child .query-table-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

 

 