

/* Botón icono de ojo - solo icono sin fondo */
.table-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 16px;
}


.table-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 220, 220, 0.4);
    background: linear-gradient(135deg, #e7e5e1 0%, #dcdcdc 100%);
    border-color: #e7e5e1;
}

.table-view-btn:active {
    transform: translateY(0);
}

/* Tooltip */
.table-view-btn:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    margin-bottom: 5px;
    z-index: 1000;
}

/* Overlay del popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(220, 220, 220, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.show {
    display: flex;
    opacity: 1;
}

/* Popup principal */
.popup-content {
    background: white;
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
    border: 2px solid #dcdcdc;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

/* Header del popup */
.popup-header {
    background: linear-gradient(135deg, #e7e5e1 0%, #dcdcdc 100%);
    color: #000000;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #dcdcdc;
}

.popup-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.popup-close {
    background: none;
    border: none;
    color: #000000;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    font-weight: bold;
}

.popup-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Body del popup */
.popup-body {
    padding: 0;
    max-height: 70vh;
    overflow-y: auto;
}

/* Footer del popup */
.popup-footer {
    padding: 15px 20px;
    border-top: 2px solid #dcdcdc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.popup-footer a {
    text-decoration: none;
    color: #000000;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #dcdcdc 0%, #e7e5e1 100%);
    border: 1px solid #dcdcdc;
}

.popup-footer a:hover {
    background: linear-gradient(135deg, #e7e5e1 0%, #dcdcdc 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 220, 220, 0.3);
}

.popup-footer .stats {
    color: #000000;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, #8eade5 0%, #8eade5 100%);
    padding: 6px 12px;
    border-radius: 20px;
}

/* Tabla dentro del popup */
.popup-body .table {
    margin: 0;
    font-size: 14px;
    width: 100%;
    border-collapse: collapse;
}

.popup-body .table th {
    background: linear-gradient(135deg, #e7e5e1 0%, #dcdcdc 100%);
    color: #000000;
    font-weight: 700;
    padding: 15px 12px;
    border: 1px solid #dcdcdc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.popup-body .table td {
    padding: 12px;
    border: 1px solid #e2e8f0;
    vertical-align: middle;
}

.popup-body .table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.popup-body .field-name {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #8eade5 0%, #8eade5 100%);
    color: #000000;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
}

.popup-body .data-type {
    background: linear-gradient(135deg, #dcdcdc 0%, #e7e5e1 100%);
    color: #000000;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Header especial de la tabla */
.popup-body .table thead tr:first-child th {
    background: linear-gradient(135deg, #cecdcd 0%, #cecdcd 100%);
    color: #000000;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    padding: 18px 12px;
}

/* Scrollbar personalizada */
.popup-body::-webkit-scrollbar {
    width: 8px;
}

.popup-body::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.popup-body::-webkit-scrollbar-thumb {
    background: #dcdcdc;
    border-radius: 4px;
}

.popup-body::-webkit-scrollbar-thumb:hover {
    background: #e7e5e1;
}

/* Demo styles */
.demo-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 2px solid #dcdcdc;
}

.demo-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.demo-table th,
.demo-table td {
    border: 1px solid #dcdcdc;
    padding: 12px;
    text-align: left;
}

.demo-table th {
    background: linear-gradient(135deg, #e7e5e1 0%, #dcdcdc 100%);
    color: #000000;
    font-weight: 700;
}

.required-yes {
    background: linear-gradient(135deg, #6298D1 0%, #6298D1 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 2px 8px;
}

.field-name {
    font-weight: 700;
    color: #000000;
    font-size: 1rem;
}

.data-type {
    background: linear-gradient(135deg, #8eade5 0%, #8eade5 100%);
    color: #000000;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}