/* Estilos para visualização em tabela */

#table-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
    z-index: 100;
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
}

#table-view.hidden {
    display: none;
}

#table-container {
    max-width: 1400px;
    margin: 0 auto 0 80px;
    background: rgba(15, 15, 30, 0.9);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
    margin-bottom: 100px;
}

#table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

#table-header h2 {
    color: #00ffff;
    font-size: 28px;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

#close-table {
    background: rgba(255, 0, 100, 0.2);
    border: 2px solid #ff0064;
    color: #ff0064;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#close-table:hover {
    background: rgba(255, 0, 100, 0.4);
    box-shadow: 0 0 15px rgba(255, 0, 100, 0.6);
    transform: scale(1.1);
}

#members-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(10, 10, 26, 0.6);
    border-radius: 8px;
    overflow: hidden;
}

#members-table thead {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2) 0%, rgba(255, 0, 255, 0.2) 100%);
}

#members-table th {
    padding: 16px 20px;
    text-align: left;
    color: #00ffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.4);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

#members-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

#members-table tbody tr:hover {
    background: rgba(0, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

#members-table tbody tr:last-child {
    border-bottom: none;
}

#members-table td {
    padding: 14px 20px;
    color: #e0e0e0;
    font-size: 14px;
}

#members-table td:first-child {
    color: #00ffff;
    font-weight: 500;
}

/* Estilos para links de nome dos membros */
.member-name-link {
    color: #00ffff !important;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
}

.member-name-link:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.4);
    transform: translateY(-1px);
    border-color: rgba(0, 255, 255, 0.4);
}

.member-name-link::before {
    content: "👤 ";
    font-size: 12px;
    opacity: 0.8;
}

#members-table a {
    color: #ff00ff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 0, 255, 0.1);
    border: 1px solid rgba(255, 0, 255, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}

#members-table a:hover {
    background: rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 12px rgba(255, 0, 255, 0.4);
    transform: translateY(-2px);
}

#members-table a::before {
    content: "🔗";
    font-size: 12px;
}

.org-tag {
    display: inline-block;
    padding: 4px 10px;
    margin: 2px 4px 2px 0;
    background: rgba(0, 204, 153, 0.2);
    border: 1px solid rgba(0, 204, 153, 0.4);
    border-radius: 4px;
    color: #00cc99;
    font-size: 12px;
    font-weight: 500;
}

.no-data {
    color: #666;
    font-style: italic;
}

/* Scrollbar personalizada */
#table-view::-webkit-scrollbar {
    width: 12px;
}

#table-view::-webkit-scrollbar-track {
    background: rgba(10, 10, 26, 0.5);
}

#table-view::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ffff 0%, #ff00ff 100%);
    border-radius: 6px;
}

#table-view::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00cccc 0%, #cc00cc 100%);
}

/* Responsividade */
@media (max-width: 768px) {
    #table-container {
        padding: 15px;
    }
    
    #table-header h2 {
        font-size: 20px;
    }
    
    #members-table th,
    #members-table td {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .org-tag {
        font-size: 10px;
        padding: 3px 8px;
    }
}
